Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

freerouting

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freerouting

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

  • 0.0.7
  • npm
  • Socket score

Version published
Weekly downloads
84
decreased by-84.84%
Maintainers
0
Weekly downloads
 
Created
Source

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

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
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!

FAQs

Package last updated on 18 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc