Quickstart
A Tinylib app is a web page, and Tinylib runs everything behind it, so there's no server to set up.
You need Node.js 22 or newer.
init asks for a template, then the app's name, slug, and description.
The slug is your app's address, as in tinylib.app/my-app, and it can't change after you first publish.
- my-app/
Your app's name, slug, description, and icon.
Referencetinylib.jsonThe page your app opens on.
The page's script.
Client APItinylib- style.css
Replace it with a square PNG at least 512 pixels on a side.
In
GuidesRooms and rulesmultiplayerandgame: the code that runs its rooms on Tinylib's servers.Has
npm run devandnpm run publish.
dev opens your app twice, side by side, as two pretend users, Ada and Ben.
This is the solo template's whole app.js:
tinylib.data keeps the count on the device, so reading it is instant and works offline, and Tinylib syncs it to the user's other devices. onChange redraws when a change arrives from one of them. Edit the greeting and save, and both panes reload.
The first time, it opens Tinylib in your browser to sign you in. Then it prints your app's link:
Open the link on your phone. Anyone with the link can open your app, and running publish again updates it for all of them.
- How Tinylib works: where your app runs, and what Tinylib runs for it.
- Data: save the user's data on all their devices.
- Rooms and rules: let people play or work together live.
- Games: build a daily puzzle or a game with friends.
- Reminders and notifications: remind the user, or notify a room's members.
- Publishing: use TypeScript or a bundler, test with a preview, and get listed.