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

@rikalabs/agentos-apps

v0.2.19-rika.3

Published

Run and scale user-generated HTTP applications with agentOS and Rivet actors.

Readme

agentOS Apps

agentOS Apps deploys user-generated JavaScript and static sites into isolated agentOS VMs and routes HTTP through Rivet Actors.

Install agentOS Apps in a Node.js 22 or newer project:

npm add @rivet-dev/agentos @rivet-dev/agentos-apps
npm add @hono/node-server hono
npm add --save-dev tsx
npm pkg set type=module

RivetKit starts a local Engine automatically. For an existing Rivet deployment, use its standard Rivet connection variables and credentials.

src/actors.ts:

import { setup } from "@rivet-dev/agentos";
import { setupApps } from "@rivet-dev/agentos-apps";

const { appsActors } = setupApps();

export const registry = setup({
	use: {
		...appsActors,
	},
});

src/server.ts:

import { serve } from "@hono/node-server";
import { appsRouter } from "@rivet-dev/agentos-apps";
import { Hono } from "hono";
import { registry } from "./actors.js";

registry.start();

const server = new Hono();
server.route("/apps", appsRouter);

serve({ fetch: server.fetch, port: 3000 });

src/deploy.ts:

import { deployApp } from "@rivet-dev/agentos-apps";

await deployApp({
	appId: "hello-world",
	files: {
		"index.html": "<h1>Hello from agentOS Apps</h1>",
	},
});

The common API has three primary entry points:

  • setupApps() returns the agentOSAppsApp, agentOSAppsScaler, and agentOSAppsReplica actor definitions.
  • deployApp({ appId, source | files }) builds and activates an immutable release. It lazily uses an ordinary RivetKit client.
  • appsRouter routes /:appId and /:appId/* to deployed applications.

It also exports the deployment input, result, scaling, and typed error types. Supplying a custom ordinary client remains an option on deployApp() rather than a separate Apps client abstraction.

Submitted source and packed release chunks are stored in the stable app actor's SQLite database. Serving replicas materialize a verified temporary .aospkg for the VM lifetime and delete it after VM disposal. No durable local artifact directory is required.

Dependencies and build tools exist only inside a disposable build VM. The platform-owned Apps builder emits a minimal release containing bundled JavaScript, imported WASM modules, and static assets; serving replicas never install packages and releases do not contain tenant node_modules.

Deployments use the ordinary Rivet connection's configured namespace by default and do not require namespace-management permission. Set createNamespace: true on deployApp() to idempotently create a stable, isolated namespace for that appId within the configured host namespace. Every deployment returns its stable pool along with its namespace for ordinary DirectActor clients.

The scaling options default to minReplicas: 0, maxReplicas: 128, and targetConcurrency: 8.

Guest Rivet Actors use the ordinary DirectActor API from rivetkit/client. agentOS Apps does not export or wrap a RivetKit client. Host management tokens are never exposed inside guest VMs. Each VM receives an opaque, app-scoped Engine capability that fixes the namespace and runner pool and rejects management routes. Rivet Engine callbacks use a random per-app credential that the trusted app actor validates and strips before forwarding.

See examples/apps-hello-world for the smallest runnable server.