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 🙏

© 2024 – Pkg Stats / Ryan Hefner

freerouting

v0.0.15

Published

A CLI tool for interacting with the freerouting API, maintained by [tscircuit](https://github.com/tscircuit/tscircuit).

Downloads

497

Readme

freerouting API CLI

A CLI tool for interacting with the freerouting API, maintained by tscircuit.

npm install -g freerouting

Initial Setup

Before using the CLI, you need to configure your profile ID. The easiest way is to generate a new one:

freerouting config create-profile

Alternatively, you can set a specific UUID as your profile ID:

freerouting config set-profile <uuid>

You can also optionally set a custom API base URL (defaults to https://api.freerouting.app):

freerouting config set-api-url <api-url>

Usage

The CLI follows a typical workflow for PCB autorouting:

  1. Create a session
  2. Create a job within that session
  3. Upload your design file
  4. Start the routing job
  5. Retrieve the output

Basic Workflow Example

# Create a new session
freerouting session create

# Create a new job in the session
freerouting job create --name "my-board"

# Upload your DSN file
freerouting job upload --file my-board.dsn

# Start the routing process
freerouting job start

# Get the routed output (saves to the same filename by default)
freerouting job output

Starting a Local Freerouting Server

Want to run freerouting locally?

freerouting server start

This will pull the latest docker image, start a local server on port 37864, then configure your api url to http://localhost:37864. To reset your api url just do freerouting config reset

Available Commands

Session Management

  • session create - Create a new routing session
  • session list - List all your sessions
  • session get [sessionId] - Get details of a specific session

Job Management

  • job create - Create a new routing job
    • Options:
      • -s, --session-id <sessionId> - Session ID (uses last session by default)
      • -n, --name <name> - Job name (default: "untitled")
      • -p, --priority <priority> - Job priority (default: "NORMAL")
  • job list <sessionId> - List all jobs in a session
  • job get <jobId> - Get details of a specific job
  • job upload - Upload a design file
    • Required: -f, --file <file> - Path to your DSN file
    • Optional: -j, --job-id <jobId> - Job ID (uses last job by default)
  • job start [jobId] - Start the routing process
  • job output [jobId] - Get the routed output
    • Optional: -o, --output <file> - Custom output file path
  • job logs [jobId] - Get job logs
    • Optional: -t, --timestamp <timestamp> - Get logs from specific timestamp

System Commands

  • system status - Check the API system status

Configuration

  • config set-profile <profileId> - Set your profile ID
  • config set-api-url <apiBaseUrl> - Set custom API base URL

Acknowledgements

  • Andras Fuchs is an incredible maintainer and none of this would have been possible without his work on the freerouting api. THANK YOU ANDRAS!
  • Freerouting is the defacto open-source pcb routing tool. Thank you to everyone who has contributed!

We are not affiliated with the freerouting project beyond sponsoring it! If the freerouting project wants us to give the npm handle for a more official cli just reach out to @seveibar!