Spark Docs

Everything you need to go from idea to a live app — and to run your AI team.

Quickstart

Project types

TypeWhat you getPreview
Full Stack AppFrontend + Spark Cloud database, accounts, and AIDesktop frame
Mobile AppInstallable PWA with offline service workerPhone frame
WebsiteMulti-page static site with real designDesktop frame
Chrome ExtensionManifest V3 project, zipped for chrome://extensionsPopup frame

Models

ModelBest forPlan
Spark LiteQuick tweaks, simple pagesFree
Spark 2Real apps, balanced speedOne Pro
Spark VisionBuilding from screenshots & mockupsOne Pro
Spark 5.5Next-gen quality, quick thinkingOne Ultimate
Spark 5.6 MaxThe strongest builder we haveOne Ultimate

Spark Cloud SDK

Full Stack apps automatically include spark-sdk.js. The global window.spark gives your app a database, user accounts, and AI — no keys, no servers.

Database

await spark.db.set('todos', { text: 'Ship it', done: false })   // create → {id}
await spark.db.set('todos', id, { done: true })                  // update
await spark.db.get('todos', id)                                  // one doc
await spark.db.list('todos')                                     // newest 100
await spark.db.query('todos', { done: false }, 20)               // filter
await spark.db.del('todos', id)                                  // delete

Accounts

Every project gets its own user table. The people who sign up to your app are your users — they never see Spark, never need an s3eidat account, and are invisible to every other project on the platform.

const user = await spark.auth.user()      // {id, email, name, avatar} or null
await spark.auth.requireLogin()           // built-in sign-in dialog, resolves with the user
await spark.auth.signIn()                 // same dialog, closeable → user or null
await spark.auth.signup(email, pass, name)
await spark.auth.login(email, pass)
await spark.auth.logout()
spark.auth.onChange(u => render(u))       // fires now, and on every sign in/out
await spark.auth.update({ name: 'Omar' })
await spark.auth.has('pro')               // did they buy something granting 'pro'?

Passwords are hashed with bcrypt, sessions are stored as hashes so a database dump can't be replayed, and repeated failed logins are throttled per app.

Access rules

Each collection has a read and a write level, set in the Backend tab:

LevelMeaning
AnyoneOpen to every visitor — good for public content
Signed inAny account in this app
Only its ownerEach user sees and edits just their own rows

Owner-scoped collections are enforced in SQL, not in your app code, so a hand-crafted request can't read someone else's rows.

Payments

Connect your own Stripe account in the Backend tab and your app can charge money. Every charge is created directly on your account: the funds, refunds and payouts are yours, and Spark only takes a small fee on top (nothing at all on One Ultimate).

const items = await spark.pay.products()  // what you listed in the Backend tab
await spark.pay.checkout('pro')           // → Stripe Checkout, then back to your app
await spark.pay.orders()                  // this user's purchases
if (await spark.auth.has('pro')) unlock() // 'pro' is whatever the item unlocks

AI

const res = await spark.ai.chat('Suggest 3 blog titles about coffee')
console.log(res.content)

Limits: 10,000 docs per app, 64KB per doc, AI calls rate-limited per visitor and billed to the app owner's plan.

AI Employees

Hire named specialists from the roster. Each employee:

Give good standing instructions when you hire: who you are, what your business is, what great output looks like. They follow those instructions on every run.

Limits

PlanGenerations/dayModelsEmployees
Free5Lite—
One Pro50Lite, 2, Vision2
One Ultimate300All + 5.5 / 5.6 Max10

FAQ

Can Spark edit an app I built elsewhere? Not yet — projects start in Spark. You can paste existing code into the chat and ask Spark to rebuild around it.

Is my published app private? Links are unlisted (and no-indexed pre-launch) but public to anyone with the URL. Don't publish secrets.

What about custom domains? On the roadmap. For now apps live under spark.s3eidat.com/apps/.