End-to-end encryption
Provide a secret and every item is encrypted in the browser with AES-GCM 256 before it leaves the device. The server only ever stores ciphertext.
Add shared, real-time storage to any static HTML page. No server, no database, no sign-up. Changes sync worldwide in milliseconds and can be encrypted in the browser.
Pick a name above. You get three tokens: read, write and admin.
Paste the snippet into any HTML file, with the room name and write token.
Send it on Telegram or host it anywhere. Everyone who opens it sees the same live data.
<script src="https://stash.devlabs.uz/stash.js"
data-room="my-project"
data-token="wrt_your_write_token"></script>
<form data-stash-form="messages">
<input name="text" placeholder="Write something…" required />
<button>Send</button>
</form>
<ul data-stash-list="messages"></ul>
Provide a secret and every item is encrypted in the browser with AES-GCM 256 before it leaves the device. The server only ever stores ciphertext.
WebSocket fan-out from the nearest edge, with automatic reconnects.
Separate read, write and admin tokens, bound to a per-room random salt.
Room creation needs a small SHA-256 puzzle. Bots pay, humans barely notice.
No hosting needed. Open the HTML file straight from disk or Telegram.
Reads come from an IndexedDB cache and writes are queued while offline. They sync automatically when the connection returns.
Connect forms and lists with plain HTML attributes. No JavaScript required. Content is always rendered with textContent, so user input can never inject markup.
<script src="https://stash.devlabs.uz/stash.js"
data-room="my-project"
data-token="wrt_your_write_token"></script>
<form data-stash-form="comments">
<input name="name" placeholder="Your name" required />
<input name="text" placeholder="Your comment" required />
<button>Send</button>
</form>
<p><span data-stash-count="comments">0</span> comments</p>
<ul data-stash-list="comments">
<template>
<li><b data-field="name"></b>: <span data-field="text"></span></li>
</template>
</ul>This is the real service, not a simulation. We create a temporary room and connect two independent clients to it. Messages are encrypted in the browser before they are sent.
Starts a temporary encrypted room that expires after 30 days of inactivity.
Different token, same secret
No account and no card. These limits keep the service fast and fair for everyone.
| Active items per room | 500 |
|---|---|
| Item size | 8 KB |
| Writes per IP address | 5 / s (burst 15) |
| Live connections per room | 100 |
| Room creation | 10 / min per IP |
| Idle expiry | 30 days |
Only holders of a token can. For anything sensitive, enable end-to-end encryption so even the server cannot read it.
The room and all its data are permanently deleted, and the name becomes available again.
Yes. The whole backend is one Cloudflare Worker plus a D1 database. The README has the full deploy guide.
Paste this prompt together with your HTML. The agent wires StashJS in correctly on the first try.
ROLE: You are an expert front-end engineer. Integrate StashJS v2 (a real-time backend for static HTML/JS pages) into the user's code.
RULES
1. Load the SDK: <script src="https://stash.devlabs.uz/stash.js"></script>. It also works on file:// pages.
2. Access is token-based. Ask the user for their room name and WRITE token (wrt_...); create them at https://stash.devlabs.uz if needed. Never put an admin token (adm_...) in client code.
3. Choose one mode:
A) Declarative: add data-room and data-token to the script tag, data-stash-form="collection" on forms (inputs need name attributes), data-stash-list="collection" on lists (optional <template> with [data-field] children), data-stash-count="collection" on counters.
B) Programmatic:
const room = await Stash.connect("ROOM", { token: "wrt_...", secret: optionalSecret });
await room.push("collection", { ...data });
room.on("collection", (items) => { /* item: { id, data, lamport, createdAt, mine, pending } */ });
await room.remove(id); // own items only
room.onStatus((s) => {}); // "connecting" | "online" | "offline"
4. Sensitive data: pass { secret } (or let the SDK read #key=... from the URL) to enable end-to-end AES-GCM encryption.
5. Always render user data with textContent, never innerHTML. Keep each item under 8 KB. Do not store images as base64.
6. Return complete, runnable single-file HTML.