Full-Stack WebCompleted

Sniply

Keyboard-First Developer Code Snippet & Command Manager

DisciplineFull-Stack Web
StatusCompleted
Lead EngineerMichael Umoize
ArchitectureDocumented
Sniply - Display Image

Engineering Overview

Sniply is a developer productivity platform engineered for instant code capture, indexing, and retrieval. Built for developers who frequently switch between terminal commands, database scripts, regex patterns, and AI prompts, Sniply eliminates context switching by combining a conflict-free keyboard workflow with instant in-memory search and multi-language syntax highlighting. The application is architected around a 3-column adjustable desktop workspace with draggable panel dividers. Active code snippets are server-rendered during initial load (React Server Components) to eliminate loading skeleton flicker, while complete snippet payloads and metadata are pre-fetched into reactive client memory. This enables zero-latency (0ms) instant view switching across snippets in the feed without secondary network requests. Sniply prioritizes ergonomic keyboard interactions: Alt+N (or Option+N on macOS) triggers a global quick-capture modal anywhere without conflicting with OS or browser window shortcuts; single-key 'N' captures snippets while browsing; 'C' copies snippet contents to the clipboard; 'F' toggles favorites with optimistic UI updates; 'E' opens the editor; and arrow keys navigate the feed. An integrated Cmd+K command palette provides hybrid client-side fuzzy search across titles, descriptions, languages, and code contents using Fuse.js. The backend leverages Neon Serverless PostgreSQL with Drizzle ORM for type-safe relational modeling of snippets, hierarchical folders, and tags. Authentication is managed through Neon Auth (Better Auth) supporting GitHub and Google OAuth. The platform incorporates automated category and language detection, intelligent title derivation from code comments and shell commands, and automated orphan tag cleanup to maintain data integrity as snippets are modified or deleted.
System Architecture Pipeline
Data Flow Contract
Next.js 16 App Router (RSC & Server Actions) → Drizzle ORM → Neon Serverless PostgreSQL (WebSocket Pool Transactions) | Neon Auth (Better Auth OAuth Session Management) | Client-Side Fuse.js Fuzzy Index & Shiki Multi-Language Syntax Highlighting

Key Implementations & Technical Features

Conflict-free keyboard-first workflow with hotkeys for quick capture (Alt+N), copy (C), favorite (F), edit (E), and feed navigation (arrow keys)
Hybrid client-side fuzzy search across snippet titles, descriptions, and code previews using Fuse.js (Cmd+K)
Multi-language syntax highlighting with dual-theme light and dark mode code rendering powered by Shiki
Zero-latency in-memory snippet view switching with pre-fetched reactive cache and server-side hydration
Smart snippet categorization (code, terminal, SQL, prompt, regex, text) with automatic language detection
Intelligent title derivation automatically inferring titles from shell commands and code comments when omitted
Hierarchical nested folder organization with real-time parent/child relationship synchronization
Dynamic tag counting and automated orphan tag deletion to maintain tag integrity upon snippet removal
Adjustable 3-column desktop layout featuring interactive draggable dividers and responsive views
Multi-provider authentication via Neon Auth (Better Auth) supporting GitHub and Google OAuth

Technologies & Libraries

Next.jsReactTypeScriptDrizzle ORMNeon PostgresNeon AuthShikiFuse.jsTailwind CSSSonnerRadix UI