About
About
Accent
Scheme
Backdrop motion
About

About

The playground is one Mote program: a shell, a page per family, and nothing else. No JavaScript was written for it, nothing is downloaded, and every picture in it was drawn here or copied from Mote's own test fixtures.
Every pageEvery page, counted from the registry the command palette searches. Press a row to open its page.
64pages
612demos, each with its source
768 of 768kit components on a page
16batteries, each with a live demo
PageSectionDemosWhat it shows
StartStart5What Mote is, in one screen: live tiles, sizes, and where to go next.
Buttons & badgesComponents16Button in every variant and size, button groups, badges.
Cards & disclosureComponents25Card, accordion, collapsible, alert, avatar, breadcrumb, carousel, aspect ratio, checkbox, direction.
Dialogs & drawersComponents12Dialog, alert dialog and drawer: the browser's modal, dressed.
Menus & commandsComponents14Dropdown menu, context menu, command list and dialog, combobox.
Dates & tablesComponents14Calendar, date pickers and the data table.
ChartsComponents23Bar, line, area, pie, radar and radial charts with tooltip and legend.
Chart galleryComponents40Every chart of the kit: lines, bars, distributions, grids, round charts, money, flows, trees, timelines, sparklines.
FieldsComponents16Field, input, input group, one-time code, textarea, label and kbd.
ChoicesComponents16Select, native select, radio group, slider, switch, toggle and toggle group.
DisplayComponents16Empty, item, table, progress, skeleton, spinner, separator, scroll area, typography, feed.
NavigationComponents16Menubar, navigation menu, pagination, tabs, sidebar and resizable panels.
Popovers & sheetsComponents15Popover, hover card, tooltip, sheet, menu and toasts.
MessagesChat & AI14Bubbles, markers, messages, the scroller, a whole chat, attachments.
Prompt inputChat & AI14The prompt input and its menus, model selector, suggestions, context, questionnaire.
Reasoning & toolsChat & AI14Trace, reasoning, sources, tasks, chain of thought, tools, confirmation, plan, queue, citations, subagents.
Developer partsChat & AI9File tree, stack trace, terminal output and test results.
ConversationChat & AI11Conversation, question, shimmer, generated image, open-in menu.
Code artifactsChat & AI17Artifact, commit, environment variables, previews, package info, sandbox, schema, snippet, web preview.
VoiceChat & AI11Audio player, mic selector, persona, speech input, transcription, voice selector.
Code blocksChat & AI10Highlight and CodeBlock in every language the syntax battery knows.
MarkdownChat & AI11A document laid out from text, streaming or whole.
EditorElements8The code editor element: a real textarea under coloured lines.
TerminalElements7The terminal element: escape sequences, colours, a shell wired in Mote.
FlowElements4The node canvas: the flow element and the kit's nodes, controls and panels.
3D boxesElements4canvas boxes=: boxes in space, orbit, tools, the traced lit picture, and pictures on materials.
PaintElements6canvas layers= and the paint battery: sheets, strokes, shapes, blends.
SurfaceElements14surface draw= and surface gl: a canvas the page's own code draws on.
MediaElements5reel, camera and image: film, the device's camera, pictures from assets.
IconsElements4A searchable wall of the Lucide set that ships with Mote.
PrimitivesElements16The tags themselves: view row column grid text link, popover, tip, toast, dialog.
SQLBatteries6SQLite itself, in the page: a real table you can query.
StorageBatteries7db, store, persist and fs: IndexedDB, localStorage and private files.
Net & resourcesBatteries8net.*, resources and tasks with pending and failure.
Crypto & bytesBatteries6argon2id, SHA-256, random, and bytes in every form.
ZipBatteries3gzip, deflate, and .zip archives packed and unpacked.
TablesBatteries2csv and xlsx: a spreadsheet dropped, shown as a table, saved back; rows typed into a shape.
PDFBatteries3pdf.make an invoice from parts, open a PDF and read it, fill a form and flatten it.
TimeBatteries7time.clock, time.date, now, uid, every and after.
ImagesBatteries5Decode, resize, crop, rotate, blur, adjust, fill, encode.
ScanBatteries3QR codes and barcodes read from a picture.
Video & audioBatteries6vid and aud: open a clip, frames, strip, wave, a tiny export.
SearchBatteries4BM25 full-text search over some text, as you type.
SyntaxBatteries6Text to a tree: parse, tokens and lines for thirty-odd languages.
PatternsBatteries8A regular expression tester over the re battery.
NotifyBatteries4Notifications from the page, and push subscriptions.
ShareBatteries3share(): the share sheet with the page, a route's own title and preview, the link copied where there is no sheet.
State & logicLanguage19state, derive, action, fn, shape, match, loops, optionals and failures.
WorkersLanguage9off fn: heavy work off the main thread while the page stays smooth; newest; wasm fn, timed both ways.
Events & elementsLanguage12Pointer, wheel, key, drop, resized, contents; ref= and el.*.
StylingLanguage10Colour roles, states, group and in hover, responsive lines, schemes, animations, glass.
RoutesLanguage5route, link, go, back and route.path.
ShortcutsLanguage5shortcut lines: page-wide, in a component, under an if, in a field, in a dialog.
Long listsLanguage4for … virtual: a feed of 100,000 uneven rows, a grid of 2,000 by 200, a thread that loads its past; seen=.
Failures & tryLanguage6try in markup with else err and again, a failure's kind and data, on failure.
Back endBack end11server fn, auth, live values, events and notifications through a Bun back end.
Models & writesBack end5A model's writes from the page at once: pending, confirmed, refused; rows on the line; put, inc, count by.
Rules & failuresBack end6rule, requires, a rule that reads a setting, limit, the words of each kind of failure, secret.
Jobs & schedulesBack end4job fn queued, retried and listed; server at; migrate.
Running itBack end10Logs, health, stopping, stacks by .mote lines, snapshots, shared databases, peers, api.json, --access, mote test.
ExtensionsBack end5Usage and the admin panel, taken live; Continue with Google, described.
AIBack end4The ai extension live on answers written beforehand: AiChat with a typed tool and the shop's notes, an answer in a shape, a vector store.
AnalyticsBack end4log and fact, and the product analytics panel over eight weeks of a demo shop: retention, funnels, paths, people, flags, experiments, dashboards.
AboutAbout5How the playground is built, what it covers, and what it weighs.
What it weighsAs mote build last printed it. All of it is one index.html: the runtime, the kit parts used, every page; the batteries' wasm is fetched when first called.
3.81 MBof JavaScript3,814,384 bytes
4.16 MBthe built folder, in all4,164,403 bytes
A page carries only the kit components, icons and batteries it names; this one names nearly all of them, so this is close to the most a Mote page can weigh.
How to run itThe compiler serves it and reloads on save; with Bun installed the back-end page works too.
From the mote folder
# serve it, with the back end, and reload on save
mote dev examples/playground/app.mote --port 5320
# build it: dist/index.html and dist/server/main.js
mote build examples/playground/app.mote --out dist
bun dist/server/main.js --port 4870
# one file: no back end (the Back end page says so) and no public/ files,
# so the demos that fetch a fixture (net, scan, video, media) show their failure
mote build examples/playground/app.mote --single --out one
# drive every page in a headless Chrome
node tests/real.mjs http://localhost:5320/ tests/playground.real.mjs
How it is madeWhere to look in examples/playground.
app.moteThe shell: sidebar, top bar, the sheet on a phone, the palette (search.index over every page and demo, search.find as you type), the accent and scheme, the backdrop (one surface gl shader), and a route per page.
shell.moteWhat a page is made of: Page, Demos, Demo (a glass card whose Source toggle draws its snippet with Highlight lang="mote"), Out, Row, Stat, Hint, Chip.
registry.moteThe table of pages, and every page's list of demos joined into one.
pages/*.moteA component per page, with its own state, and a fn that lists its demos.
public/, assets/Small test media from tests/fixtures, and pictures drawn in Mote.
Not shown, and whyEverything else on the card and in the kit is on a page.
Hardware: a real camera, a microphone, speech heard and spoken, and a notification shown are wired and off until asked; a browser without them shows the refusal.
push.subscribe succeeding needs the built, installed app and a server's key; the page explains and handles the failure.
`app scheme=`: the playground follows the reader's scheme, and switches it with scheme().
Google sign-in: it needs a client at Google; the Extensions page shows what a program writes for it.
Two back ends at once (requires peer and extern server fn, one database for several apps): the Running it page shows the code, and tests/all.sh runs them.
tool="png4k" on canvas boxes (it is tool="png" at 3840 wide), float render targets and matrix uniforms in surface gl.
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25