The search index did not load. Type again to retry.
Nothing in the docs matches “”.
↑↓ to moveenter to goesc to close
Build for any device, the web way.
4 min·Assumes: nothing
Write
The building blocks of a page: headings, paragraphs, buttons, inputs.In the glossary
and
What the browser tells your code when something happens, like a click, a tap or a key press.In the glossary
in JavaScript. Markless is designed to compile them to any device.
A pen-and-ink drawing of a Beanshop takeaway coffee cup on a desk, steam rising from its lid. The barista wrote Marcus on it in marker, with a little doodle of his face, crossed it out, and wrote Markless underneath. The pink sleeve has a printed row of shot boxes, one ticked per shot. A printed sticker on the lid says LATTE · 12 OZ andEXTRA SHOTS with the number in a yellow wash. Press the cup, or Enter or Space, to add a shot: the next box is ticked and the sticker's number is crossed out and printed again. Escape starts a fresh cup.
The label now says 3 extra shots.
Fast pages, plain code, any device
A tap works while the page is still loading. The code is plain variables and few rules, so your agent picks it up in one read. And one API reaches every device: the browser today, with iOS and macOS as early proofs.
A pen-and-ink drawing of a pipeline on a desk, read left to right. First, the screen you wrote: a paper card with the Beanshop order screen, Latte for Marcus, the status Brewing… and a pink Mark ready button, tagged in hand lettering with what you wrote for it, <button onClick>. A magnifying glass lies beside it, with three notes on what Markless found: <button>, shows the status and onClick means mark ready. Next, the plan: a small sheet with a hanging tag marked status, an ink wire from the tag to a label showing Brewing…, and a thin wire from a button into the tag, captioned same plan for every device. Arrows run from the plan to each device, each one labelled with onClick and the word that device turns it into, and every device shows the same cup, the status and the pink button: a browser window, where onClick becomes click, an iPhone, where onClick becomes touchUpInside on a real native button and a Mac, where onClick becomes action on a real native button, all inked solid. Last, an empty slot sketched in pink pencil with an Android phone, a smartwatch and an email envelope, its word for onClick a question mark, with the note add an adapter here. Press the figure, or Enter or Space, to mark the order ready: the tag swings, pulses run out along the inked arrows, and every inked device crosses out Brewing… and writes Ready for pickup. Press again for a new order. The pencil slot stays as it is. Escape starts again.
Here is an order like the one in the drawing, as code. Press Mark ready, and watch which part of the page changes. Then change the code, and watch the order change with it.
PlaygroundType @ or < for suggestions · F1 explains a wordRestored your edit·
import { state } from '@markless/core';import './style.css';export default function Order() @{ let status = state('Brewing ⏳'); <sectionclass="ticket" data-s={status}> <p>Latte for Marcus</p> <p>Status: {status}</p> <buttononClick={() => {status = 'Ready for pickup ✅'; }}> Mark ready </button> </section>}
To do: Start the order at 'Queued 📋' instead of 'Brewing ⏳'.
To do: Under line 9, add <p>Again: {status}</p>. Press the button, and both lines update.
status is a plain variable. state() gives it a starting value, and you change it by assigning to it.
Order runs once, to set up the page. A click runs only the code in onClick, and only the two spots that read status change: the status text, and the ticket's data-s, which the stylesheet uses to pour the coffee.
Markless reads your code first
Most tools figure out how your page fits together by running your code in the visitor's browser. Markless finds out while it builds your app, before anyone visits. The browser gets the finished map, so nothing has to run to create it.
Story timeline
ReadTieStampFoldShipTap
A pen-and-ink pop-up book, open on a desk. The left page is labelled while we build your app: the order code lifts off it as paper cutouts, threads tie each status to the one it means, every cutout is stamped with its job, and everything that never changes folds flat. The rest folds shut into a map that crosses the gutter to the right page, labelled in your visitor's browser, where it pops open beside the order page and is wired to it. A timeline under the book plays the story once on its own; its play and pause button and its slider let you drag, click or arrow to any moment, forwards or backwards, through the chapters Read, Tie, Stamp, Fold, Ship and Tap. The usual way switch shows the browser working the map out on the visitor's device instead. At the end of the story, Mark ready, or Enter or Space on it, runs the click and redraws only the status line. Escape resets it.
While we build your app: the order code lies printed on the left page of an open book. The right page is your visitor’s browser, showing the order page.
Why the name Markless?
Many frameworks ask you to mark your code for them: a special prefix, a $ sign, a .value to read through, a hook with its rules. Every mark is one more rule to remember, for you and your agent, instead of your product. We want you both focused on what you are building.
Markless reads plain code instead. A value is a let, a change is a plain assignment, and the compiler works out the rest on its own. No marks needed. That is the name.
A pen-and-ink drawing of a sheet of paper on a desk with five lines of plain order code: let status equals state of Brewing, a paragraph showing status, and a button whose click sets status to Ready for pickup. At first the sheet is covered in red corrections, headed in red: other tools, rules on top of your code. Sticky tabs read dollar sign, mark it; use, call it first; dot value, unwrap it; set, can't just assign. A taped rule card says call me first, a sticky note listing status says list what it reads, and red pencil circles and arrows ring the code. A pink eraser rubs out the pencil, the tabs peel away, and the barista writes Markless across the top of the clean sheet, with a green tick and just your code where the red heading was. The code underneath never changes.
Start your first app
Pick an assistant. It opens a new chat asking it to read the Markless docs and walk you through your first app. You just press send.
BEANSHOP · ORDER #001
1 × your first app$0.00
your order: help building my first Markless app ☕
Your order, copied when you pick an assistant: Help me build my first app with Markless (markless.dev). Read https://markless.dev/llms.txt first, then walk me through it.