Adeel NiazFull-Stack Developer | AWS | SEO
Contact me

Snippet Master: a code snippet manager built with Next.js

A personal vault for code snippets. Create a snippet, find it again later, edit it in a real code editor and delete it when you no longer need it.

Live Demo GitHub source
Snippet Master home screen with a Create Snippet button and cards for saved snippets
The Snippet Master home screen: every saved snippet is a card with a link to its own page.
Type
Full-stack web application
Framework
Next.js 16 (App Router), React 19, TypeScript
Interface
Tailwind CSS 4, shadcn/ui, Radix UI
Data
Prisma with SQLite
Editor
Monaco Editor

The problem

Useful pieces of code end up scattered across notes, chats and gists, and they are hard to find again. A developer needs one place to save a snippet, open it later and keep it up to date.

The solution

Snippet Master lists every saved snippet as a card on the home page. Each snippet has its own page, and the edit page uses the Monaco editor, the same editor that powers VS Code, so changing code feels familiar.

Features

How it is built

The app uses the Next.js App Router. The home page is a server component that reads the snippets straight from the database with Prisma, so there is no separate API to call from the browser.

Creating, saving and deleting are Next.js server actions. Each one writes to the database, calls revalidatePath so the lists show fresh data, and then redirects the user to the right page. The data model is small and clear: a Snippet has an id, a title and its code, stored in SQLite.

Try it and read the code

The live demo is open to visit, and the full source is on GitHub. If you need something similar, see my Next.js development service.

Technologies

The app is built with Next.js 16 and React 19 in TypeScript. Prisma talks to a SQLite database, the interface uses Tailwind CSS 4 with shadcn/ui and Radix UI components, and the Monaco editor provides the code editing experience. The live demo is hosted on Vercel.

Need a similar application?

Tell me what you want to build. Message me on WhatsApp or send an email.