What Is Snug Protocol?
Snug is a protocol, not an AI model and not a single app. It describes how a small web app, a host program and an AI agent talk to each other and where the app's data is kept. The project's premise is that an app an AI assistant builds for you normally stays tied, with its data, to the platform that made it. The code is in the snug repository on GitHub.
- The app: a small, self-contained HTML app with its own interface and logic, built by an AI agent from a plain-language description
- The host: a program that runs the app in a sandbox and mediates its AI requests, storage and network access; the project ships two, a macOS app and a browser Playground
- The user file: one SQLite file ending in .snug that holds apps, their data, chats and settings, and that can be exported whole and moved between compatible hosts
How the Pieces Fit Together
Apps and the host exchange versioned JSON messages, called envelopes. The documentation calls the AI agent the app's "mind" and the app its "body": the app draws the screen and keeps the state, and the agent supplies intelligence when asked.
- Runtime AI: the host supplies the model while the app runs, so switching models does not mean rebuilding the app, according to the project
- Isolated storage: each app gets its own database namespace inside the user file
- The specification: seven parts, summarized one by one in the next section
- For developers: the documentation has guides for building a host and for embedding Snug in another product; neither was tested here
The Seven Parts of the Specification
The specification has seven parts, and each one fixes a different layer of how apps, hosts and the user file interact. The maker says the current version is 1.3, dated 12 October 2026, with 15 frame types. Part IV and the concept pages were read in full for this feature; for the other parts only the specification overview was read, which gives titles and stability notes. The public pages read here still showed the 1.0 text, so the part list below follows the maker's description of 1.3.
- Part I, the wire protocol: the core frames, the chat envelope and rules R1 to R7. The network and open-URL frame pairs were added with specification v0.3 and are normative at 1.0
- Part II, the portable user database: the storage schema (version 6), the
.snugfile naming andSNUGENC1 - Part III, connected apps: requirements, grants, credential custody and the executor
- Part IV, runtime contracts and the app chat surface: how an installed app talks to the AI without carrying its build history, covered in its own section below
- Part V, linked-device connections: the specification calls this the sidecar surface
- Part VI, user-approved access between apps: how one app can reach another with the user's approval; added after the 1.0 text we read and described here from the maker's account
- Part VII, conformance: what a compatible implementation must do; the overview we read gives only the title
What an App and a Message Look Like
An app is one HTML file that talks to its host through typed frames, published as JSON Schemas; the maker puts the count at 15 in specification 1.3. The concept page we read lists 13 frames in six families (the two further frames were not identified here), and the app never touches the network or the model provider directly.
- Handshake:
snug:host-ready(the host advertises its instance ID, protocol versions and capabilities) andsnug:app-announce(the app identifies itself) - Agent bridge:
snug:app-message,snug:app-responseandsnug:app-cancel, which carry requests to the host's AI agent - Storage:
snug:db-requestandsnug:db-response, which run host-brokered SQL on the app's own tables - Network:
snug:net-requestandsnug:net-response, which the project describes as the only path out, limited to hosts the user approved - Navigation:
snug:open-url-requestandsnug:open-url-result, where the host opens the browser after its own confirmation - Events:
snug:host-eventandsnug:app-event, an open channel for theme, visibility and resize signals; unknown events are ignored
// 1. App side. Fragments from the project's "Build your first app" guide.
const { isReady, sendMessage } = useSnugApp({
appId: 'pocket-chess-coach',
displayName: 'Pocket Chess Coach',
})
const reply = await sendMessage('opponent-move', { lastMove: 'e7e5' })
if (reply.ok) applyMove(reply.data.move)
const db = useAppDB()
await db.exec('INSERT INTO games (pgn, played_at) VALUES (?, ?)', [pgn, Date.now()])
// 2. On the wire. ILLUSTRATIVE: the field names follow the published
// JSON Schema; every value is invented. The docs show no sample message.
const request = {
v: 1,
type: 'snug:app-message',
requestId: 'req-001',
instanceId: 'host-instance-id',
appId: 'pocket-chess-coach',
action: 'opponent-move',
payload: { lastMove: 'e7e5' },
}
const response = {
v: 1,
type: 'snug:app-response',
requestId: 'req-001',
ok: true,
streaming: false,
data: { move: 'g1f3' },
}Runtime Contracts and the App Chat Surface
A runtime contract is a small JSON description, held by the host, of what an app is and what a good answer looks like, and it replaces the long build instructions on every runtime turn. The Part IV specification defines it, together with an optional chat beside each installed app.
- Shape: a strict JSON object with a required
overviewof 1 to 600 characters; optional fields for tone, per-turn state and reply format; up to 16 settings; and an optional output ceiling of 256 to 8,192 tokens that can only narrow output. The whole contract may not exceed 2,560 bytes - Custody: the host assigns contracts and an app cannot supply one. Contracts are stored per app version and move with edits and reverts. For whole-database imports (§18.2), an imported contract is dropped unless the hub already holds an identical one, so a foreign file cannot inject instructions. Shared app bundles take a separate path (§12.14): their runtime contract is shown to the user as plain text and admitted only through an explicit install or update
- Why it matters: a turn carries the contract and the action payload, not the build conversation, so the same app can run on a large hosted model or a small local one. The project says the reference implementation saves roughly a kilobyte per turn; that figure was not tested
- Chat surface: each message is classified into one of eight intents across four lanes: data, feature, provider and answer. If classification fails, the host asks a clarifying question rather than defaulting to a lane, and never to the code-writing lane
- Data lane: reads run on a disposable copy of the app's own database with capped results. Writes follow propose, preview, approve and re-validate, and the host halts if affected-row counts change between preview and execution
- Feature lane: changes to the app itself happen without a confirmation step. The safeguards are versioning, a visible reload and revert, and the specification requires hosts to disclose that this differs from the data lane
- Untrusted data: prompts that include stored data must mark it as untrusted and defang any delimiter text inside it
Snug vs Vibe Coding Plus Tauri or Electron
For a developer who builds apps with Claude or Codex and ships them with Tauri or Electron, Snug trades distribution reach and control for a much lighter way to deliver small AI-driven tools. It does not replace that workflow today, and it competes with it only for a narrow class of apps.
Area | Own app (Tauri/Electron) | Snug app |
|---|---|---|
| Output | Native binary per app | One HTML file in a host |
| Shipping | Build, sign, update each app | Host mounts the file |
| AI access | Your keys, proxy or user keys | Host supplies model, no keys |
| Data | Storage you design | Isolated tables in .snug |
| Network | Whatever your code does | Approved hosts via host only |
| Native APIs | Full access | Only what the host exposes |
| Platforms | macOS, Windows, Linux | macOS app, browser demo |
| Audience | Anyone can install it | Needs a Snug host |
| Maturity | Established tooling | Pre-1.0 app, one maintainer |
The Snug column reflects the project's own documents; PromptQuorum has not built an app in Snug. The Tauri and Electron column describes the general approach, not one specific app.
Should a Vibe-Coding Developer Switch?
Move only the apps that fit: small personal or team tools that mainly call an AI model and keep their own data. Keep Tauri or Electron for anything you sell, ship to the general public or need on Windows or Linux.
Where Snug is better
- AI without key handling: the app never sees the model provider, its keys or which model answered, so you do not decide how keys reach the model
- Nothing to ship per app: no installer, signing or update channel for each small tool; the host mounts the HTML file
- User-owned data: one exportable SQLite file, instead of a storage and export design in every app
- Default-deny sandbox: no direct network access and no credentials inside the app, according to the project's own threat model, which is not independently audited
- Model swap without a rebuild: the runtime contract lets the user pick a frontier or a small local model, per app
Where it is worse
- Reach: only a macOS app and a browser demo exist, your users need a host, and no store or payment mechanism was found in the documents read
- Control: no arbitrary network calls, no native APIs and no custom backend; you work inside what the host exposes
- Your own toolchain: in the first-app guide the host's builder agent writes the file from your description, so your own Claude or Codex setup, tests and CI do not carry over directly
- Maturity: version 0.1.3, one maintainer, no second host and no independent audit, so portability between hosts is unproven
A reasonable way to decide
- Pick one small personal tool you would otherwise package, and compare the effort of rebuilding it in Snug
- Stay on Tauri or Electron if the audience is the public, the app needs native features, or you need Windows or Linux today
- PromptQuorum has not run this comparison, so treat the table above as a reading of the documentation
Local and Hosted Models
The host chooses the model, so Snug can run on local or hosted inference. The download page says the macOS app needs either an Anthropic or OpenAI API key or a local OpenAI-compatible endpoint, and it names a local model served through Ollama as an option.
- Local path: an OpenAI-compatible local endpoint keeps inference on your own machine; no hardware or Ollama version requirement is published
- Hosted path: a cloud model receives whatever an app sends it for inference
- Credentials: keys are stored in your own .snug file and attached by your machine rather than by a Snug server, according to the download page
- Other services: the project's site says an app that reads a bank account still goes through an aggregator, so "no app backend" does not mean no external service
Security Design and Its Limits
Snug documents its security design in a public threat model, but that document is the project's own and no independent audit was found. The points below are what the document states, not what was tested.
- Sandbox: app iframes use
sandbox="allow-scripts"with an opaque origin and a content policy ofconnect-src 'none', so an app cannot open its own network connections - Credential custody: credential-shaped headers are refused at the protocol layer, and responses and errors are scrubbed before they reach the app
- Network ceiling: apps reach only hosts the user approved, redirects are not followed, and requests that change data need confirmation before a credential is read
- File protection: the user file is plaintext by default; AES-256-GCM encryption applies only when the user turns protection on
- Accepted risks: the document lists residual risks, among them that third parties' messages can reach an LLM when an app reads a messaging store, and that one integrity check catches a partial copy but not another process running as the same user
- Windows: the document records known defects on Windows, a platform the project does not ship
From the Maker
Jeetu Maker, the creator of Snug, shared the following about the project and why they built it. It is presented as the maker's own words, not as PromptQuorum's independent editorial assessment:
"Make apps you can talk to. Keep it like a single document.
I built Snug because personal software should work around your life, and the work you put into it should stay yours.
Describe a small tool you need, and AI builds it. Then that intelligence stays with you as you use the app.
Take a spending tracker. Ask, “How much did I spend eating out this month?” The chat beside the app can query its records, even if nobody built a screen for that question. You don’t have to anticipate every question when you create the tool.
The app, its data and its history live together in one .snug file you control. Back it up like a document. Change the model behind it without rebuilding the app. Run it with a local model on your machine. Your personal tool doesn’t need its own cloud database collecting your financial history.
That’s the future I’m building toward: software that fits your life and stays in your hands.
Snug is early and open source. Open a starter in the Playground, connect your model to explore its AI features, and export your first .snug file."
— Jeetu Maker, creator of Snug
Get It
Snug's code is MIT-licensed and the project states no price for the macOS app, a universal .dmg for Apple silicon and Intel; the Playground runs in a browser.
Item | Where to get it |
|---|---|
| macOS app | Snug.dmg, version 0.1.3 |
| Browser Playground | playground.snugprotocol.org |
| Website | snugprotocol.org |
| Privacy policy | snugprotocol.org/privacy |
| Source code | GitHub, MIT |
| Specification | Specification 1.3 per the maker |
| Windows, Linux | Planned after 1.0 |
Verified on 17 October 2026: macOS app 0.1.3, released 5 September 2026; the repository itself was last updated on 15 October 2026. The download page states no price, no minimum macOS version and no signing details for the app. The project calls the Playground a demo that keeps data in the browser, not a private deployment.
How Mature Is It?
The specification is published and versioned, but the surrounding ecosystem is a single project. The repository was created on 31 July 2026.
Area | Finding |
|---|---|
| Specification | Version 1.3 (12 October 2026) per the maker; public pages read still showed 1.0 |
| Implementation | macOS app 0.1.3; pre-1.0 per the maker |
| Contributors | One human account, plus a dependency bot |
| GitHub activity | 2 stars, 0 forks, 11 open issues |
| Other hosts | None found beyond the project's own |
| Security audit | None found; threat model is self-published |
GitHub counts were read on 17 October 2026 and will change.
What We Could Not Verify
Everything above comes from the project's own documents and its GitHub pages. These points could not be confirmed.
- Hands-on behavior: PromptQuorum has not installed or run the macOS app or the Playground
- Adoption: no second host implementation and no third-party users were found
- Security: no independent audit or penetration test, and the long threat model was read only in part
- Project-reported claims: figures on savings or speed from the project's own material, such as the roughly 1 KB saved per runtime turn, were not tested
- Specification depth: Part IV and the concept pages were read in full; the other parts were read as titles and stability notes, and only the schemas for two frames were checked. The 1.3 details (15 frames, Part VI) come from the maker, not from a re-read of the spec
- Portability in practice: the format is specified for moving between hosts, but no move between two independent hosts could be checked
What Could Hold It Back
These are open questions about any new portability layer, not findings about Snug specifically.
- Portability needs a second host. A portable file helps only when other developers build compatible hosts and keep the required behavior
- The host still matters. Models, integrations and device access come from the host, so the same app can behave differently on two of them
- A sandbox limits damage, not mistakes. A generated app can still produce wrong results
- Small local models. They may handle simple tasks and struggle with complex reasoning or specialised workflows
Who Should Look at Snug?
The question is whether an early protocol from one developer is worth following or trying.
Worth a look if you
- Want AI-built personal tools that you keep as a file you control
- Build AI products and want to study an embeddable design
- Run a Mac and are comfortable with pre-1.0 software
- Already vibe-code small AI tools and want to skip packaging them (see the switching section above)
Wait if you
- Need Windows or Linux today
- Need independently audited security before connecting financial or other sensitive accounts
- Need a tool with a team behind it and a track record
Frequently Asked Questions
Can I try Snug without installing anything?
Yes. The browser Playground works as a demo, and the project says it keeps data in the browser and lets you export it, but it is not a private deployment.
Does Snug make my data fully private?
No claim of that kind is made. An app needs no backend of its own, but a hosted model sees what the app sends it and account connections can involve an intermediary.
Can I move a .snug file to another host?
The format is specified for that purpose, but the only hosts found so far are the project's own, so a move between independent implementations has not been shown.
Is Snug an industry standard?
No evidence supports that yet. It is better described as an emerging open protocol with one maintainer and a published, versioned specification (1.3 per the maker).
Can developers embed Snug in their own product?
The documentation includes guides for building a host and embedding Snug, and the repository publishes TypeScript packages; this review did not test them.
What does a Snug message look like?
Each message is a versioned JSON frame with a type such as snug:app-message, a request ID, the app ID and an action. The specification publishes a JSON Schema for every frame type (13 on the concept page we read, 15 in specification 1.3 per the maker), but its docs show no sample message, so the example in this article uses invented values.
What is a Snug runtime contract?
It is a small JSON description, held by the host and capped at 2,560 bytes, of what an app is and what a good answer looks like. Each runtime turn is built from it instead of from the build conversation.
Should I move my Tauri or Electron apps to Snug?
Not wholesale. Snug fits small AI-driven personal tools where you want to skip packaging, key handling and storage design. Keep Tauri or Electron for apps you sell, ship to the public or need on Windows, Linux or with native APIs.
