Skip to content

snippet-box

Small self-hosted library for storing and searching your own code snippets

Permissive (OSI) · MIT

Listed by , founder & editor

18

Health

Dormant

Overview

Stars

1,096

Last commit

5 years ago

Oct 2021

Repository age

5 years

since Sep 2021

Latest version

–

Contributors

–

Releases

0

last 12 months

Docker pulls

2.6M

pawelmalak/snippet-box

Language

TypeScript

Snippet Box is a simple web app for organizing code snippets. You create and edit snippets in many languages, add Markdown notes, tag them, and search with tag and language filters. Syntax highlighting is built in, and you can pin favorites to the home screen.

The backend uses Node.js, Express and TypeScript with Sequelize and SQLite. The front end is React with Bootstrap. You deploy it with Docker, using a single container with a mounted data folder, or with docker-compose. An ARM image tag exists for devices such as Raspberry Pi, and the wiki covers installation without Docker.

It is MIT licensed. The last commit was in October 2021, so expect no new features. It suits people who want a personal snippet manager they host themselves instead of a commercial snippet service.

Who it's for

Developers who want a private snippet library at home

It runs in one Docker container with SQLite and needs no external database.

Skip if: You need team sharing, accounts or editor plugins.

Homelab users on ARM hardware

An ARM image tag and build instructions are provided.

Skip if: You want software that receives regular updates.

The problem it solves

Useful code snippets end up scattered across notes and files. Snippet Box gives you one searchable place with tags, language filters and Markdown notes that you host yourself.

Strengths

  • Runs as one Docker container with SQLite storage
  • Search with tag and language filters
  • Markdown notes and built-in syntax highlighting
  • ARM image tag available
  • MIT license

Trade-offs

  • Dormant: last commit was in October 2021
  • No team or multi-user features described
  • Focused on snippets only, with no integrations listed

Self-host snippet-box

Self-hostable
Yes
Docker image
pawelmalak/snippet-box
Docker Compose
The repository ships a Compose file

Quick start

docker run -p 5000:5000 -v /path/to/data:/app/data snippet-box

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Snippet Box free?

Yes. It is open source under the MIT license.

Can I self-host it?

Yes. Use Docker or docker-compose, or follow the wiki for installation without Docker.

Does it run on ARM?

Yes. Use the :arm tag or build the ARM image from Dockerfile.arm.

Is it still maintained?

Not actively. The last commit was in October 2021.

Similar tools in Developer utilities

cowyo

Developer utilities

Self-hosted shared scratchpad and pastebin with live editing and browser-side encryption

983 67 3 months ago Dormant mit

Flyimg

Developer utilities

1.2k 123 12 days ago Thriving AGPL-3.0

Stikked

Developer utilities

989 211 7 years ago Dormant Unknown

JD-GUI

Developer utilities

15k 2.5k 7 years ago Dormant GPL-3.0

Pastefy

Developer utilities

463 92 8 days ago Thriving MIT

cdnjs

Developer utilities

11k 4.4k 3 months ago Slowing MIT