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

@chamuka-labs/drawit-cli

v0.2.0

Published

CLI tool for validating, inspecting, and exporting DrawIt diagram files

Readme

@chamuka-labs/drawit-cli

npm version npm downloads Node.js 18+ License

A command-line tool for validating, inspecting, and exporting .drawit diagram files. Part of the Chamuka DrawIt ecosystem.

Installation

npm install -g @chamuka-labs/drawit-cli

Once installed, both drawit and chamuka-drawit are available as CLI commands.

Commands

drawit validate <file>

Parse and validate a .drawit file.

drawit validate my-diagram.drawit
drawit validate --strict my-diagram.drawit   # Full Zod schema validation
drawit validate --format json my-diagram.drawit

drawit inspect <file>

Show a structured summary of a .drawit file.

drawit inspect my-diagram.drawit
drawit inspect --elements my-diagram.drawit  # Include element ID listing
drawit inspect --format json my-diagram.drawit

drawit export <file>

Export to a different format.

drawit export my-diagram.drawit --format svg --output my-diagram.svg
drawit export my-diagram.drawit --format json --output my-diagram.json
drawit export my-diagram.drawit --format ndjson --output clean.drawit

drawit create <file>

Scaffold a new .drawit file.

drawit create new-diagram.drawit
drawit create new-diagram.drawit --template flowchart --name "My Flow" --width 1200 --height 800

drawit merge <file1> <file2> [...]

Combine multiple .drawit files into one.

drawit merge part1.drawit part2.drawit --output combined.drawit
drawit merge *.drawit --layout vertical --gap 80 --output combined.drawit

drawit map

Generate a dependency map diagram from a codebase.

drawit map --output dependencies.drawit
drawit map --root ./src --output map.drawit

drawit schema

Show or validate against the DrawIt JSON schema.

drawit schema
drawit schema --validate my-diagram.drawit

drawit deps

Analyze and visualize package dependencies.

drawit deps --output deps.drawit

drawit flow

Generate a control-flow diagram from source code.

drawit flow src/index.ts --output flow.drawit

drawit routes

Generate a routes diagram from a Next.js or Express app.

drawit routes --output routes.drawit

Global Options

  • --format text|json — Output format for text commands (default: text)
  • --stdin — Read diagram from stdin instead of a file
  • --output <path> / -o <path> — Write output to a file

Pipe-Friendly

cat diagram.drawit | drawit validate --stdin
cat diagram.drawit | drawit export --stdin --format svg > output.svg
drawit validate diagram.drawit && drawit export diagram.drawit --format svg -o out.svg

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success / valid | | 1 | Errors found / invalid file |

Supported File Formats

The CLI handles both .drawit file formats:

  • NDJSON — one JSON object per line (generated by the CLI and Claude Code skill)
  • JSON — pretty-printed multi-line JSON with elements array (generated by the web app)

Requirements

Node.js 18 or later.

Related

License

Proprietary — © 2026 Chamuka Inc. All rights reserved. Unauthorized copying, distribution, or modification is strictly prohibited. For licensing inquiries contact [email protected].