---
name: 'Cue'
description: 'A on-demand resource booking application'
tags: ['python', 'typescript', 'svelte', 'postgresql']
image: '../../../public/static/cue.webp'
link: 'https://snippetslibrary.com'
startDate: '2025-07-23'
---

<div class="flex flex-wrap gap-2 my-0! [&>img]:my-0! [&>img]:mt-2!" >
  <img src="https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white" alt="Python" />
  <img src="https://img.shields.io/badge/SQLite-07405E?style=for-the-badge&logo=sqlite&logoColor=white" alt="SQLite" />
  <img src="https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript" />
  <img src="https://img.shields.io/badge/Svelte-FF3E00?style=for-the-badge&logo=svelte&logoColor=white" alt="Svelte" />
  <img src="https://img.shields.io/badge/Docker-2496ED?style=for-the-badge&logo=docker&logoColor=white" alt="Docker" />
</div>

# SnippetsLibrary

Manage your personal and team code snippets with speed and confidence. SnippetsLibrary makes it easy to create, organize, search, and share snippets with first-class DX and beautiful syntax highlighting.

I have 50+ users and I'm working on a new version with a lot of new features.
And 200+ snippets.

## ✨ Highlights

- **Secure auth**: GitHub OAuth + JWT sessions
- **Sharing**: Public share links with SEO-friendly pages
- **Search & filter**: Language, visibility, keywords, pagination
- **Syntax highlighting**: 20+ languages, themes, copy-preserving formatting
- **Fast**: Bun runtime, Hono server, optimized client with Vite

## 🛠️ Tech Stack

- Frontend: React, Vite, Tailwind CSS, shadcn/ui
- Backend: Bun, Hono, JWT, Drizzle ORM, PostgreSQL
- Infra: Cloudflare Workers, GitHub Actions, Drizzle Kit

## 🚀 Quick Start

1. Clone the repo:
   ```bash
   git clone https://github.com/cojocaru-david/snippetslibrary.com
   cd snippetslibrary.com
   ```
2. Install deps: `bun install`
3. Configure `.env` in `server/` (DB, GitHub OAuth, JWT, FRONTEND_URL)
4. Migrate DB: `cd server && bun run db:migrate`
5. Start dev: `bun run dev` (client on 5173, server on 8000)

## 🔗 Links

- Live: https://snippetslibrary.com
- Repo: https://github.com/cojocaru-david/snippetslibrary.com


