Stash it.
Share it.

Keep your snippets, commands, and prompts in one private stash. Share any of them with a short link, a raw URL for curl, or a clean image.

Share a snippet

import { useEffect, useState } from 'react';

export function useDebounce<T>(value: T, delay = 300): T {
  const [debounced, setDebounced] = useState(value);

  useEffect(() => {
    const timer = setTimeout(() => setDebounced(value), delay);
    return () => clearTimeout(timer);
  }, [value, delay]);

  return debounced;
}

devstash.io/s/k3j9x2ab

Link copied

The shared snippet as an image: useDebounce hook in TypeScript, by @sam, with its short link

One link, every format

Every shared snippet gets a short link that never changes. Change the end of it to get the format you need.

devstash.io/s/k3j9x2ab

The page: highlighted, with a copy button, readable on any device.

useDebounce hook

Holds back a fast-changing value, like a search box, until the typing stops.

import { useEffect, useState } from 'react';

export function useDebounce<T>(value: T, delay = 300): T {
  const [debounced, setDebounced] = useState(value);

  useEffect(() => {
    const timer = setTimeout(() => setDebounced(value), delay);
    return () => clearTimeout(timer);
  }, [value, delay]);

  return debounced;
}

Collections get a readable address too: devstash.io/sam/docker-essentials is one ordered page, and .md on the end gives you the same collection as markdown.

What people see when you share

A clean page with real syntax highlighting and a copy button on every block. Nothing to sign up for to read it.

devstash.io/s/k3j9x2ab

@samTypeScript

useDebounce hook

Holds back a fast-changing value, like a search box, until the typing stops.

import { useEffect, useState } from 'react';

export function useDebounce<T>(value: T, delay = 300): T {
  const [debounced, setDebounced] = useState(value);

  useEffect(() => {
    const timer = setTimeout(() => setDebounced(value), delay);
    return () => clearTimeout(timer);
  }, [value, delay]);

  return debounced;
}
A single snippet, shared from the Share button or the drawer.

devstash.io/sam/docker-essentials

Docker Essentials

The Docker commands and configs I reach for on every project.

@sam3 items

Run Postgres locally

$ docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=pg postgres:18

docker-compose.yml

services:
  db:
    image: postgres:18
    environment:
      POSTGRES_PASSWORD: postgres
    ports:
      - "5432:5432"

Cleanup checklist

  • docker ps -a to find stopped containers
  • docker system prune to clear unused images and networks
  • Never prune volumes without a backup
A collection as one page, every block in the order you set.

See a real one

Looks right wherever you paste it

Every link unfurls into a preview card with the code on it, in Slack, X, Discord, and iMessage.

jordan10:42 AM

Here's the debounce hook from standup https://devstash.io/s/k3j9x2ab

DevStash

useDebounce hook

Holds back a fast-changing value, like a search box, until the typing stops.

The link preview card: useDebounce hook, its first lines of code, @sam, devstash.io

Found something useful? Keep a copy.

Save to your stash copies a shared snippet, or a whole collection, into your own account. Your copy stays private until you share it.

Everything you share starts in your stash

Save it privately first, find it in a keystroke, and share it only when you choose.

Private by default

Everything you save is yours alone until you choose to share it. Change who can see an item or a collection any time.

Instant search

Cmd+K finds any snippet, prompt, command, or note by its title or content.

Collections

Group items by project or topic. Keep a collection private, or publish it as one ordered page.

Every kind of snippet

Snippets, prompts, commands, notes, and links, highlighted in 30 languages.

AI helpers

Suggested tags, plain-English explanations of code, and a prompt optimizer that rewrites your prompts.

Export anytime

Download everything as markdown or JSON whenever you want.

Your next snippet deserves a link

Free to use, with sharing built in. Paste something and send the link.

Start sharing free