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

@ai-anywhere/cli

v0.0.37

Published

AI Anywhere CLI: exposes the AI CLIs installed on your machine (claude, codex, gemini...) to the browser side panel over WebSocket

Readme

AI Anywhere

Your agents. Any browser. Anywhere.

AI Anywhere brings the agent CLI sessions running in tmux to a focused browser interface that works on desktop and mobile. One command starts the local service, and the web UI collects every task that needs attention without moving terminal state away from the machine where it is running.

This repository contains the web layer served at tmux.online:

  • the public product site;
  • the React account dashboard;
  • device authorization and membership screens;
  • the shell installer;
  • Cloudflare Worker and deployment configuration.

The CLI, tmux integration, local server, and browser workspace live in the AI Anywhere core repository.

Install

Run the installer on the machine that hosts your tmux sessions:

curl -fsSL https://tmux.online/install.sh | sh

The installer verifies the local prerequisites, installs @ai-anywhere/cli, and starts AI Anywhere. The server listens on 127.0.0.1 by default, so terminal traffic remains on the local machine.

What This App Provides

  • A product site prerendered with Astro.
  • A client-rendered dashboard built with React Router and SWR.
  • GitHub account sign-in and account switching.
  • Authorized device management and API key management.
  • Trial, referral, and permanent membership views.
  • Device authorization that returns users to the correct localized dashboard route.
  • English, Japanese, Korean, and Traditional Chinese pages.
  • Browser-side caching for responsive dashboard navigation.
  • Search-engine exclusion and private caching rules for account routes.
  • A downloadable installer with a guarded npm publishing workflow in the core repository.

Architecture

| Area | Implementation | | --------------- | ---------------------------------------------------------------------- | | Public pages | Astro, prerendered HTML, inline critical CSS | | Dashboard | React, React Router, SWR | | Account API | https://api.tmux.online through the typed client in src/lib/api.ts | | Localization | Typed copy tables in src/i18n | | Installer | public/install.sh | | Edge runtime | Cloudflare Worker in worker/index.js | | Response policy | public/_headers and Worker response headers | | Deployment | Wrangler and GitHub Actions |

The public pages do not load a framework runtime. React hydrates only dashboard and device authorization surfaces that require account state.

Dashboard HTML is cached privately in the browser for ten minutes and is explicitly excluded from Cloudflare edge caching. Account data is fetched in the browser after the session is resolved, and dashboard routes are excluded from search indexing through HTML, response headers, robots.txt, and sitemap filtering.

Routes

| Route | Purpose | | ------------------------ | ----------------------------------- | | / | English product site | | /ja, /ko, /zh-Hant | Localized product sites | | /dashboard/devices | Authorized devices | | /dashboard/api-keys | API key management | | /dashboard/membership | Trial, referrals, and membership | | /dashboard/device | Device authorization | | /device | Cookie-aware compatibility redirect | | /install.sh | Shell installer download |

Localized dashboard routes use the same language prefixes as the public pages. The L cookie is a non-sensitive, root-domain preference readable by tmux.online services. It records the active language so compatibility routes can select the correct location; the bare / home follows a saved non-English preference, and unknown values fall back to English.

Project Structure

src/components/        Astro page sections and shared site chrome
src/islands/           React dashboard and account surfaces
src/i18n/              Typed localized copy
src/layouts/           Shared HTML document layout
src/lib/               API, caching, icons, and content helpers
src/pages/             Public, dashboard, localized, and text routes
src/styles/            Public and dashboard styles
public/                Installer, icons, manifest, robots, and response headers
scripts/               Build-time optimization and asset scripts
worker/                Cloudflare request handling

Local Development

The project uses pnpm.

pnpm install
pnpm dev

The development server runs at http://localhost:4321.

To use a local account API:

PUBLIC_API_URL=http://localhost:51994 pnpm dev

Useful commands:

pnpm build      # Generate the production site in dist/
pnpm preview    # Serve the production output locally
pnpm check      # Run Astro and TypeScript checks
pnpm lint       # Check formatting and Astro types
pnpm format     # Apply repository formatting
pnpm images     # Regenerate raster images from source assets

Localization

English is served without a URL prefix. Japanese, Korean, and Traditional Chinese use their own path prefixes.

To add a language:

  1. Add a typed copy file under src/i18n.
  2. Register the locale and its Open Graph locale in src/i18n/index.ts.
  3. Add the matching page directory under src/pages.
  4. Check typography and text fit on both mobile and desktop layouts.

The language switcher, alternate links, Open Graph metadata, sitemap, and machine-readable text pages all derive from the same locale registry.

Deployment

Build and deploy the Cloudflare Worker and static assets with:

pnpm deploy

The GitHub Actions workflow in .github/workflows/deploy.yml deploys pushes to main. It expects these repository secrets:

  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ACCOUNT_ID

Secret values belong in GitHub repository settings and must never be committed.

Repository Boundary

This repository is the canonical source for the tmux.online website. Changes to the CLI, local service, tmux protocol, or npm package belong in AI Anywhere core. The website consumes those runtime artifacts through the public installer and documented HTTP interfaces.