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

@livon/cli

v0.29.0-rc.11

Published

CLI for LIVON client sync and generated API workflows.

Readme

@livon/cli

npm dependencies npm publish OpenSSF Best Practices Snyk security package size license

Purpose

CLI for syncing schema AST from a running server and generating/updating client outputs.

Best for

Use this package when you want generated client APIs to stay in sync during local development and CI.

Install

pnpm add -D @livon/cli

Recommended command (sync + app)

livon \
  --endpoint ws://127.0.0.1:3002/ws \
  --out src/generated/api.ts \
  --poll 2000 \
  -- pnpm dev

Generated output mode

livon always runs in rslib mode after sync.

  • default output: esm + cjs + d.ts
  • use --esm or --cjs to build only the selected format
  • use --js when you only need esm + cjs and want to skip declaration files

With --out src/generated/api.ts, compiled files are written to src/generated/dist. livon also writes src/generated/package.json with conditional exports, so import { api } from './generated' resolves to the matching build output.

Linked process lifecycle

If the linked command exits, livon exits too.
If livon exits, it terminates the linked command.

If your linked command starts with flags, use -- before it:

livon --endpoint ws://127.0.0.1:3002/ws --out src/generated/api.ts -- --some-command --flag

Parameters

  • --endpoint <ws-url> (string): websocket endpoint used to fetch schema explain data (required unless --port is used).
  • --port <number> (number): overrides endpoint port when endpoint host/path stay unchanged.
  • --out <file> (string): output file path for generated API module.
  • --poll <ms> (number): polling interval for repeated sync runs.
  • --timeout <ms> (number): request timeout per sync call.
  • --event <name> (string): schema explain event name (default: $explain).
  • --method <GET|POST> (string): request method for explain fetch.
  • --header key:value (string, repeatable): additional request header.
  • --payload <json> (string): raw JSON payload body for explain request.
  • --esm (boolean): build only ESM output (dist/index.js).
  • --cjs (boolean): build only CJS output (dist/index.cjs).
  • --js (boolean): builds only esm + cjs (skips .d.ts output).
  • --no-event (boolean): disables event wrapping behavior for transports expecting plain request mode.
  • -- (delimiter): separates livon flags from linked command arguments.

Typical workflow

  1. Start server with schemaModule(..., { explain: true }).
  2. Run CLI in watch/poll mode during client development.
  3. Use generated API module in the client runtime.

Related pages