Glossary

4 min·Assumes: nothing

The glossary is the one meaning each word has everywhere on this site.

import { state } from '@markless/core';

export default function GuestList() @{
	let guests = state(['Ada', 'Grace']);

	<ul>
		@for (const name of guests; key name) {
			<li>{name}</li>
		}
	</ul>
}

Three words from the index below are in this file: GuestList is a component, guests is state, and key name is the key that gives each row its identity.

Look a word up

A term is a word this site defines once and underlines wherever it appears. Type in the filter, or jump to a letter:

  • analyzer

    The part of the build that reads your whole app before anyone visits it.

    Used inPackagesRepo tour

  • async boundary

    An @try block with @pending and @catch around an async read.

    Used inAsync

  • browser-only

    render() from @markless/core mounts the app in the browser. You need no server.

    Used inThe big idea

  • chunk

    A file that holds symbols. A click's code runs only when someone clicks. A production build can still fetch the chunk earlier.

    Used inLazy chunks

  • client render

    Another name for browser-only rendering. The test helper render() uses it too.

    Used inThe big ideaTesting

  • compile

    To turn your source files into the code that actually runs.

    Used inThe compiler

  • compiler

    The build step that reads .tsrx files. It plans the state, the updates and the code each event runs, before the app runs.

    Used inThe compiler

  • component

    A function in a .tsrx file whose body holds elements, written function GuestList() @{ ... }.

    Used inComponentsReading a .tsrx file

  • computed

    A value from computed() that Markless works out from state.

    Used inComputedThe state graph

  • container

    In server output, the element with the data-async-container attribute. It wraps the HTML and its payload.

    Used inThe payload

  • diagnostic

    A compiler message with a code, a title, a reason, suggested fixes and a docs link.

    Used inDiagnostics

  • direct module

    What the compiler writes for a simple component. At mount, it builds the DOM and its own small state graph. It puts listeners on the elements and patches text directly. No full runtime comes along.

    Used inThe compiler

  • element handle

    A reference from element() to one element on the page.

    Used inElements

  • elements

    The building blocks of a page: headings, text, buttons, inputs.

    Used inReading a .tsrx fileTesting

  • events

    Things a person does: a click, a tap, a key press.

    Used inEvents

  • fallback runtime

    What render() uses when the compiler cannot write a direct module. A container listens for events and brings in the full runtime when it needs it.

    Used inThe compiler

  • instructions

    Lines that run in order, top to bottom, like let guests = state([]). Written inside @{ }.

    Used inReading a .tsrx file

  • key

    The identity of each row in an @for, as in key item.id.

    Used inListsDiagnostics

  • markless-allow

    A comment that silences one warning, with a reason: // markless-allow CODE: reason. It cannot silence an error.

    Used inDiagnostics

  • multi-page app

    An app built with @markless/router: file routes, links, and pages rendered through Nitro, which deploys to many hosts.

    Used inPagesThe big idea

  • native host

    Proofs in the repo drive UIKit and AppKit controls with the same model. They are proofs, not a feature you can use.

    Used inNative targets

  • packing

    The production build step that groups symbols into fewer chunks. It is on by default. Set packing: false to turn it off.

    Used inLazy chunks

  • payload

    In server output, the data next to the HTML. markless/state scripts hold the values. markless/view scripts say which element does what.

    Used inThe payload

  • prerender

    HTML made at build time. The bundler turns it on when MARKLESS_PRERENDER is 1. There is no public option yet, so treat it as a preview.

    Used inDeploying

  • preset

    A named setting that shapes the build for one kind of host.

    Used inDeploying

  • prop

    A value one component hands to another, written like an HTML attribute.

    Used inComponents

  • resume

    The browser carries on from server HTML and its payload. It does not run the component body again.

    Used inResuming

  • resumer

    The small inline script in server output. It waits for the first interaction, then brings in the code that interaction needs. A page with no interactions gets no resumer.

    Used inResuming

  • route

    One address in your app, and the page file that answers it.

    Used inPages

  • scope

    Who shares one copy of a shared() value: 'app' (the default, one for the whole app), 'container' (one per Markless app on the page), or 'subtree' (one per rendered component and what it holds).

    Used inShared

  • server render

    renderToString() turns a component into HTML on a server. The component body runs there, and zero times in the browser.

    Used inThe big ideaResuming

  • shared

    Data from shared() that many components reach without props.

    Used inShared

  • slug

    The readable part of an address that names one item, like hello-world in /blog/hello-world.

    Used inPagesLinks

  • state

    A value from state() that you read and write as a plain variable, like guests.

    Used inStateThe state graph

  • state graph

    The map of which computed values and which page updates read each piece of state.

    Used inThe state graph

  • storage

    A string value from storage() that Markless saves in localStorage.

    Used inStorage

  • stream

    A response sent in parts, so the first part shows before the last part is ready.

    Used inPages

  • streamed render

    renderToStream() from @markless/web/render-to-stream sends the HTML in pieces as slow parts finish.

    Used inPagesThe payload

  • symbol

    One piece of code that the compiler split out, like one click handler.

    Used inThe compilerLazy chunks

  • test render

    @markless/vitest-browser renders a component in a browser test, either mounted directly or through a server render.

    Used inTesting

  • TS91001

    The error code your editor shows for a .tsrx file that doesn't parse.

    Used inDev setup

  • TSRX

    The file format for components: TypeScript plus elements and @if, @for and @try blocks.

    Used inReading a .tsrx fileEditor setup

  • values

    Anything that produces a result, like guests.length. Written inside { }.

    Used inReading a .tsrx file

The CLI page lists every create-markless flag.