Docs
docs · developer preview

Everything is one object.

Your app gets ctx and nothing else. Start with the quickstart — five minutes to a DEV badge on a real site — and come back here when you need a call.

quickstart
npm create @fave1/app my-app
cd my-app
npm install
npm run dev

get started

build with ai

Say what you want and Studio builds it in the console — no setup. Or bring Claude Code, Cursor, Codex: your assistant reads these docs as Markdown, and every new app comes with an AGENTS.md that points it here.

no setup

Studio

Describe your app in the console. It’s written, checked and in your launcher on any site — keep talking to change it.

in every new app

AGENTS.md

How a Fave1 app works, the commands, and the rules review checks. Claude Code reads it through CLAUDE.md.

always the latest

npx fave1 docs

Every page, live from this site — the newest even on an older CLI. npx fave1 docs ctx-storage prints one; offline, it reads the copy inside the CLI.

one file

llms-full.txt

All of it on one page — paste the link into any chat. Or /llms.txt for the map, .md on any page’s address.

declare

api

ctx.ui

Draw the panel with blocks.

ctx.page

The live DOM of the page you’re on.

ctx.storage

Private JSON on the account — every site, and app mode.

files

ctx.files

Their files on the account — images and exports, up to 25 MB each.

by link

ctx.shared

One value, one link. Anyone with it reads; let them edit if you want.

rewards

ctx.stickers

Give a sticker for their My Fave1 home — a trophy, a badge, their pet.

coming soon

ctx.purchases

Sell things inside your app for Fave1 credits. Fave1 holds the price and the Buy button.

public

ctx.pub

Public JSON other people can read — boards, streaks, hides.

live

ctx.live

Rooms — several people edit the same thing at once, pushed the moment it changes.

in ctx.live · games

room.direct

A direct line between two players — browser to browser, for every frame.

who

ctx.user

Whether someone is signed in, an id for this person that is yours alone, and whether this page can use their account without asking.

values

ctx.config

A JSON you edit in the console — live in a minute, no review.

languages

ctx.t

Your app in their language — locales/en.json and the ones you add.

reminders

ctx.notify

A reminder they set — or a note for what someone did for them. A number on your icon; on() while your app is open.

ctx.clipboard

Copy and paste. Pasting asks the person every time.

ctx.ai

Claude, ChatGPT, Gemini or Grok on Fave1 AI, paid from their Fave1 credits — text and voice. No keys anywhere.

live video

ctx.camera

Their camera while your app is open. Fave1 asks first and shows a red dot.

live sound

ctx.mic

Their microphone while your app is open. Fave1 asks first and shows a red dot.

types/fave1.d.ts

Every call typed. Ships with the template.

kit

ship

embed