Markless packages

2 min·Assumes: nothing

Markless is a set of npm packages that share one version number: you install a few, and they bring the rest.

"dependencies": {
	"@markless/core": "{{marklessVersion}}",
	"@markless/router": "{{marklessVersion}}"
},
"devDependencies": {
	"@markless/analyzer": "{{marklessVersion}}",
	"@markless/typescript-plugin": "{{marklessVersion}}"
}

A new app from npm create markless lists four Markless packages: core and router to run the app, and analyzer and typescript-plugin to check it. The CLI fills in {{marklessVersion}} as a ^ range of its own version:

These pages follow Markless 0.15.0. Every package in the first two groups below is on npm at that version, except @markless/ui.

You install four packages, and they bring the rest

A dependency is a package another package needs, which npm installs along with it. Press the terminal to install @markless/core, then click a package to delete it:

A pen-and-ink terminal runs npm install @markless/core, and a file explorer below fills node_modules/@markless with core, bundler, router, web, compiler, serializer and runtime, in dependency order. Delete web and core, bundler and router turn red: each is missing @markless/web.

  • Each package lands after the package that needs it.
  • Delete one, and every package that needs it turns red.

You install core, and router for an app with pages

  • @markless/core

    Every app needs it: state, computed, render() and the Vite plugin.

    npm install @markless/core
  • @markless/router

    Add it for an app with pages: file routes, Link and server rendering through Nitro.

    npm install @markless/router

Add the rest when you need it

  • create-markless

    Starts a new app with core, router and the two dev packages below already in it.

    npm create markless@latest my-app
  • @markless/typescript-plugin

    Lets your editor read .tsrx files: colors, hovers and red lines.

    npm install -D @markless/typescript-plugin
  • @markless/vitest-browser

    Tests a component in a real browser with render() and renderSSR().

    npm install -D @markless/vitest-browser
  • @markless/analyzer

    Checks a running app for console errors, requests, event wiring and JavaScript budgets.

    npm install -D @markless/analyzer
  • @markless/ui

    Headless, accessible UI components. Not on npm yet: npm still holds an old 0.4.0.

These come along, and you never import them

  • @markless/compiler

    Reads .tsrx files and plans the state, the updates and the code each event runs.

  • @markless/bundler

    Runs the compiler inside Vite and Rolldown.

  • @markless/web

    The render code behind render() in the browser and renderToString() for HTML.

  • @markless/runtime

    Keeps state: reads, writes and computed updates.

  • @markless/serializer

    The format for the state and page data that travel with rendered HTML.

The glossary gives one meaning for each word these packages use.

Button sounds are from Josh Comeau's Button Sounds library.