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.6

Published

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

Readme

@typecad/cuttlefish

TypeScript → C++ transpiler for embedded firmware. Targets native (desktop), Arduino, and bare-metal MCU builds 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 arduino:avr:uno --framework arduino

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 board-add | Add a new board package via the board-codegen scaffolder. | | cuttlefish preview | Launch the browser preview server for a UI project. | | cuttlefish map-error <mapFile> | Map a C++ compiler error back to its TypeScript source location. | | cuttlefish gen-decls | Generate type declaration stubs. | | cuttlefish gen-libdefs <input.ts> | Generate library definition stubs for third-party imports. |

Flags (for build)

  • --compile — transpile, then compile via the active framework's toolchain (arduino-cli for Arduino, g++ for native).
  • --upload — flash firmware to the board (implies --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 --fqbn and --board supply board and build settings.

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

const config: CuttlefishConfig = {
  entry: './src/main.ts',
  target: 'esp32',
  mcu: '@typecad/mcu-esp32',
  board: '@typecad/board-esp32-devkit',
  framework: '@typecad/framework-arduino',
};

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-arduino — Arduino framework code-gen strategy.
  • @typecad/framework-native — native desktop C++ code-gen strategy.
  • @typecad/mcu-* and @typecad/board-* — silicon- and board-level pin/peripheral definitions.

License

MIT