Back end
Extensions
Accent
Scheme
Backdrop motion
Back end

Extensions

An extension is a package of ordinary Mote (models, server fns, components) that a program takes with one use line, and can read, copy and change. This page takes two of them live: usage and the admin panel.
Taking onemote.toml beside the entry says where each package is (a folder on this machine; nothing is fetched); use names a file in it. What an extension needs of its taker it says with wants fn: usage wants usageMay, and the build says so at the entry until it is declared.
The extensions' own READMEs (extensions/README.md, and one in each folder) say what each holds, and docs/usage.md, docs/admin.md and docs/google.md the whole of each.
UsageWith usage=on the runtime gathers what people do (a screen shown, an action run, a call answered, a failure nothing heard, a sign-in, a job's run) and hands it to the extension every five seconds; the extension keeps it in this back end's own database and the panel asks it: visitors, visits, pageviews and bounces, the pages with their entrances and exits, where visits came from (the other site's host, never its address, and utm_ words), the country (here from the header the proxy in front writes, MOTE_GEO_HEADER; where there is none, from the browser's time zone), the browser and device, goals, who is here now, and how fast each route loaded. Nothing typed, no IP address, no row's values, no lasting id. Its calls want someone signed in; usageMay here says yes to anyone who is.
Nobody is signed in.
Make a demo account (or sign in on the Back end page) and the panel appears here: visitors, visits and pageviews against the span before, the pages, sources, countries and devices, goals, who is here now, how fast each route loaded; then the people active, the screens, actions and calls most used, what fails, who came back.
trackA measure of one's own: track(name, props), in the page or on the back end, is an event like the others (nothing with usage off). UsageChart draws one over time, split by a prop. Pick a few, wait five seconds, and the chart has them.
0 tracked from this page
The admin panelPeople and their sessions (sign out everywhere, see what they see: acting as someone, with the runtime's banner), every model's rows changed only as each model's own rules let that admin, jobs, health, the access report and a log of what admins did. Every door says requires admin, and the playground's rule admin is a setting: nobody is an admin until PLAYGROUND_ADMINS names an address where the back end runs.
This page is for the app's admins.sign in first
Continue with GoogleSigning in with a Google account into the same accounts and sessions auth.signIn gives: an OpenID Connect flow (PKCE, state, nonce), linked by Google's own id. It needs a client at Google, so this playground does not take it: here is all of what a program writes. docs/google.md says how to make the client.
Redirect URI to give Google: the site's address and /auth/google/callback. With GOOGLE_CLIENT_ID unset, the button leads to a page that says signing in with Google is not set up.
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