A code snippet storage solution written in React & node.js
  • TypeScript 75.4%
  • JavaScript 22.5%
  • CSS 1.2%
  • Smarty 0.5%
  • Dockerfile 0.2%
  • Other 0.2%
Find a file
2025-02-08 13:38:10 +00:00
.github Updated check for the PR source being internal 2024-11-25 18:37:10 +00:00
client [bug] fixed missing settings when snippetcards were small 2025-02-08 13:38:10 +00:00
helm-charts/bytestash Update Helm-Chart to v0.1.1 2025-01-11 09:38:48 +00:00
media Changed logo colour to work better with both light and dark themes 2024-11-26 22:51:37 +00:00
server Allow favicon.ico to be loaded with subpath 2025-01-10 09:42:19 +00:00
.gitignore Added API keys and snippet pushing endpoint 2024-12-10 18:47:43 +00:00
docker-compose.yaml Optionally disable standard login 2024-11-25 12:25:38 +00:00
Dockerfile Removes build dependencies in the same layer as they were installed in to reduce image size 2024-11-25 17:44:22 +00:00
LICENSE Update LICENSE 2024-11-17 16:51:03 +00:00
package-lock.json Added support for markdown descriptions & removed linkify 2024-12-10 19:01:58 +00:00
package.json Upgraded to vite to get rid of vulnerabilities with react-scripts 2024-10-25 23:15:54 +01:00
README.md Update README.md 2025-01-20 14:09:32 +00:00

ByteStash

ByteStash is a self-hosted web application designed to store, organise, and manage your code snippets efficiently. With support for creating, editing, and filtering snippets, ByteStash helps you keep track of your code in one secure place.

ByteStash App

Demo

Check out the ByteStash demo powered by PikaPods!
Username: demo
Password: demodemo

Features

  • Create and Edit Snippets: Easily add new code snippets or update existing ones with an intuitive interface.
  • Filter by Language and Content: Quickly find the right snippet by filtering based on programming language or keywords in the content.
  • Secure Storage: All snippets are securely stored in a sqlite database, ensuring your code remains safe and accessible only to you.

Howto

Unraid

ByteStash is now on the Unraid App Store! Install it from there.

PikaPods

Also available on PikaPods for 1-click install from $1/month.

Docker

ByteStash can also be hosted manually via the docker-compose file:

services:
  bytestash:
    image: "ghcr.io/jordan-dalby/bytestash:latest"
    restart: always
    volumes:
      - /your/snippet/path:/data/snippets
    ports:
      - "5000:5000"
    environment:
      # See https://github.com/jordan-dalby/ByteStash/wiki/FAQ#environment-variables
      BASE_PATH: ""
      JWT_SECRET: your-secret
      TOKEN_EXPIRY: 24h
      ALLOW_NEW_ACCOUNTS: "true"
      DEBUG: "true"
      DISABLE_ACCOUNTS: "false"
      DISABLE_INTERNAL_ACCOUNTS: "false"

      # See https://github.com/jordan-dalby/ByteStash/wiki/Single-Sign%E2%80%90on-Setup for more info
      OIDC_ENABLED: "false"
      OIDC_DISPLAY_NAME: ""
      OIDC_ISSUER_URL: ""
      OIDC_CLIENT_ID: ""
      OIDC_CLIENT_SECRET: ""
      OIDC_SCOPES: ""

Tech Stack

  • Frontend: React, Tailwind CSS
  • Backend: Node.js, Express
  • Containerisation: Docker

Contributing

Contributions are welcome! Please submit a pull request or open an issue for any improvements or bug fixes.