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

@archlast/cli

v0.2.2

Published

Archlast CLI for development and deployment

Readme

Archlast CLI

CLI tool for Archlast development, deployment, and Docker lifecycle management.

Requirements

  • Node.js 18+
  • Docker Desktop or Docker Engine
  • Bun 1.3+

Installation

npm install -g @archlast/cli

On Windows, ensure Bun is on your PATH (the installer adds it, but terminals need a restart):

[Environment]::SetEnvironmentVariable(
  "Path",
  "$env:Path;$env:USERPROFILE\\.bun\\bin",
  "User"
)

Quick start

archlast init
archlast start
archlast status
archlast logs --follow

To watch and auto-deploy functions during development:

archlast dev --path ./archlast --server http://localhost:4000

Commands

  • dev - watch archlast/src for changes, regenerate types, and deploy deltas
  • deploy - one-time deployment to the server
  • build - generate types without deploying
  • pull - pull schema/files from the server, or use --docker to pull an image
  • init - scaffold the minimal Archlast project structure
  • start / stop / restart - manage the Docker container
  • status - print container status and health
  • logs - stream container logs
  • upgrade - pull a new image and restart the container
  • config - show resolved Docker config (use --json for JSON)
  • generate crud <collection> - scaffold CRUD handlers from schema
  • data - snapshot/export/import/restore data (requires ARCHLAST_API_KEY)

Common options

  • --path <path> points to your Archlast project folder
  • --server <url> sets the API base URL (default: http://localhost:4000)
  • --port <port> overrides the container port for start and upgrade
  • --config <path> points to archlast.config.js
  • --name <name> sets the project name when running init

Configuration

The CLI reads configuration in this order:

  1. CLI flags
  2. archlast.config.js
  3. .env or .env.local
  4. defaults

Example archlast.config.js:

export default {
  docker: {
    image: "algochad/archlast-server",
    tag: "latest",
    containerName: "archlast-server",
    restartOnDeploy: true,
  },
  server: { port: 4000 },
  paths: {
    config: ".archlast/config",
    deploy: ".archlast-deploy",
  },
  cors: { origins: ["http://localhost:3000"] },
  env: {
    ARCHLAST_DASHBOARD_PORT: "4001",
    ARCHLAST_STORE_PORT: "7001",
  },
};

Environment variables starting with ARCHLAST_, S3_, AWS_, and STORAGE_ are forwarded into the container.

If containerName or volumeName is not set, the CLI generates unique names per project to keep data isolated.

The CLI stores per-project metadata in .archlast/project.json and persists the selected port when it has to pick a new one.

When restartOnDeploy is enabled, archlast dev and archlast deploy restart the Docker container after a successful upload.

Dev and deploy flow

The server receives deployments at POST /_archlast/deploy with payload:

{
  functions: Array<{
    name: string;
    type: "query" | "mutation" | "action";
    filePath: string;
    code: string;
  }>;
  schema: { filePath: string; code: string } | null;
  timestamp: number;
}

Data management

Use the data command group to snapshot, export, import, and restore data. Set ARCHLAST_API_KEY in your environment for authentication.

Examples:

archlast data snapshot --name "pre-migration"
archlast data export ./backup.zip
archlast data import ./backup.zip --strategy merge
archlast data restore snapshot-2026-01-01.zip

Publishing (maintainers)

See docs/npm-publishing.md for the release workflow and manual publish steps.