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

@crewai-ts/cli

v0.2.1

Published

CLI to run a user's crewai-ts project (TypeScript/JavaScript) via tsx.

Readme

@crewai-ts/cli

npm version license types

The crewai-ts command-line tool for running a user's CrewAI-style TypeScript or JavaScript project.

crewai-ts validates a project directory, resolves the entry file, and executes it through tsx. It is the default driver for the @crewai-ts/cli template and any project scaffolded with the TypeScript CrewAI patterns.

Unofficial project. This is a community port of CrewAI and is not affiliated with, endorsed by, or maintained by crewAI, Inc. See License for the upstream MIT notice.

Install

# Global install — exposes the `crewai-ts` binary
npm install -g @crewai-ts/cli
# or
pnpm add -g @crewai-ts/cli

# Local install — invoke via `pnpm exec` / `npx`
npm install --save-dev @crewai-ts/cli
pnpm add -D @crewai-ts/cli

Requirements:

  • Node.js 22 or later
  • @crewai-ts/core installed in the target project
  • tsx is bundled — no extra setup required for .ts entry files

Usage

# Run a project directory
crewai-ts ./my-crew-project

# Pass inputs as JSON
crewai-ts ./my-crew-project --inputs '{"topic":"CrewAI"}'

# Show help
crewai-ts --help

# Show version
crewai-ts --version

Project Entry Resolution

The CLI resolves the project entry file in this order:

  1. index.ts at the project root
  2. src/index.ts
  3. main.ts at the project root
  4. package.json "main" field (with .ts appended if needed)
  5. Default: index.ts

The returned path is always relative to the project directory.

Programmatic API

The package exposes a small programmatic surface for embedding the CLI runner inside another Node.js tool or a test harness.

import { CLI_VERSION, findProjectEntry, main } from "@crewai-ts/cli";

// Run the CLI programmatically with an argv-style string array.
// `main` returns the process exit code (0 on success).
const exitCode = await main(["./my-project", "--inputs", '{"topic":"AI"}']);

// Resolve the entry file for a project without executing it.
const entry = findProjectEntry("./my-project");

main is the only async entry point that performs I/O; the rest of the helpers are pure functions and are safe to call in tests.

Exports

  • main(args) — CLI entry point, returns the process exit code
  • findProjectEntry(projectPath) — resolve the entry file for a project
  • CLI_VERSION — current CLI version constant

The argument-parsing and project-validation helpers are intentionally internal — the public surface above is the supported contract.

Related Packages

  • @crewai-ts/core — agents, tasks, crews, tools, hooks, security, checkpoints
  • @crewai-ts/rag — memory, knowledge, vector stores, PDF parsing
  • @crewai-ts/flow — stateful Flow orchestration
  • @crewai-ts/nestjs — NestJS DI integration

License

MIT

This project is an unofficial TypeScript port of CrewAI (Copyright © crewAI, Inc.), which is distributed under the MIT License. It is not affiliated with or endorsed by crewAI, Inc. As required by the MIT License, the original copyright and permission notice are retained in LICENSE.