32 foundations
Foundations
What every piece stands on: the tokens, the engine, sound and narration, the type tier, the three.js tier and the kernels.
32 pieces
-
Carepa
A surface (decision 0016: a drawn backdrop, a pure model, a renderer and a still like a scene, but with no slotted…
-
Core
The register (quiet, warm, playful) and its cascade, the scene contract as defineScene, and the sg-scene element that…
-
Core: announce
announce('3 people, ₹4,500') says one sentence to a screen reader. It uses document.ariaNotify() (or the sender's own…
-
Core: arrivals
The JavaScript half of the tala stagger for lists that arrive (menu, event-list, gallery, data-table rows). The stagger…
-
Core: components
SgElement and defineComponent: the light-DOM base every sg-* component extends. It enhances a native child, follows the…
-
Core: constructable stylesheets
adopt(root, css): a piece's styles as one shared constructable stylesheet, so a strict Content-Security-Policy…
-
Core: input modality
One attribute on the root, data-sg-input, that says whether a moving key (an arrow, Home, End, Page Up or Down) is held…
-
Core: Konkani dates and hours
Days, months and the hours of the day in Konkani, in Devanagari and in Romi, the same in every engine.…
-
Core: movable words
<sg-scene movable>: a grip on the reading panel that moves the words by drag or by arrow keys, clamped inside the…
-
Core: poster-first scenes
sg-lazy wraps a poster (a picture in AVIF, WebP and JPG) and a hidden sg-scene. The poster is the first paint and reads…
-
Core: rupees and the Indian clock
Money and time the way Goa writes them, as pure functions that give the same answer on any machine. rupees(125000) is…
-
Core: strings by language
The library's own words in more than one language (decision 0025). strings(byLang, tag) lays the lookup chain for a…
-
Core: words in the world
Words on a plane that turns a little toward the reader and settles. The register sets the model, not the colour: quiet…
-
Engine
The pencil box every scene draws with: seeded randomness and noise, geometry, fields, ink and paper, the stage and…
-
Export
A scene (or any canvas) to PNG, WebM and animated GIF. PNG uses canvas.toBlob; WebM records one requested frame at a…
-
Folio
The document layer's pieces that travel with a document: Markdown with directives (scene, diagram, price-table,…
-
Image tier
A picture's size, known early, so text laid by script can wrap round a picture before its bytes arrive: an oracle that…
-
Kernels: booking
Pure booking kernels from the Casa Exemplo redesign: ISO day arithmetic with no timezone drift, a rate card that keeps…
-
Narration
Recorded or synthesised speech plus a WebVTT timing track that drives captions and word-by-word highlighting. A pure…
-
Page transitions
Cross-document View Transitions for every same-origin navigation (@view-transition { navigation: auto; }), with two…
-
Paus rain
Each visible raindrop on Paus's glass becomes an audible tick, seeded like the drawing itself. Voice-limited and pooled…
-
Pretext (vendored)
Cheng Lou's Pretext, an ESM build of main at e73081f (MIT): multiline text measured and laid out by arithmetic over…
-
Rampon koel
A rising three-note "ku-oo" call in a bout of three that speeds up, then quiet, then another bout, the way a real koel…
-
Sound
The synthesised UI vocabulary (tick, confirm, complete, gentle error) with Web Audio, no audio files. One global…
-
Sound bake
Bake and reflow for sound. bakeFrames() and bakeBuffer() turn FFT frames you already have (an analyser's bins) or an…
-
Stage3d: the three.js tier
The lazy three.js tier (decision 0017): loadThree() imports three only when a live 3D drawing is about to be seen, and…
-
The Kantar interlude
A curtain between two steps of a long flow: it drops (with folds and a hem that ripples with a damped wave when it…
-
The tiatr curtain
The tiatr's red velvet curtain, drawn once: a tiled velvet strip with a slow sideways drift, a soft shadow under the…
-
three.js, shaken (vendored)
three 0.186.1 (MIT) bundled with esbuild down to the names the stage3d tier and the veranda's pot use, for…
-
Tokens
Colour (OKLCH, light and dark, Susegad, Casa, Azulejo and Haldi palettes), type for Latin, Devanagari and Kannada,…
-
Tween
Bake and reflow for motion. bake(easing) evaluates an easing curve once (a function such as the Kantar curtain's…
-
Type tier
Words set in the world, still real text: lay a heading and a paragraph into a drawn surface's real shape (a board, an…
Nothing here matches. Try a shorter word.