stashly

Stashly

Share text, images and files between computers that can’t reach each other. Open the same link on both, drop something on one, and it shows up on the other. No account needed.

Stashly is self-hosted: you run it on your own machine or server, and your notes and files stay there.

Using it

  1. Open or create a stash. The home page (My stashes) has an Open a stash box that takes a name, or a link you were given, and an Add stash button at the top right. Add stash opens a popup with a name — press Use a random name, or leave the box empty and press Create — plus an optional password and how long it lives (30 days to start with when you are signed in, 1 day otherwise). A stash lives at /s/<name>.
  2. Open the same link on your other machine (the QR code button in the header opens it on a phone).
  3. Add things. Type a note, add files with the paperclip, drag them onto the page, or paste a screenshot (Ctrl+V).
  4. Copy them on the other side. Items appear live, with no refresh. Press Copy latest (or Alt+C) for the newest note, or the copy button on any note.

Everything else is optional:

All of it, with the details, is in docs/features.md.

From a terminal

curl -d "text to share" -H "Content-Type: text/plain" http://HOST:3000/api/stashes/NAME/notes
curl http://HOST:3000/api/stashes/NAME/latest
curl -X POST http://HOST:3000/api/stashes/NAME/files -H "X-File-Name: report.pdf" \
     -H "Content-Type: application/octet-stream" --data-binary @report.pdf

For a password-protected stash, unlock once and reuse the cookie: curl -c jar -d '{"password":"..."}' -H "Content-Type: application/json" .../unlock, then add -b jar to later calls.

The stashly command

bin/stashly.js does the same in one file with no dependencies (Node 22+). It unlocks password-protected stashes for you and uploads files straight from disk. Run it as node bin/stashly.js ..., or as stashly ... after npm link.

export STASHLY_URL=http://HOST:3000        # default http://localhost:3000
export STASHLY_PASSWORD=...                # only for password-protected stashes

stashly new NAME --ttl 7d --password P     # create a stash
stashly send NAME "text to share"          # a note (or pipe text in on stdin)
stashly send NAME --file report.pdf        # upload a file
stashly get NAME                           # the newest note
stashly list NAME                          # what is in the stash
stashly pull NAME ID --out copy.pdf        # download a file
stashly export NAME --out all.zip          # the whole stash as a zip

For AI assistants (MCP)

Stashly can be a Model Context Protocol server, so Claude Code and other assistants can create a stash for a topic, push notes into it (with tags) and read them back. Switch it on in Admin > Server Settings > MCP (then restart); each user makes their own named access tokens under User Settings > MCP, and each stash has its own switch (Stash Settings > Access, or the menu in My stashes) that is off until its owner turns it on (or they choose “let AI assistants use the stashes I make from now on”). Connect a client (Claude Code, Codex, opencode, VS Code, Cursor, Gemini CLI, Windsurf, Zed, Cline, Antigravity, …) to https://<your stashly>/mcp, or sign in ChatGPT or Claude on the web as a custom connector with OAuth (the server needs a public HTTPS address), or run bin/stashly-mcp.js from the client instead. It can add, read, edit and tag notes, and never deletes anything. Setup and the tools are in docs/mcp.md.

Browser extension

A small extension for Chrome, Edge and Firefox sends notes, links and files to a stash from any tab, and lists, searches and copies your notes. Each release attaches it built for that version; see extension/README.md. What it and the server do with your data is in PRIVACY.md.

Run your own

Needs Node 22.13 or newer (nothing to compile).

npm install
npm start

Open http://localhost:3000. Settings go in environment variables (see .env.example); to load a file: node --env-file=.env src/app.js.

With Docker

The image is published as ghcr.io/sunnykatiyar50/stashly for linux/amd64 and linux/arm64.

docker compose up -d
docker compose pull; docker compose up -d     # update later

Open http://localhost:3000. Copy .env.example to .env next to docker-compose.yml and set at least SESSION_SECRET and ADMIN_PASSWORD.

Keep your data on a volume. The database (/data/stashly.sqlite) and uploaded files (/data/files) must be on a volume or bind mount, because updating the image recreates the container and deletes anything stored inside it. The compose file already does this: it pins SQLITE_PATH to /data/stashly.sqlite, so a SQLITE_PATH in your .env (such as the ./stashly.sqlite used when running without Docker) cannot move the database off the volume. Leave it unset.

Without Compose:

docker run -d --name stashly --restart unless-stopped -p 3000:3000 \
  -v stashly-data:/data ghcr.io/sunnykatiyar50/stashly:latest

Once it is running

Keep in mind

More documentation

   
Features in detail Every feature, option and limit of a stash
Accounts and admin Users, roles, following stashes, password reset by email, the admin area
Configuration All settings and environment variables, file types
Running a server Logs, metrics and security notes
API HTTP endpoints and resumable uploads
Releasing How maintainers cut a release

Tests

npm test