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

@cardcarp/simulator

v0.1.0

Published

The virtual tabletop as one object: stage geometry, the Pixi canvas, seats, and the multiplayer client that pairs with cardcarp-relay. No UI — an app brings its own.

Readme

@cardcarp/simulator 🎴

The virtual tabletop as one object: stage geometry, the Pixi canvas, seats, and the multiplayer client that pairs with cardcarp-relay.

npm install @cardcarp/simulator @cardcarp/core

A Pixi canvas you play on, seats and hands, dice, counters, arrows and free-form markup, and a multiplayer client. It ships no UI of its own, and it installs on its own — a project that wants a table and no card archive builds its interface on this and nothing else.

Usage

createTable returns the whole table as one frozen object. A page holds one table; calling it twice throws.

import { createTable } from '@cardcarp/simulator'

const table = createTable({ assets, relay })
await table.mount(element)

table.seats.roster.listen((rows) => render(rows))
table.cards.shuffle(groupId)

The object groups its verbs by what they act on — cards, hand, seats, room, tools, selection, dice, counters, text, view, scenery, accessories, pointer — alongside mount, setGame, on and reset. Readable state is exposed as stores you listen to.

Rules, or the absence of them

It enforces none. The table moves objects and shares those movements; who may do what, and when, is left to the players. The relay behind multiplayer is a thin echo server holding canonical canvas state per room, with no notion of turns, legality or winning. That is a deliberate ceiling on what this is: a sandbox for games it has never been taught, not an engine for one it has.

Your UI

The interface is the app's. The package has no components and imports no framework, so a table can be drawn in whatever the project already uses. apps/template in the repo carries a complete one in Vue — the canvas view, the hand, the panels and toolbars, the tutorial and the keyboard — and it reaches the table only through the object createTable returns.

Most apps need the root export and nothing else. The Pixi scene, the seat arithmetic, the relay client and the tool registry are reachable by subpath for the case that genuinely needs them:

import { stageSize } from '@cardcarp/simulator/stage.js'
import { tools } from '@cardcarp/simulator/canvas-pixi/tools/index.js'

Where it sits

Alongside the deckbox, over one shared @cardcarp/core. Install both and they share a config and a manifest, because core is a peer dependency of each rather than a bundled copy inside either.

Peer dependencies

@cardcarp/core only. Pixi and Motion are regular dependencies of the package, and it needs no framework.

Links

License

MIT No Attribution.