Skip to content

hsnrique/synapse

Repository files navigation

Synapse

Synapse

AI-Powered Personal Knowledge Capture & Retrieval
Never forget what you've seen. Drop anything in — AI organizes it for you.

FeaturesTech StackGetting StartedRoadmapSupport


What is Synapse?

We consume tons of content daily — articles, tweets, docs, screenshots — but lose 90% of it. Bookmarks pile up. Screenshots disappear. That article you read last week? Gone.

Synapse fixes this with AI. Paste a URL, upload a screenshot, or drop in a text snippet → AI reads, summarizes, extracts key points, tags, and categorizes → Find anything instantly.

Features

✅ Implemented

  • Universal Capture — URLs, images/screenshots (Gemini Vision), and text snippets
  • AI Processing — Auto-summarization, key points extraction, smart tagging, content type detection (powered by Google Gemini)
  • Collections — Organize captures into themed collections with emoji icons
  • Pin Captures — Keep important items easily accessible
  • Search — Filter captures by title, summary, URL, or tags
  • User Settings — Profile management, password change, theme toggle, account deletion
  • Dark & Light Mode — Clean dark-first design with yellow accent (#ff990a)
  • SPA Navigation — Client-side data caching for instant page transitions
  • Infinite Scrolling — Progressive content loading with IntersectionObserver
  • Masonry Layout — Beautiful image grid for visual captures
  • Responsive Design — Works on desktop and mobile
  • Landing Page — Animated marketing page with GSAP scroll animations
  • Auth — Email/password signup, login, logout with confirmation dialog
  • Delete Confirmation — All destructive actions require explicit confirmation

🗺️ Planned

  • Semantic search with pgvector embeddings
  • Smart collections (AI auto-organized)
  • Paywall & subscriptions via Polar (freemium model)
  • Archive system
  • Browser extension
  • Daily/weekly digest
  • Public sharing

Tech Stack

Layer Technology
Framework Next.js 16 (App Router)
Language TypeScript
Styling Tailwind CSS v4
AI Google Gemini (Flash, Vision)
Database Neon PostgreSQL (Serverless)
ORM Drizzle ORM
Auth Better Auth
Storage Vercel Blob
Animations GSAP + ScrollTrigger
Hosting Vercel

Getting Started

Prerequisites

Setup

  1. Clone the repo
git clone https://github.com/hsnrique/synapse.git
cd synapse
  1. Install dependencies
pnpm install
  1. Configure environment
cp .env.example .env

Fill in your credentials in .env:

DATABASE_URL="your-neon-connection-string"
GEMINI_API_KEY="your-gemini-api-key"
BETTER_AUTH_SECRET="generate-a-random-secret"
BETTER_AUTH_URL="http://localhost:3000"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
BLOB_READ_WRITE_TOKEN="your-vercel-blob-token"
  1. Push database schema
npx drizzle-kit push
  1. Run the dev server
pnpm dev

Open http://localhost:3000 and create your account.

Project Structure

synapse/
├── app/
│   ├── api/              # API routes (captures, collections, tags, profile, search)
│   ├── dashboard/        # Dashboard pages (captures, collections, settings, detail)
│   ├── login/            # Login page
│   ├── signup/           # Signup page
│   └── page.tsx          # Landing page
├── components/
│   ├── dashboard/        # Dashboard components (sidebar, cards, modals, provider)
│   ├── landing/          # Landing page sections (hero, features, CTA)
│   └── ui/               # Reusable UI components (confirm dialog)
├── db/
│   ├── schema.ts         # Drizzle ORM schema
│   └── index.ts          # Database connection
├── lib/
│   ├── ai.ts             # Gemini AI processing pipeline
│   ├── auth.ts           # Better Auth config
│   └── session.ts        # Session helper
└── hooks/                # Custom React hooks (infinite scroll)

Roadmap

  • Universal capture (URL, image, text)
  • AI processing pipeline (Gemini)
  • Collections CRUD
  • Tags (auto-generated + management)
  • Pin captures
  • User profile & settings
  • Dark/light mode
  • SPA navigation with client-side caching
  • Infinite scrolling
  • Responsive design
  • Delete confirmation dialogs
  • Semantic search (pgvector)
  • Polar paywall integration
  • Smart collections
  • Archive system
  • Browser extension

Support

If you find Synapse useful, consider supporting the project:

Link
Buy Me a Coffee (US/EU) buymeacoffee.com/hsnrique
💜 Pix (BR) livepix.gg/hsnrique

License

MIT — see LICENSE for details.

Synapse is open source software. You are free to self-host, modify, and contribute.