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

@sctg/tracespace-cli

v5.1.6

Published

Render a PCB as SVGs from the command line

Readme

tracespace cli

latest david

Render PCBs as SVGs from the comfort of your own terminal

The tracespace CLI provides a wrapper for @sctg/gerber-to-svg and @sctg/pcb-stackup so you can generate beautiful, precise SVG renders of printed circuit boards quickly and easily.

Part of the tracespace collection of PCB visualization tools.

install

npm install -g @sctg/tracespace-cli

usage

tracespace [options] <files...>

You can also use npx to run without installing globally

npx @sctg/tracespace-cli [options] <files...>

options

All options can be specified using a config file (.tracespacerc, .tracespacerc.json, tracespace.config.js, etc.) or a "tracespace" key in package.json. Config will be loaded from the current working directory. See cosmiconfig for additional acceptable config file names and formats.

-h, --help

  • Type: boolean
  • Description: prints version and usage then exits
# Print usage
tracespace --help

-v, --version

  • Type: boolean
  • Description: prints version then exits
# Print version
tracespace --version

-o, --out, config.out

  • Type: string
  • Default: .
  • Description: Output directory (or - for stdout)
# Write SVGs into directory `./renders`
tracespace --out=renders

-B, --noBoard, config.noBoard

  • Type: boolean
  • Default: false
  • Description: Skip rendering PCB top and bottom
# Output only the individual layer renders
tracespace -B

-L, --noLayer, config.noLayer

  • Type: boolean
  • Default: false
  • Description: Skip rendering individual Gerber and drill layers
# Output only the top and bottom PCB renders
tracespace -L

-f, --force, config.force

  • Type: boolean
  • Default: false
  • Description: Attempt to render files even if they're unrecognized
# Attempt render even if whats-that-gerber cannot identify
tracespace -B --force some-file.xyz

-g, --gerber, config.gerber

  • Type: object
  • Default: {}
  • Description: Options for all gerber files (passed to @sctg/gerber-to-svg)
# Set the color attribute of all Gerber SVGs
tracespace -B -g.attributes.color=blue

-d, --drill, config.drill

  • Type: object
  • Default: {}
  • Description: Options for all drill files (passed to @sctg/gerber-to-svg)
# Set the color attribute of all drill SVGs
tracespace -B -d.attributes.color=red

-b, --board, config.board

  • Type: object
  • Default: {}
  • Description: Options for PCB renders (passed to pcb-stackup)
# Set the soldermask color of the board renders
tracespace -b.color.sm="rgba(128,00,00,0.75)"

-l, --layer, config.layer

  • Type: object
  • Default: {}
  • Description: Override the layers options of a given file

If you're using this option a lot, you may want to consider using a config file

# Set layer type of `arduino-uno.drd` to `drill` and parse as a drill file
tracespace -l.arduino-uno.drd.type=drill -l.arduino-uno.drd.options.filetype=drill

-q, --quiet, config.quiet

  • Type: boolean
  • Default: false
  • Description: Suppress informational output (info logs to stderr)
# Do not print info to stderr
tracespace --quiet