</>PackageGraphPackageGraph

citty

npmv0.2.2TypeScript

Elegant CLI Builder

Safe to adopt

Yes — citty scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 112 days ago. 3 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 112 days ago. 3 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 34 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding citty to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

34 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the citty README.

import { defineCommand, runMain } from "citty";

const main = defineCommand({
  meta: {
    name: "hello",
    version: "1.0.0",
    description: "My Awesome CLI App",
  },
  args: {
    name: {
      type: "positional",
      description: "Your name",
      required: true,
    },
Example truncated — see the full README.

Dependencies

Declared by citty v0.2.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (12)

@types/node ^25.5.0@typescript/native-preview ^7.0.0-dev.20260401.1@vitest/coverage-v8 ^4.1.2automd ^0.4.3changelogen ^0.6.2eslint-config-unjs ^0.6.2obuild ^0.4.32oxfmt ^0.43.0oxlint ^1.58.0scule ^1.3.0typescript ^6.0.2vitest ^4.1.2

Used by

Popular packages that depend on citty.

Relationship graph

Dependencies (left) and dependents (right) of citty.

nypmcitty
citty dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 50 days apart.

Recent versions of citty
VersionPublishedSizeLicense
0.2.2latest3 months ago34 KBMIT
0.2.15 months ago24 KBMIT
0.2.06 months ago23 KBMIT
0.1.62 years ago44 KBMIT
0.1.52 years ago44 KBMIT
0.1.42 years ago44 KBMIT
0.1.32 years ago42 KBMIT
0.1.23 years ago36 KBMIT
0.1.13 years ago43 KBMIT
0.1.03 years ago32 KBMIT
0.0.23 years ago39 KBMIT
0.0.13 years ago38 KBMIT
0.0.04 years ago60 BMIT

Overview

citty is an npm package that elegant CLI Builder. It has 1 known dependents in the graph. The latest version is 0.2.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need elegant CLI Builder and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use citty?

Yes — citty scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 112 days ago. 3 releases in the last 2 years.

How do I install citty?

Run `npm install citty` to add citty to your npm project.

What license is citty released under?

citty is distributed under the MIT license.

How popular is citty?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on citty.

Is citty still maintained?

The most recent release of citty (v0.2.2) was published 3 months ago.

Does citty run install scripts?

No. citty does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.