Logo
Deploy Now

Stars

2504

Forks

118

Watchers

11

Developer links

ByteStash

The functions, config files, and one-liners you keep re-deriving finally get a searchable home: ByteStash is a self-hosted code snippet manager - a private Gist. Each snippet holds multiple code fragments, so a Docker Compose file, its .env template, and a plaintext usage note live together under one titled, categorized entry. Monaco-based syntax highlighting covers dozens of languages, from Python, TypeScript, Go, and Rust to YAML, Dockerfiles, Terraform, and Markdown. Retrieval is the point: filter by language or category, search titles and descriptions, and optionally include snippet contents in full-text search. Snippets can be pinned for quick access and shared via public links that recipients open without an account. Multi-user support runs on JWT authentication with optional OIDC single sign-on for teams on centralized identity, and a full CRUD REST API with Swagger documentation wires snippet retrieval into editors, scripts, and CI pipelines. Storage is a single SQLite database with optional encryption, and collections export as JSON or Markdown. A React frontend on a Node.js backend, deployed as one lightweight container.

ByteStash

Benefits

  • Stop Rewriting Solved Problems
  • The regex, the cron syntax, the Compose file you perfected months ago - tagged, highlighted, and findable in seconds instead of buried in old projects.
  • Snippets with Context
  • Multiple fragments per snippet keep code, config, and plaintext notes together, so future-you knows not just what the code is but how to use it.
  • Share Without Friction
  • Public links open for anyone - no recipient accounts - while private snippets stay behind JWT auth and optional OIDC SSO.
  • Private by Architecture
  • Proprietary code fragments live in an encrypted SQLite file on your server, not in a snippet vendor's cloud, and export as JSON or Markdown anytime.

Features

  • Multi-Fragment Snippets
  • Group related code, configs, and notes under one titled, described, categorized entry.
  • Monaco Syntax Highlighting
  • Accurate highlighting for dozens of languages including Python, TypeScript, Go, YAML, Dockerfile, and Terraform.
  • Search and Filter
  • Filter by language and category, search titles and descriptions, and optionally search inside code contents.
  • Sharing and Pinning
  • Public share links without recipient accounts; pin favorites for instant access.
  • Auth and API
  • Multi-user JWT authentication, optional OIDC SSO, and a full CRUD REST API with Swagger docs.
  • Lightweight Storage
  • Single SQLite database with optional encryption; JSON and Markdown export for backup and migration.