MCPcopy Index your code
hub / github.com/c4spar/cliffy

github.com/c4spar/cliffy @v1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.1 ↗ · + Follow
1,130 symbols 3,612 edges 356 files 314 documented · 28% 1 cross-repo links updated 25d agov1.2.1 · 2026-06-04★ 1,16535 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cliffy

JSR Scope popularity Build status Code coverage Discord

Cliffy is a TypeScript-first, runtime-agnostic command-line toolkit for building complex CLIs with Deno, Node and Bun.

Documentation

The documentation is available on cliffy.io.

Packages

Package Description Version Downloads Runtime
ansi Chainable ansi escape sequences. JSR Total Weekly Deno, Node, Bun
command Create complex and type-safe commandline tools with build-in input validation, auto generated help, shell completions and more. JSR Total Weekly _Deno, Node, _Bun__
flags Parse command line arguments (used by the command module). JSR Total Weekly _Deno, Node, _Bun__
keycode Parser ansi key codes. JSR Total Weekly _Deno, Node, _Bun__
keypress Listen to keypress events with Promise, AsyncIterator and EventTarget APIs. JSR Total Weekly _Deno, Node, _Bun__
prompt Create simple and powerful interactive prompts. JSR Total Weekly _Deno, Node, _Bun__
table Create cli tables with border, padding, nested tables, etc... JSR Total Weekly _Deno, Node, _Bun__
testing Experimental helper functions for testing. JSR Total Weekly Deno

Contributing

Any kind of contribution is welcome! Please take a look at the contributing guidelines.

License

MIT

Extension points exported contracts — how you extend this code

StaticGenericPrompt (Interface)
(no doc) [7 implementers]
prompt/_generic_prompt.ts
KeyPressEventListenerObject (Interface)
(no doc) [3 implementers]
keypress/mod.ts
InputSettings (Interface)
Input prompt settings.
prompt/input.ts
ToggleSettings (Interface)
Toggle prompt settings.
prompt/toggle.ts
ListSettings (Interface)
List prompt settings.
prompt/list.ts
ConfirmSettings (Interface)
Confirm prompt settings.
prompt/confirm.ts
SecretSettings (Interface)
Secret prompt settings.
prompt/secret.ts
NumberSettings (Interface)
Number prompt settings.
prompt/number.ts

Core symbols most depended-on inside this repo

option
called by 377
command/command.ts
parse
called by 294
command/test/type/custom_test.ts
getCommand
called by 290
command/command.ts
command
called by 216
command/command.ts
parseFlags
called by 194
flags/flags.ts
log
called by 175
command/upgrade/logger.ts
action
called by 149
command/command.ts
from
called by 136
table/row.ts

Shape

Method 519
Function 284
Class 193
Interface 131
Enum 3

Languages

TypeScript100%

Modules by API surface

command/command.ts138 symbols
command/_errors.ts64 symbols
flags/_errors.ts60 symbols
table/table.ts36 symbols
prompt/checkbox.ts36 symbols
table/_layout.ts26 symbols
prompt/_generic_prompt.ts24 symbols
command/help/_help_generator.ts21 symbols
table/column.ts20 symbols
prompt/number.ts20 symbols
prompt/list.ts20 symbols
table/cell.ts19 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add cliffy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact