DEV Community

Dev Nestio
Dev Nestio

Posted on

Browser-based Code Snippet Manager — save, tag, search, syntax highlight, no account

What I built

Added Code Snippet Manager to devnestio.

👉 https://code-snippet-manager-bdd.pages.dev

Features

  • Save snippets with title, language, description, tags, and code
  • 19 languages with syntax highlighting: JavaScript, TypeScript, Python, Bash, SQL, HTML, CSS, JSON, YAML, Go, Rust, Java, C#, PHP, Ruby, Swift, Kotlin, Dockerfile, Other
  • Search across title, description, code content, language, and tags
  • Tag system — add multiple tags, click tags to filter
  • Language filter dropdown
  • Edit and delete individual snippets
  • Export as JSON / Import from JSON — portable backup
  • Zero server, zero account, zero tracking — everything lives in your browser

Why browser-local?

I wanted a snippet manager that works instantly without login, does not send my code anywhere, works offline, and is fast and minimal. LocalStorage gives 5-10MB per origin which is plenty for text snippets. Export/Import handles backup and migration.

Syntax highlighting

Built a lightweight hand-written highlighter with no external library. Applies token coloring for keywords, strings, numbers, comments, and function names across all 19 languages.

Tech

  • Pure Vanilla JS, no framework, no build step
  • localStorage for persistence
  • 82 unit tests with Node.js assert module
  • Deployed on Cloudflare Pages

Try it

https://code-snippet-manager-bdd.pages.dev

All devnestio tools: https://devnestio.pages.dev

Feedback welcome — what language or feature is missing?

Top comments (0)