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

@typecad/cuttlefish

v1.0.0-alpha.16

Published

TypeScript to C++ transpiler — native, Arduino, and bare-metal targets

Readme

@typecad/cuttlefish

TypeScript → C++ transpiler for embedded firmware. Targets native (desktop) and Zephyr-supported embedded boards from a single TypeScript codebase.

cuttlefish is the command-line tool at the center of the TypeCAD toolchain: it loads cuttlefish.config.ts, transpiles TypeScript firmware to C++, and can chain compile, upload, and serial-monitor steps.

Quick start

From a project root containing cuttlefish.config.ts:

npx @typecad/cuttlefish build
npx @typecad/cuttlefish build --compile --upload --port COM4
npx @typecad/cuttlefish build --compile --upload --monitor --port COM4 --baud 115200

Scaffold a starter project with the built-in wizard:

npx @typecad/cuttlefish create --board esp32s3

Commands

| Command | Description | | --- | --- | | cuttlefish build | Transpile the entry file (default). Accepts --compile, --upload, --monitor, --port, --baud. | | cuttlefish create | Generate a starter project and cuttlefish.config.ts. | | cuttlefish preview | Launch the browser preview server for a UI project. | | cuttlefish gen-decls <file.h\|file.cpp\|--all <dir>> | Generate .d.ts declaration stubs from C++ headers. | | cuttlefish doctor | Check the active framework's environment (e.g. toolchain + board support). | | cuttlefish licenses [--all] [--strict] | Scan this project's libraries for SPDX licenses. | | cuttlefish board sync [zephyr-base] | Rebuild the local board catalog from your Zephyr tree's board DTS files. The catalog is machine-local — there is no compiled-in board database; builds create and refresh it automatically, this command forces a rebuild. | | cuttlefish board regen | Regenerate the project-local board module (.cuttlefish/board.ts + board.json). Builds also regenerate it automatically whenever any input changes (config board, catalog, or Zephyr tree). | | cuttlefish library <search\|install\|init\|validate> | The cuttlefish library package manager (npm keywords are the catalog). |

Flags (for build)

  • --compile — transpile, then compile via the active framework's toolchain (west for Zephyr, g++ for native).
  • --upload — flash firmware to the board (requires --compile).
  • --monitor — open a serial monitor after upload.
  • --port <port> — serial port for upload/monitor (e.g. COM4, /dev/ttyUSB0).
  • --baud <rate> — serial monitor baud rate.

Configuration

The CLI reads cuttlefish.config.ts from the current working directory and treats it as the source of truth. When no config file is present, command-line flags such as --board and --build-target supply board and build settings.

import type { CuttlefishConfig } from '@typecad/cuttlefish/api';

const config: CuttlefishConfig = {
  entry: './src/main.ts',
  board: 'xiao_ble/nrf52840',
  framework: '@typecad/framework-zephyr',
};

export default config;

Ecosystem

@typecad/cuttlefish is the transpiler core. It pairs with sibling packages:

  • @typecad/hal — hardware abstraction (GPIO, I2C, SPI, UART) as regular TypeScript.
  • @typecad/ui — HTML/CSS-driven graphics for microcontroller displays.
  • @typecad/expect — hardware test framework (vitest-style assertions over serial).
  • @typecad/framework-zephyr — Zephyr RTOS framework (build, flashing, and the bundled Zephyr toolchain installer).

Built in, no separate package: the native desktop target (framework: '@typecad/framework-native' resolves inside cuttlefish) and the safety engine (verified GPIO reads, ISO 26262 analysis — author via @typecad/cuttlefish/safety).

License

MIT