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

@usecontextlayer/cli

v0.19.0

Published

Create and deploy ContextLayer slates, and connect accounts

Readme

@usecontextlayer/cli

Create and deploy ContextLayer slates, and connect accounts with the ctx CLI.

The domain model defines slates, declarations, resources, Owners, and assignments.

Use a Node.js release supported by this package’s engines field, pnpm, and Git. Git author identity must be configured; initialization displays Git's configuration instructions when it is missing.

Start with login, then create and run your slate:

npx @usecontextlayer/cli login
npx @usecontextlayer/cli init my-slate --scaffold-app
cd my-slate
pnpm dev

Approve login in your browser. This quickstart selects the bundled app starter, installs its dependencies, and commits it with its lockfile on main, with local state already ignored. Plain initialization creates a Git checkout with a short AGENTS.md, ordinary Vite/Cloudflare build tooling, installed dependencies and a committed lockfile; app, public files, agents, and MCP source are optional. Open the local URL printed by the development server. Initialization prints your slate's dashboard link and hosted URL; the hosted URL becomes usable after a successful Git push deployment.

The app starter's README explains local development, connections, and deployment. Use npx @usecontextlayer/cli scaffold --help to add source later. Integrate any printed conflict proposal with your authoring agent. When dependencies change, run pnpm install and commit pnpm-lock.yaml with the integrated source. The scaffolding contract explains source ownership and conflict handling. The SDK guide describes loaders, tools, and the shared app layout.

Connect an account to ContextLayer in your browser, then assign the connected account to a connection declared by your slate. Already connected accounts can go directly to assignment.

The generic API command discovers operations from the configured platform's live OpenAPI document. Its help describes saved-login behavior. Command syntax and options live in the CLI's help:

npx @usecontextlayer/cli --help

Initialization has already committed the checkout. Deploy it from main with git push -u origin main. After making changes, commit them before pushing:

git add .
git commit
git push -u origin main

The native Git remote starts ContextLayer's build and deployment pipeline.

After pushing, follow the deployment guide to inspect the build and published revision. Use CLI help for the CI and Worker entry points.