[You Don't Need to Write Code]
> What is Motoko?
[Why This Matters for Prompting]
> The Actor Model — Every Canister is an Actor
Isolated State
An actor holds its own state. No shared memory with other canisters — this is a security and reliability guarantee, not a limitation.
Async Messages
Actors communicate by sending messages. All public Motoko functions are async by default, which is why ICP apps are non-blocking.
1:1 Mapping
One Motoko actor = one ICP canister. When Caffeine deploys your app, it becomes a live actor on the network with a unique canister ID.
No Race Conditions
Because actors process one message at a time, you get sequential execution without locks. Concurrent safety is built in.
[Mental Model]
> Orthogonal Persistence — stable var Magic
Traditional programming
To persist data across server restarts, you need a database, an ORM, migration scripts, and backup strategies. Upgrades are risky — data can be lost.
Motoko with stable var
Add the stable keyword to a variable. That's it. Data survives every upgrade automatically — no database, no ORM, no migration scripts.
Enhanced orthogonal persistence
Since compiler v0.15.0, enhanced orthogonal persistence is the default. It's faster than the original implementation and scales beyond 4 GB of state.
// Without stable — data LOST on canister upgrade
var counter : Nat = 0;
// With stable — data survives upgrades FOREVER
stable var counter : Nat = 0;[Prompt Tip — Stable Variables]
> Why Motoko + Caffeine = The Right Stack
"First Programming Language for AI"
Dominic Williams (DFINITY founder) describes Motoko as the first programming language designed for AI authorship. This isn't just marketing — Motoko's design means AI can write substantially less complex code to achieve the same results compared to Rust or Solidity. Fewer lines of code means fewer bugs and lower AI error rates.
| Property | Traditional Cloud | ICP + Motoko |
|---|---|---|
| Data on upgrade | Requires migration scripts | Automatically preserved |
| Infrastructure | Rented cloud servers | Decentralized ICP network |
| Code language | Many options, mixed AI quality | Motoko — optimized for AI authorship |
| Uptime guarantee | SLA-based (99.9%) | Protocol-level — no single point of failure |
| Data ownership | Cloud vendor controls infra | You own the canister — fully sovereign |
[Sovereignty Guarantee]
> OpenChat — Proof It Works at Scale
OpenChat is a fully functioning messaging app — think WhatsApp — running 100% on the Internet Computer with no servers, no cloud provider, and no company that can shut it down. Real users. Real messages. Zero traditional infrastructure.
It's governed by a DAO (Service Nervous System / SNS): tens of thousands of token holders vote on every code update before it goes live. No CEO can unilaterally change the product. The community owns and controls the protocol.
This is what Motoko + ICP makes possible — production apps, real users, on-chain governance. The same stack Caffeine uses to build your apps.
> A Full Motoko Canister — Annotated
This is a real, deployable Motoko canister. Every line is annotated so you can see exactly what Caffeine produces when you build an app.
// A simple on-chain counter — deployed on the Internet Computer
actor Counter {
// stable = this value survives every upgrade automatically
stable var count : Nat = 0;
// update call — modifies state, costs a tiny cycle fee
public shared func increment() : async Nat {
count += 1;
return count;
};
// query call — read-only, completely free and fast
public query func getCount() : async Nat {
return count;
};
// reset — only possible via update call (writes to state)
public shared func reset() : async () {
count := 0;
};
};actorDeclares a canister. Everything inside is isolated, self-contained state and logic.
stable varMarks the variable as persistent. Survives every upgrade — no database needed.
public shared funcAn update call. Can write to state. Costs a tiny cycle fee. Returns async.
public query funcA read-only call. Cannot modify state. Completely free and fast — no cycles consumed.
> What This Means for You as a Caffeine Builder
[Use Stable Variables Explicitly]
stable var means lets you prompt: "store all user data in stable variables so it survives upgrades". Caffeine will apply exactly the right pattern, and your users' data will never be lost during a version update.[Query Calls are Free — Ask for Them]
[Go Deeper with ICP Skills]
> The Three Things to Remember
- Every Caffeine app is a Motoko actor — isolated, self-contained, and sovereign on the ICP network.
- stable var is the key to data safety — always ask Caffeine to use it for any data that matters.
- Query functions are free and fast — reserve update calls for writes that need to change state.
> Version History — Every Build Is Tracked
Since Caffeine V3, every draft build is automatically versioned. You can revert to any earlier version of your app — no Git, no manual backups. This is especially useful when a prompt steers your app in an unwanted direction.
How It Works
Every build creates a new version entry in the Caffeine dashboard. Click an earlier version to load it as your current draft. The current version is not deleted — you can always switch back to the latest.
[When to Use It]
> Build Credit Hold — Reserved Before Building
Since April 16, 2026 Caffeine reserves build credits upfront. If the build fails, the credits are released immediately. This prevents you from paying for failed or aborted builds.
What This Means for You
You see the credit reservation in the dashboard before the build starts. On success it's consumed. On failure or if you cancel, it's immediately reset. No more lost credits from timeout errors or aborted builds.
> Introductory Pricing — New Users Only
Since April 29, 2026 introductory pricing (e.g. $2 instead of $5 for the first month of Host) applies only to new users. Existing users switching plans or starting new projects pay the regular price.
Important to Know
When you create your first Caffeine account, make the most of the introductory price — start with the Host plan right away to test the full feature set. The price rises to the regular rate after the first month.
[Pricing Transparency]
> Want to Go Deeper?
The ICP Developer Liftoff is a free, self-paced video series on docs.internetcomputer.org that takes you from zero to building full dApps on the Internet Computer. It's organized into 5 levels — from "What is a blockchain?" all the way to deploying multi-canister apps and integrating tokens. If Rosetta Caffeine gave you the spark, Liftoff is the full training program.
> Hosted MCP Connector — Drive Caffeine From Any AI Assistant
Since June 16, 2026 (alpha), Caffeine operates a hosted MCP server at https://mcp.caffeine.ai/mcp. You talk to Caffeine directly from your preferred AI tool — no need to switch to a separate browser window.
SUPPORTED ASSISTANTS
- ▸ChatGPT
- ▸Claude
- ▸Cursor
- ▸VS Code with GitHub Copilot
- ▸OpenAI Codex
- ▸Perplexity
CAPABILITIES
- →List projects
- →Start or resume build sessions
- →Retrieve transcripts
- →Generate project URLs
[Auth & Security]
> Direct Anthropic Claude Integration — Build Apps Without Leaving Claude
Since June 30, 2026, a direct integration with Anthropic Claude enables production-ready app generation from natural language prompts — without leaving the Claude environment. You describe what you want to build; Claude orchestrates the build through the Caffeine infrastructure and returns a deploy-ready result.
WHAT THIS CHANGES
- →No more context switching between the prompt window and the build dashboard — everything happens in Claude.
- →Production-ready app generation straight from the chat history.
- →The same Caffeine infrastructure (Motoko backend, React frontend, on-chain deployment) works in the background.
> Looking Ahead — Cloud Engines, Open SaaS, and ICP as the AI-Centric Stack
Dominic Williams has signaled an upcoming suite of Cloud Engines and an "Open SaaS" suite built using ICP's "AIware" technology for enterprises putting AI at the center of operations. The idea: ICP becomes the new stack for organizations that treat AI not as an add-on but as the core of their architecture.
DOMINIC WILLIAMS
"For enterprises that want to put AI at their heart, ICP will be the new stack they seek."
Cloud Engines
Upcoming ICP-based compute engines that run AI workloads natively on the decentralized network.
Open SaaS
A suite of SaaS applications built on ICP's AIware technology, giving enterprises an open, sovereign alternative to closed cloud SaaS offerings.
AIware
ICP's term for software designed from the ground up for AI-driven generation, maintenance, and evolution.
[Why This Matters for You]
