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

@act-sdk/cli

v2.0.1

Published

CLI for Act SDK

Readme

@act-sdk/cli

Command-line tools for scaffolding and syncing Act SDK projects.

Use Without Installing

npx @act-sdk/cli init

This only works after @act-sdk/cli has been published to npm.

Local Development

pnpm --filter @act-sdk/cli run build
node packages/cli/dist/index.js init

If you want a global command locally:

cd packages/cli
npm link
act-sdk init

Install Globally (Optional)

npm install -g @act-sdk/cli
act-sdk --help

Commands

act-sdk init

Scaffolds act-sdk.config.ts and providers/act-provider.tsx into your project and installs required dependencies.

The generated config:

  • exports act and actSdkConfig
  • includes an explicit endpoint
  • uses process.env.NEXT_PUBLIC_ACT_SDK_API_KEY

You can define actions anywhere in your app by importing act from act-sdk.config.ts. The generated provider file imports act and actSdkConfig and wraps your app with @act-sdk/react.

act-sdk init
act-sdk init --skip-install

act-sdk add <component>

Adds UI components (currently command for the Act command bar).

act-sdk add command

act-sdk sync

Extracts action definitions from your project and syncs them to your endpoint.

act-sdk sync
act-sdk sync --config ./act-sdk.config.ts --project .

Required Config

act-sdk sync expects an act-sdk.config.ts (or --config) containing:

  • apiKey
  • projectId
  • description
  • optional endpoint (defaults to https://www.act-sdk.dev)

Example: wiring the Act command bar

After running:

npx @act-sdk/cli init
npx @act-sdk/cli add command

you’ll have:

  • act-sdk.config.ts exporting act and actSdkConfig
  • providers/act-provider.tsx exporting ActSdkProvider
  • components/act-sdk/command.tsx exporting ActCommand

Wrap your app once with the provider (for example in a Next.js root layout):

'use client';

import type { ReactNode } from 'react';
import { ActSdkProvider } from '@/providers/act-provider';

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en">
      <body>
        <ActSdkProvider>{children}</ActSdkProvider>
      </body>
    </html>
  );
}

Then mount the command bar so users can type natural-language intents (e.g. “delete user [email protected]”):

import { ActCommand } from '@/components/act-sdk/command';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <ActSdkProvider>
          {children}
          <ActCommand /> {/* ⌘K / Ctrl+K opens the command bar */}
        </ActSdkProvider>
      </body>
    </html>
  );
}

ActCommand internally uses useAct() from @act-sdk/react, so anything a user types (or selects from suggestions) is sent as an intent that can call your typed actions.