Skip to content
SexttyPublic

About

Markdown notes with tags & search — Next.js, Prisma, PostgreSQL

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SnapNote — Markdown Notes

A fast markdown notes app: live preview, tags, pinning, and full-text-ish search across titles, content, and tags. Full-stack Next.js with a PostgreSQL backend.

stack

▶ Try the live demo — runs right in your browser, no setup.

Features

  • ✍️ Markdown editor with Write / Preview toggle (GitHub-flavored markdown)
  • 🧰 Formatting toolbar (bold/italic/code/heading/list/quote insert at cursor), live word count, one-click export to .md
  • 🔖 Tags + 📌 pinning
  • 🔎 Search across title, content, and tags (debounced)
  • 💾 Debounced autosave
  • 🌱 Auto-seeded sample notes on first boot

Stack

Tier Tech
App Next.js 14 (App Router, route handlers)
ORM Prisma
DB PostgreSQL (String[] tags)
Markdown react-markdown + remark-gfm
Runtime Docker Compose

Quickstart

docker compose up --build

Open http://localhost:3000. On first boot the container runs prisma db push and seeds a few sample notes.

Local development

npm install
export DATABASE_URL=postgresql://snapnote:snapnote@localhost:5432/snapnote
npm run db:push && npm run seed
npm run dev

API (app/api/notes)

Method Route Description
GET /api/notes?q= list / search notes
POST /api/notes create a note
GET /api/notes/:id fetch one
PATCH /api/notes/:id update
DELETE /api/notes/:id delete

License

MIT © Wassim Jebali

About

Markdown notes with tags & search — Next.js, Prisma, PostgreSQL

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages