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

@acosgames/framework

v1.0.11

Published

Framework package for building ACOS multiplayer game clients and server logic.

Readme

@acosgames/framework

Framework package for building ACOS multiplayer game clients and server logic.

It is designed to be used together with @acosgames/simulator for local development and deployment to the acos.games platform.

What This Package Provides

  • ACOSClient: browser-side helper API for sending/receiving game messages.
  • ACOSServer: server-side game API for action handling, gamestate updates, timers, events, and game end conditions.
  • GameStateReader and helpers: structured read/write access to game state.
  • GameStatus enum: room status constants for client and server logic.

Install

From your game project:

npm install @acosgames/framework @acosgames/simulator

Module Support (ESM + CJS)

This package ships both ESM and CommonJS builds through package exports.

  • ESM consumers use import
  • CJS consumers use require

No subpath import is needed. Use only the package name.

import { ACOSClient, ACOSServer, GameStatus } from "@acosgames/framework";

Expected Game Project Layout

Your game project should output two bundles:

builds/
	client.bundle.js
	server.bundle.js
  • client.bundle.js is loaded in the simulator iframe
  • server.bundle.js is executed in the simulator game worker

Client-Side Quick Start

import { ACOSClient, GameStatus } from "@acosgames/framework";

ACOSClient.listen((game, newStatus) => {
	if (newStatus && game.room.status === GameStatus.gamestart) {
		// update local UI state
	}
});

// tell simulator client is ready
ACOSClient.ready();

// send user action to server
ACOSClient.send("pick", 4);

Server-Side Quick Start

import { ACOSServer } from "@acosgames/framework";

ACOSServer.init();

ACOSServer.on("gamestart", () => {
	const gs = ACOSServer.gamestate();
	gs.state("cells", ["", "", "", "", "", "", "", "", ""]);
	gs.setNextPlayer(0);
	gs.setNextAction("pick");
	gs.room().setTimerSet(15);
});

ACOSServer.on("pick", (action) => {
	const gs = ACOSServer.gamestate();
	const player = gs.player(action.user.id);
	if (!player) return false;

	// your game logic
	return true;
});

ACOSServer.save();

Local Development With Simulator

In your game project, a common setup is:

{
	"scripts": {
		"start": "concurrently \"npm run client\" \"npm run server\" \"npx acos dev --type=vite\"",
		"client": "vite serve",
		"server": "npx rollup -c -w",
		"build": "npm run client:build && npm run server:build",
		"client:build": "vite build",
		"server:build": "npx rollup -c --environment NODE_ENV:production"
	}
}

Then run:

npm start

Deploying To acos.games

After building both bundles:

npx acos deploy

Many projects use:

{
	"scripts": {
		"deploy": "npm run build && npx acos deploy"
	}
}

Build This Package (Contributors)

npm run build

This generates:

  • dist/esm for ESM consumers
  • dist/cjs for CommonJS consumers

Links

  • ACOS docs: https://sdk.acos.games
  • Platform: https://acos.games