Start
Start
Accent
Scheme
Backdrop motion
Mote

A file is an app.

Mote is a small language and its compiler. One file of declarations and markup becomes an installable page that works offline: state that redraws what reads it, a kit of components, and batteries in Rust and wasm for the things pages usually reach outside for. This playground is one Mote program showing all of it, live.
counter.mote
app "Counter" accent=#6d5efc
state n = 0 persist
derive double = n * 2
row gap=12 padding=24 align-items=center
Button "−" variant="outline" press={n -= 1}
text `${n}` font-size=24
Button "+" press={n += 1}
if n > 0
text `doubled: ${double}` color=dim
64pages
612live demos
768kit components
2,356icons, shipped by name
16batteries
3.81 MBof JavaScript, all of it

Live, on this page

Each tile is a few lines of Mote; Source shows them.
A counterState, a derived value, and persist: it is still there after a reload.
0
doubled: 0
A shadersurface gl: one call is a drawing. The slider is a uniform.
Speed
A traced scenecanvas boxes with render="real": sun, sky, shadows and bounced light, worked out on the GPU when the view stands still. Drag to turn it.
Lit picture: …
A chart on a surfacesurface draw: the demos of this playground by section, counted from its own registry. Move over it.
612 demos on 64 pages.

Get it

Mote is one Rust binary with no dependencies; Bun runs a back end, when a program has one.
Install, and a first appFrom a checkout of Mote. The docs, with every whole example running beside its source, are at motelang.com.
From a checkout of Mote
# Rust, with the target the batteries are built for
rustup target add wasm32-unknown-unknown
cargo install --path compiler
# your editor, in one line (or cursor, neovim, helix, …)
mote editor vscode
# a page: serve it, and reload on save
mote dev app.mote
# build it: one HTML page, and server/main.js
# if it has a back end (server fn, models): run that with Bun
mote build app.mote --out dist
bun dist/server/main.js --port 4870
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