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

anbaric-cloud-hosting

v1.20.1

Published

Anbaric Cloud hosting service: Postgres-backed job persistence and queuing exposed over an HTTP API

Downloads

6,058

Readme

anbaric-cloud-hosting

The Anbaric platform library: the hosted API, authentication middleware, build layers, dispatcher and app proxy. To run a platform, install anbaric-hosting, which boots this package with the anbaric-hosting command; this README documents the moving parts for anyone extending the platform.

Anatomy

HostingServer serves two node:http listeners:

  • Public (ANBARIC_HOSTING_PORT, default 8787): /ping is open; the CLI-authorization poll is open by design (it delivers a one-time key); everything else runs through the middleware chain — bearer-token authentication when an Authorization: Bearer header is present, session authentication otherwise, then authorize(), then the Router.
  • Internal (ANBARIC_INTERNAL_PORT, default 8788): no authentication, hard-whitelisted to the workflow resources (jobs, queue, consumers, state-machines, documents, secrets) — everything else 404s before the Router is consulted. Deployed apps use it; it must never be publicly reachable.

Router routes: /jobs, /queue/{enqueue,schedule,dequeue,confirm}, /consumers (registration), /apps (+ /apps/<name>/deploy), /state-machines, /documents/<collection>, /secrets, /whoami, /keys, /authorize-cli/<id>, the built platform pages (dashboard at /, /manage-keys), and finally proxies /<app-name>/* to running apps.

Authentication

Authenticator (abstract): authenticate(session, request, response) returns Promise<[User, Tenant] | undefined> — implementations write the redirect/401 themselves and return undefined when unauthenticated. authorize(user, request, response) defaults to permit. Plugins load via ANBARIC_AUTHENTICATOR naming a module with a createAuthenticator() export.

TokenAuthenticator verifies the CLI's EdDSA JWTs: kid header names a stored key, the signature is checked against its public key, exp against the clock; the request proceeds as the key's user. Keys are minted by CliAuthorizer during the browser authorization flow and stored (with client name, user and the session's tenant) in the anbaric_system schema — system tables never mix with workflow data.

Build layers

BuildLayer implementations receive the deploy tarball, bake an image from the generated Dockerfile (base image + app source; no npm install, no build step — apps run as TypeScript via tsx) and run the app:

  • DockerBuildLayer (ANBARIC_BUILD_LAYER=docker): local docker daemon, one container per app on a shared network.
  • FargateBuildLayer (fargate): uploads the bundle to S3, bakes with CodeBuild, runs each app as its own single-task ECS service with a Cloud Map DNS name. Configured by the ANBARIC_AWS_* variables (cluster, subnets, app security group, namespace id/name, apps ECR repository, build bucket, CodeBuild project, base image, app execution role, apps log group); the repository's gitops/modules/anbaric-platform-aws provisions every piece.

Deploys are asynchronous: deploy returns a building summary immediately and the CLI polls /apps/<name> until running (liveness-probed) or failed, streaming the build log.

Queueing

PostgresQueue implements at-least-once delivery with 30-second leases (FOR UPDATE SKIP LOCKED); confirm deletes. The Dispatcher drains the queue on an interval and POSTs message batches to each workflow's registered consumer URL, re-enqueueing anything unroutable or failed. Consumer registrations are in-memory — the platform runs as a single instance until they are persisted.

Postgres schema management is automatic on boot (ensureSchema): workflow tables in public, platform tables in anbaric_system.