Mark Russell
I build reliability tooling and infrastructure for AI agents.
I am a software engineer on the platform team at Tulip. Before that, I led incident management.
The projects here measure TCP failure detection and browser lag, and give Claude tools with clear limits.
Projects
- systems: How long until a client knows that its peer is gone. An algebra calculates the time, and a harness measures it.
- client: Procedures as data. One typed registry for the CLI, HTTP, WebSocket and the MCP tools of Claude.
- polite-crawler: A polite web crawler for research and AI agents. It fetches a source once, keeps it, and gives full-text search and an MCP server.
- lag: It measures how long the main thread makes users wait, and exports the result as OpenTelemetry metrics and traces.
- page-lifecycle-tracker: The Page Lifecycle state of a web page, from active to frozen, for monitoring and telemetry libraries.
- async-browser-context: AsyncLocalStorage for the browser. The context stays through await, timers, events and generators.
- Vex: Typed spreadsheet formulas over TypeScript objects. When a value is missing, Vex tells you why.
- coeval: A base for declarative languages. A document gets its meaning from a question. Its kind names the evaluator, and a ladder finds it.
- render: A reactive expression engine. Its interface shows its own expressions, and you can edit them.
- splay: It renders any data with one viewer for each type. The core has no dependencies. Edit the JSON, and see splay render it as HTML elements, plain strings or component data.
- splay-react: The React adapter of splay. It renders any data to plain JSON, then hydrates the JSON to React elements. Change the data or a viewer, and see the two phases change live.
- ireko: Composable graph and tree layout for TypeScript. Each container selects its own layout, and SVG, Canvas, the DOM or React Flow draws the result.
- highways: It routes the edges of large graphs with highways, bundles and zoom levels. Pick a router and a fixture, and your browser routes the map live.
- packing: It packs rectangles into a container with many strategies, and measures each layout with an algebra. Change the strategy, the sort and the width, and compare the layouts in your browser.
- layout-contract: It is the shared contract of the packing and highways layout engines. It shows the newest joint benchmark, an explorer of the strategy space, the sweeps and the news of the two engines.
- strategy-space: It writes a layout strategy as data: the stages of an engine, the options of each stage and the ranges of their params. A generator makes the configs of the space, so a new combination needs no new code.
- files: Plain functions for the home folder, a path inside a folder, find-up, glob patterns and file walks with excludes. They use only the node: modules. The site has a glob tester.
- text: The escapes for HTML, attributes, regular expressions and Markdown, in one package. Case conversion, padding, templates and English word forms come next. The site shows each escape of your text.
- codeatlas: It finds the code that is the same in 37 public repositories. It shows the clone classes that go across repositories, the shapes of the functions, the shared names and the packages by purpose.
- rigor: It gives shared libraries for measured work: seeded generators and statistics now, with gates, test generation, chaos and load next. Type a seed, and the page draws the same numbers in each browser.
- algebra: An expression is one document, and many evaluators read it: a float with an error bound, an exact rational and an interval. Each evaluator states its error. The first census examines 194 million geometric predicate tests.
- headroom: It keeps the memory and the processors of one computer free enough for its jobs. A small daemon observes the memory, grants leases and enforces their limits. A job waits in a queue until its lease has room.
- lag-hud: It adds to lag, which measures the main thread of a page. It gives an in-memory meter for the lag monitors, a fan-out to more meters and a display without a framework.
- optional: A value that is present (some) or absent (none). It replaces null, undefined and exceptions in a total evaluation. Tests check the functor and monad laws, and Vex and render use it.
- release-train: It reads the npm packages of each repository and makes their dependency graph. It plans the next releases and updates in topological order. Its apply stage opens one combined update pull request for each repository.
- ste-lint: It finds prose that does not obey the writing rules of ASD-STE100 Simplified Technical English. It examines Markdown, MDX and TypeScript doc comments. It is an approximation, not a certification.
- template: It holds the shared CI, release and Pages workflows of the repositories. Its packages check the conventions and the import boundaries, report the public API and make new repositories.
- typeset: It reads the glyph widths and the kerning pairs from the tables of a font file. It calculates the width of a text without a draw operation. The site compares each width with canvas measureText.
- concat-src: It walks a folder and keeps the source files by extension and by end pattern. Then it writes the rules, a directory tree and each kept file in a code fence into one Markdown file. The site makes the catalog of a sample project or of your own folder, and the files stay in your browser.
- cue: Each package lists its features, for example ts, node, react and vitest. The CLI cue-config adds the features that they need. Then CUE unifies the file of each feature into package.json, tsconfig.json and .gitignore. Each package of the client monorepo uses it. The playground shows each line that generate writes, and the feature that gave the line.
- docker-mongo: A MongoDB 8.0 container for Docker Compose, with TypeScript functions that connect, initialize and seed. Eight environment variables give the connection string and the Compose file, and the file never holds the password. The site shows each step of init and seed as a mongosh command, with no server.
- docker-sqlite: SQLite for Node.js on sql.js, so it needs no native build. It gives functions for queries and migrations, and it writes a database file only when the content changed. A Compose file starts the sqlite-web interface on the loopback address. The site runs real SQLite in your browser. Edit a migration, start it, and read the SQL of each call in the log.
- Funk: Small functional parts for TypeScript, with no dependencies. It has Either and Optional for failures and absent values, a collection on arrays and sets, and a sponge that fills an object in steps. It is not on npm. The site starts the real source in your browser. Fail a step of a chain, and the later steps do not start.
- grafana-infra: A Docker Compose stack for frontend observability, with Alloy, Mimir, Loki, Tempo, Pyroscope and Grafana. The lag library uses it for development and integration tests, and the stack provisions the Lag Monitor dashboard. The site reads the real config files, but the stack does not operate on the page. Follow a signal to Grafana, find which panel reads which rule, and change a port.
- Logger: A logger for TypeScript with no dependencies. It has five levels, child loggers, three formatters, and console, memory, callback and custom transports. If a transport fails, the next transport still gets the record. The site starts the real package in your browser. Send a record, and follow it through the filter, the formatter and the transports.
- otel-ts: OpenTelemetry for TypeScript web apps from one init() call, with Grafana Faro as an option. It starts traces, metrics and logs, and it sends them with OTLP over HTTP. It flushes the data each time the page becomes hidden. The site starts the real init() in your browser and shows each span, metric and log record that leaves the package. The data stays in your browser.
- pr-opener: A Chrome extension. Type pull in the URL bar, press Tab, type a pull request number and press Enter. The options page keeps a list of repositories, and the first one is the default. It is not in the Chrome Web Store, so you build it and load the folder. The site starts the real extension code in your browser, with a drawn URL bar.
- ts-base: Strict tsconfig presets that build on each other: one file has the shared rules, and small files add ESM, CommonJS or frontend settings. Its CLI writes a tsconfig.json with one extends line and sets up package.json. The site traces each setting of a merged tsconfig to its file. Switch a strict flag, and read the code that tsc refuses. The results come from the real compiler at build time.
- TinyImages: A museum of very small image files, from a 5-byte SVG and a 35-byte GIF to a file that is also a shell script. The site tests each file in your browser. In its shrink lab you change the bytes, and the page shows if your browser still takes the result.
- Meds: The real Meds app runs in a phone frame, with invented sample items. Hold a tile, drag the hour wheel and move the clock. The page then shows how the state machine and the schedule code answer. Everything stays in your browser.
- collections: Pure collections for TypeScript, with no dependencies: lists, maps, queues, a summary tree, channels, lazy operations and dependency graphs. One package holds them all.
- runner-dispatch: A dispatcher gives a waiting GitHub Actions job a new machine for that job only, after its trust rules pass. A pull request from a fork cannot reach the machine with a label. The first package has the records, the trust rules and the check on the machine.
- cluster-design: A cluster design is data: the parts of each machine, the rules that tell which parts fit, and a site with its circuits. Formulas give the capacity, the watts, the heat, the noise and the load of each circuit. The first package is not written yet.
- market: A live catalog of products, with the offers of many sellers and the price of each offer over time. Each seller has one adapter, and the official API of the seller comes first. The first package is not written yet.
- room-view: A three.js viewer of a room model from a glTF file. The placed objects, the outlets and the circuits are data, so a program can make many scenes for a person to compare. The first package is not written yet.
- pairrank: Tag websites, pick the better of two, and rank them by ratings in a local database. The site runs the duel on eight sample sites. It ranks them by Bradley-Terry, Elo or Glicko-2, and it compares the ranking with a hidden taste.
- desktop: It gives the safe defaults for the main process of an Electron app. They include the content security policy, sandboxed windows, navigation and permission rules, and an app:// protocol. The first package is not written yet.
- sqlite: It keeps databases on one computer through node:sqlite. It gives safe settings, migrations, transactions, typed append-only event logs and the recovery of a broken file. The first package is not written yet.
- wirelab: It keeps a catalog of the browser clients of wire protocols as data tables, with a check. A priority order from measures of their use sets the order of a campaign that tests each client and fixes its bugs.
- alerts: It makes one stream of alerts from many sources: weather, news, service status and more. An adapter for each source maps its feed to one event format, based on the Common Alerting Protocol. Duplicate reports merge into one incident in any order. A calculation sets the priority of each incident. Each alert goes to its channels, with acknowledgement and escalation. The core and the first sources are in progress.
- geo: It gives plain functions for points on the Earth, with no dependencies. They give the great-circle distance and the bearing between two points, and the destination from a point. They test a point in a polygon and the overlap of two polygons, and they make buffers and bounding boxes. Geohash and GeoJSON are in it too. Each point is a WGS84 latitude and longitude. The first package is in progress.
- netdiag: It finds the cause of a network problem at each layer, from the link and Wi-Fi up to DNS, TLS and HTTP. Probes collect typed facts. A catalog of faults gives the probability of each cause, and the tool picks the next probe that gives the most information. Network labs inject each fault on purpose, and a gate in CI holds the hit rate. The model of facts and the catalog of faults are written. The probes are in progress.
- visuals: It shows records in the browser as 3D scenes, plans, maps and globes. Each viewer has picking, themes and fallbacks. The first package is not written yet.
- system-stack: It keeps each part of a system as one record: a person, a device, a host, a network, an account or a service. Each record tells what the part needs. A query over the records tells which parts work when some other parts are down. The spend add-on gives the cost of each part and a hard limit of its cost in a month, with a gate. The core and the spend add-on are written, and they are not on npm yet.
- capacity: A law gives one cost of a request as a function of the load: CPU time, memory, garbage collection time, event-loop lag or network bytes. The laws have three layers: bare Node, the service runner and each app. The scale rule of a service comes from its laws: the load at which it needs one more instance. Timed runs start only in CI. The law record and the subjects of bare Node are written, and they are not on npm yet.
- guidebook: Each unit of text is a quote, a summary or a fact, and each unit cites its source. Each source has its license. The source gate examines each unit and its source, and it gives each problem as data. The plans add-on keeps the steps of a plan by a case and by a phase of a time ladder. The phases go from the first 5 minutes to 5 years. The core and the plans add-on are written, and they are not on npm yet.
- stock: A lot is an amount of one product at one place, with its date of purchase and its due date. A due rule is data: the date on the label, or a count of days with its source. The package gives the amount of each resource at a date and the draws of first expiring, first out. It also gives the date to start to use each lot. An append-only log gives the same stock in each order of arrival. The first package is written, and it is not on npm yet.
- cartography: A map is data: a frame, layers and a style for each layer. The render gives SVG for print, with a scale bar and the attribution of each source. The first package is not written yet.