CompletedFeaturedWeb Development, Tool, React-Flow

Knowledger: Chapters, Blocks and a Knowledge Graph

A Notion-style knowledge app. Organise what you learn into chapters made of text, code, image, PDF and link blocks, reorder them by drag and drop, and see how chapters connect in a graph.

R

Rishabh Dubey

December 6, 2025 – December 6, 2025

Knowledger: Chapters, Blocks and a Knowledge Graph

Knowledger

Notes about one topic tend to end up in five places: a code snippet in a gist, a diagram on paper, a PDF in downloads, a link in a browser tab. Knowledger puts them in one chapter, and shows how chapters relate to each other.

What it does

  • Chapters with a title, summary and tags, searchable as you type.
  • Typed blocks inside each chapter: text, code with a copy button, images (up to 10 MB), PDFs (up to 50 MB) and links.
  • Drag and drop to reorder blocks, using dnd-kit, with positions saved straight away.
  • Graph view built on React Flow that draws the links between your chapters.

Built carefully

Every API route follows the same shape: build a Supabase client from the request's cookies, confirm there is a signed-in user, then check that the user owns the parent chapter before writing anything. The blocks route does not trust the chapter id it is sent; it looks the chapter up by both id and owner and returns 404 if it is not yours. The graph endpoint only returns links between chapters you own.

Supabase pauses free-tier databases after a period of no activity, so a Vercel cron job calls an authenticated keep-alive route every three days.

Stack

  • Next.js 14 (App Router), React, TypeScript, Tailwind CSS, Radix UI
  • Supabase for Postgres, Auth (via @supabase/ssr) and file storage
  • TanStack Query for data fetching, dnd-kit for drag and drop, React Flow for the graph
  • Deployed on Vercel, with a scheduled cron job

Status

Complete and deployed. The demo needs a free account.

More projects