npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xmachines/docs

v2.0.0

Published

Documentation for XMachines

Readme

@xmachines/docs

Documentation, guides, RFCs, and generated API reference for XMachines.

Part of the XMachines Play monorepo.

License: MIT Version

Overview

@xmachines/docs is the documentation package for the XMachines Play monorepo. It ships five categories of content:

| Location | Contents | | --------------- | ---------------------------------------------------------------- | | rfc/ | Request-for-Comment specs that define the XMachines architecture | | guides/ | Concept guides, tutorials, and getting-started docs | | contributing/ | Operational docs for contributors and maintainers | | examples/ | Runnable code examples and demo application references | | api/ | TypeDoc-generated API reference for all public packages |

Installation

pnpm add @xmachines/docs

Usage

Import the package URL

The package default export is its own module URL — useful for resolving doc assets at runtime:

import docsUrl from "@xmachines/docs";
// docsUrl is the resolved URL of the docs package entry point

Access documentation files directly

All documentation directories are exposed as package exports:

// Access RFC files
import playRfc from "@xmachines/docs/rfc/play.md";

// Access guide files
import gettingStarted from "@xmachines/docs/guides/getting-started.md";

// Access example files
import basicExample from "@xmachines/docs/examples/basic-state-machine.md";

// Access API reference
import apiDocs from "@xmachines/docs/api/README.md";

Contents

RFCs

Architectural specifications that define the XMachines system:

| File | Title | Description | | ---------------------------------- | ------- | -------------------------------------------------------------------- | | rfc/play.md | Play | Universal Player Architecture — core protocol, roles, and invariants | | rfc/streams.md | Streams | WHATWG Streams as integration boundary | | rfc/broker.md | Broker | Event broker specification | | rfc/git.md | Git | Git-compatible ID and history model | | rfc/run.md | Run | Runtime execution model | | rfc/browser.md | Browser | Browser environment adapter | | rfc/node.md | Node | Node.js environment adapter | | rfc/cli.md | CLI | Command-line interface specification | | rfc/rest.md | REST | REST adapter specification | | rfc/mcp.md | MCP | Model Context Protocol adapter |

Guides

Concept guides and tutorials for working with XMachines:

Learning:

Tooling:

Contributing & Operations

Reference documentation for contributors and maintainers:

  • Architecture — Package layers, data flows, key abstractions, TypeScript build graph
  • Development — Monorepo setup, build system, adding packages, code conventions
  • Configuration — TypeScript, linting, formatting, Vitest, CI/CD, and release configuration
  • Testing — Vitest setup, node vs browser modes, test patterns, coverage requirements
  • Deployment — npm publishing, semantic-release process, GitLab CI pipeline

Examples

Practical code examples demonstrating XMachines patterns:

API Reference

TypeDoc-generated API reference for all public packages — see api/README.md.

Packages documented:

Testing

Run the docs package tests in isolation:

# From the monorepo root
pnpm --filter @xmachines/docs test

# Or from within the package directory
pnpm test

Regenerating API Docs

The api/ directory is auto-generated by TypeDoc and must not be edited directly. Regenerate it from the monorepo root:

pnpm run docs

License

MIT — see LICENSE.