snippet.tools

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.

Sign in Registration is currently invite-only.
snippet.rb
schema.sql
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
ruby rails private · 6 lines
Private by default

Your snippets are yours. Make one public when you want to share it — a clean /s/your-slug URL, nothing more.

Multi-file aware

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.

Versioned forever

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.