ByteStash
★ 2.5kGNU General Public License v3.0Open Source — No PaywallSingle Container — single container — minimal hosting footprintDockerNo external DB15 active committers (12mo)
About
ByteStash is a self-hosted web application for managing code snippets in a single secure place. It is aimed at users who want a simple personal or team snippet repository with the ability to create,...
Community Ratings
No ratings yetNew this week
Read recap →Weekly Recap — Oct 2, 2026 – Oct 9, 2026Oct 9, 2026
Features
- create snippets
- edit snippets
- filter by language
- filter by content
- secure snippet storage
- MCP endpoint for AI assistants
- API documentation via Swagger UI
Details
- Last Updated
- Oct 10, 2026
- Created
- Oct 16, 2024
- Install Methods
- docker
- Requirements
- sqlite databaseNode.jsExpressReactTailwind CSS
- Authentication
- oidc-ssolocal
- API
- REST
- Runtime / Stack
- Docker
- Privacy & Independence
- Cloud: OptionalOffline Capable
- User Model
- Multi-User
- Deployment
Deployment: Docker Compose ✓Single Container — minimal hosting footprintsingle container
Run ByteStash with Docker Compose
Compose file from the ByteStash project repository.
1 service
no resource limits declared
needs persistent storage (1 volume)
docker-compose.yaml · @ 0f70994 · scanned Jun 7, 2026
services:
server:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
# e.g. write /bytestash for a domain such as my.domain/bytestash, leave blank in every other case
- BASE_PATH=
# optionally include additional allowed hosts for reverse proxies
# e.g. localhost,my.domain.com,my.domain.net
- ALLOWED_HOSTS=
# Either provide JWT_SECRET directly or use JWT_SECRET_FILE for Docker secrets
#- JWT_SECRET_FILE=/run/secrets/jwt
- JWT_SECRET=your-secret
# how long the token lasts, examples: "2 days", "10h", "7d", "1m", "60s"
- TOKEN_EXPIRY=24h
# is this bytestash instance open to new accounts being created?
- ALLOW_NEW_ACCOUNTS=true
# Should debug mode be enabled? Essentially enables logging, in most cases leave this as false
- DEBUG=false
# Should we use accounts at all? When enabled, it will be like starting a fresh account so export your snippets, no login required
- DISABLE_ACCOUNTS=false
# Should internal accounts be disabled?
- DISABLE_INTERNAL_ACCOUNTS=false
# Allow password changes (false by default)
- ALLOW_PASSWORD_CHANGES=true
# Optional: Enable OIDC for Single Sign On
- OIDC_ENABLED=true
# Optional: Display name for users signing in with SSO, will default to Single Sign-on
- OIDC_DISPLAY_NAME=
# Your OIDC issuer url, e.g. https://authentik.mydomain.com/application/o/bytestash/ for authentik
- OIDC_ISSUER_URL=
# Your OIDC client ID, you can find it in your app provider
- OIDC_CLIENT_ID=
# Your OIDC client secret, again, found in the app provider
- OIDC_CLIENT_SECRET=
# The OIDC scopes to request, e.g. "openid profile email groups"
- OIDC_SCOPES=
# Optional: Comma-separated list of usernames that should have admin privileges
# e.g. "admin,jordan" - these users will have access to the admin panel
- ADMIN_USERNAMES=admin
volumes:
- ./data:/data/snippets
# Uncomment to use docker secrets
# secrets:
# - jwt
#secrets:
# jwt:
# file: ./secrets/jwt.txt
This file may be out of date. Check the ByteStash documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.
Metadata extracted from README on Jun 25, 2026
Related Software
Karakeep
29.6k
Karakeep is a self-hostable bookmark-everything app with AI-assisted tagging, summarization, and search.
Bookmark ManagementPastebinsCopyleft License+4
3 Containers
SilverBullet
6.3k
SilverBullet is a self-hosted, browser-based personal knowledge management platform with a programmable Markdown editor.
Note Taking AppsPastebinsPermissive License+4
Single Container
SnyPy
Open source on-prem code snippet manager.
PastebinsSelf Hosting SolutionsKnowledge Management+1
DreamFactory
1.8k
DreamFactory is a self-hosted platform that provides governed API access to databases and other data sources for enterprise applications and local LLMs.
API ManagementDatabase ManagementLow Code Development+3
TrailBase
5.7k
TrailBase is a single-executable Firebase alternative with type-safe REST and realtime APIs, built for self-hosted applications.
Low Code DevelopmentSelf Hosting SolutionsDatabase Management+4
Para
574
Para is a scalable multitenant backend server/framework for object persistence, retrieval, and API-based application backends.
API ManagementPermissive LicenseAuthentication Services+3
Open Core
Revert
1.0k
An open-source unified API platform for building and self-hosting product integrations with third-party services.
API ManagementAutomation ToolsAuthentication Services+2
FreshRSS
16.3k
FreshRSS is a self-hosted RSS feed aggregator with multi-user support, an API, and a command-line interface.
RSS Feed ReadersCopyleft LicenseSelf Hosting Solutions+2
Single Container
Note Mark
775
Note Mark is a web-based Markdown notes app with a minimal, responsive UI.
Note Taking AppsKnowledge ManagementSelf Hosting Solutions+3
Scoold
923
A Q&A and knowledge sharing platform for teams, inspired by Stack Overflow.
Social NetworksPermissive LicenseKnowledge Management+2
Open Core
Listaway
11
Listaway is a self-hostable web application for publishing and sharing public lists and collections with authenticated users, groups, and optional public read-only access.
Task ManagementBookmark ManagementSelf Hosting Solutions+3
Tyk
10.9k
Tyk Gateway is an open source, cloud-native API gateway for managing, securing, and monitoring APIs across REST, GraphQL, TCP, and gRPC protocols.
API ManagementProxy ServersAnalytics Tools+2

