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

@kaptan_web3/og-cli

v0.1.11

Published

Terminal-native companion for building and shipping 0G app MVPs.

Readme

Install (Public npm)

npm install -g @kaptan_web3/og-cli
og --version
og --help

If you see EEXIST for og:

npm uninstall -g @og/cli
npm install -g @kaptan_web3/og-cli

2-minute reviewer overview

Problem: builders lose time switching between tools for generation, local run, deploy, and state handoff.

What this project does: keeps that loop in one CLI with explicit plan/diff output and actionable runtime messages.

Implemented today:

  • auth/session: og login, og logout, og whoami
  • model controls: og model list, og model use <modelId>
  • project lifecycle: og init, og create, og edit
  • runtime/deploy: og preview, og deploy vercel
  • metadata handoff: og sync push, og sync pull

Submission framing (judge/hackathon)

What is unique here

  • terminal-first, prompt-to-app flow with plan/diff before apply
  • real proxy-compatible generation path + deterministic mock fallback
  • deploy + lightweight sync included in the same command surface

Why it matters for builders

  • shortens idea-to-running-app iteration in terminal
  • keeps generated changes inspectable and controlled
  • keeps project state portable without introducing heavy infra

Why it fits 0G / 0G App

  • integrates with OpenAI-compatible 0G compute proxy endpoints
  • stays focused on practical app-building and shipping workflows

Quick start

Prerequisites

  • Node.js
  • npm
  • pnpm (only if you want to run from source)
  • vercel CLI (for deploy commands)

Install globally from npm (recommended)

npm install -g @kaptan_web3/og-cli
og --version
og --help

If you see EEXIST for og, remove the old global package and reinstall:

npm uninstall -g @og/cli
npm install -g @kaptan_web3/og-cli

Run from source (contributors)

git clone <repo-url>
cd 0G
pnpm install
pnpm build
pnpm --filter @og/cli run dev --help

60–120 second demo

./scripts/demo-flow.sh --mode mock

For real proxy demo commands and speaking notes, see DEMO.md.

How builders use this (practical flow)

1) Login (real endpoint)

og login \
  --token "$OG_REAL_TOKEN" \
  --endpoint "https://compute-network-4.integratenetwork.work/v1/proxy"

2) Initialize a project

og init --template react-vite --dir ./my-app --yes
cd ./my-app
pnpm install

3) Generate changes from a prompt (safe first run)

og create \
  --prompt "Add a hero section" \
  --dry-run \
  --yes

4) Apply and iterate

og create --prompt "Add a hero section" --yes
og edit --prompt "Improve spacing and CTA contrast" --dry-run --yes

5) Preview, deploy, sync

og preview --port 4173
og deploy vercel --yes
og sync push

Notes for first-time users

  • If you see timeout/rate-limit errors in real mode, retry or switch to mock://local for deterministic demos.
  • If you see timeout/rate-limit errors in real mode, retry with a short cooldown and keep using your real endpoint.
  • create and edit are easiest to start with --dry-run so you can inspect plan and diff output before writing files.
  • Upgrade globally with npm install -g @kaptan_web3/og-cli@latest.
  • Remove globally with npm uninstall -g @kaptan_web3/og-cli.

Core command surface (MVP)

og login / logout / whoami
og model list / model use <modelId>
og init
og create / og edit
og preview
og deploy vercel
og sync push / og sync pull

Supported templates: react-vite, nextjs-app, static-landing.

Real vs mock boundaries

Real path

  • auth and identity validation against real proxy endpoint
  • generation requests to OpenAI-compatible proxy routes
  • local preview execution
  • Vercel deployment flow
  • metadata sync push/pull via configured sync provider abstraction (default local-file)

Mock path

  • mock endpoints are disabled by default for end users
  • local mock mode is developer-only opt-in: set OG_ENABLE_MOCK_MODE=1 before using mock://local

Current limitations (truthful)

During real provider usage, generation calls may intermittently fail due to upstream capacity conditions (for example 429 rate limits, concurrent request caps, timeout windows, or transient socket closes). The CLI now includes bounded retries and clearer diagnostics, but end-to-end success still depends on live provider availability at request time.

  • Real-provider generation can still fail due to timeout/rate limits.
  • Deploy target is Vercel only.
  • Sync is lightweight metadata sync, not full project backup/restore.
  • Template set is intentionally narrow.

Repository map

apps/cli/              # CLI implementation, packaging, runtime wiring
packages/core/         # .og state schema/helpers
packages/compute-client/ # auth + model/endpoint client
packages/storage/      # sync provider abstraction + local-file provider
templates/             # starter templates copied by `og init`
scripts/demo-flow.sh   # reproducible short demo runner

Where reviewers should look next

  • DEMO.md: exact live demo sequence (real + fallback)
  • SHOWCASE.md: concise judge-facing snapshot (what works, limits, value)
  • HACKATHON_SUBMISSION.md: dual-track submission checklist and payload template
  • examples/goal-agent/: working autonomous agent example built on top of og

Validation commands

pnpm lint
pnpm typecheck
pnpm build