A personal code vault
A quiet home for
the code you save.
snippet.tools is a small, ad-free place to file the code you keep coming back to. Private by default. Multi-file aware. Markdown-friendly. Every change is kept, so nothing you wrote is ever quite gone.
1# app/models/snippet.rb 2class Snippet < ApplicationRecord 3 has_many :files, dependent: :destroy 4 scope :public, -> { where(visibility: "public") } 5 6 def to_param = slug 7end
Your snippets are yours. Make one public when you want to share it — a clean /s/your-slug URL, nothing more.
A snippet isn't always a single file. Group HTML, CSS, and JS — or migration plus model plus test — into one record. Drag to reorder.
Every edit is recorded. Markdown for descriptions, CodeMirror for the code, passkeys or TOTP for sign-in. Built like a notebook you'd actually keep.