{"repo":"cojocaru-david/snippetslibrary.com","free":true,"listed":false,"github":"https://github.com/cojocaru-david/snippetslibrary.com","clone":"git clone https://github.com/cojocaru-david/snippetslibrary.com.git","description":"SnippetsLibrary - A secure, lightning-fast code snippet manager to store, organize, and share your code with beautiful syntax highlighting.","language":"TypeScript","stars":66,"topics":["api","bun","cloudflare-workers","code-snippets","drizzle-orm","github-oauth","huno","jwt","postgresql","react"],"license":null,"category":"auth-billing-email","readme_excerpt":"🗃️ Snippets Library Snippets Library is a full-stack code snippet manager built with Next.js, TypeScript and Drizzle ORM. It provides authenticated snippet storage, syntax highlighting, instant search, public sharing, bookmarking, likes and view tracking. This README summarizes the current codebase, how to run it locally, the main API surface and important implementation details discovered in the repository. Key features - Save, edit and delete code snippets. - Automatic/assisted language detection (highlight.js on the server and a custom detector in the client libs). - Syntax highlighting via Shiki with a cached highlighting service. - Public share links (secure random share IDs) with view counting, like/unlike and copy-as-new-snippet. - Bookmarks per-user. - GitHub OAuth sign-in using NextAuth and a Drizzle adapter. - Settings persisted per user including code theme and preferences. Tech stack - Next.js 15 (App Router) - React 19 + TypeScript - Drizzle ORM (Postgres) - NextAuth (GitHub provider) with @auth/drizzle-adapter - Shiki for server-side/high-quality code highlighting - highlight.js for quick language detection endpoint - Tailwind CSS (utility classes used in components) Repository scripts The most relevant npm scripts are defined in package.json : - npm run dev — formats with Prettier and runs Next.js in dev mode (port 3001 by default) - npm run build — builds the Next.js app - npm run start — runs the built Next.js app (port 3001) - npm run lint — runs Next.js ES","default_branch":null,"files":null,"tree":[],"storefront":"/r/cojocaru-david","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cojocaru-david/snippetslibrary.com/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}