Skip to content

Your network, written down.

1Device file One TypeScript file for each router or switch. Your editor checks every name as you type.2Check A rule about your network that every change must pass, run on all devices together.3Plan Every command that would be sent, in the device's own language, before anything is sent.4Apply Sends the plan only once you say yes, the safest way the device allows.5Live read Circuit reads what the device runs now, every time, so a plan is never out of date.6Git history Every change, with its author and its reason, in your own repository.
How a change travels. An engineer writes a device file, and a teammate reads the plan it makes. Apply sends it, and the network drawing shows the changed device. Circuit reads the device again to check it, and the git history records the change.
  1. Device file
  2. Check
  3. Plan
  4. Apply
  5. Live read
  6. Git history

Before anything reaches a device, Circuit shows you exactly what would change.

Get started

Why

A network configured by hand drifts. Someone adds a VLAN during an outage, someone else tests a firewall rule and forgets it, and a year later nobody knows why a port is on. The device is the only record, and it does not say who changed what, or why.

With Circuit the record is the file. Whatever the file leaves out does not stay on the device:

Not in the fileOn the device
A portis shut down
A useris removed
A serviceis off

And git keeps every change with its author and its reason.

How

  1. Change the file. VLANs, ports, addresses, routing, firewall: the same words for every vendor. Your editor checks every name as you type.

    edge-b1.ts
  2. Check it. Circuit catches what a device cannot do, and any rule of your own that the change breaks.

    circuit validate
  3. Read the plan. Circuit reads what the device runs now, and shows every command that would be sent, in the vendor's own language.

    circuit apply edge-b1
  4. Say yes. Circuit applies the change the safest way the device allows, and keeps it only once it can still log in afterwards.

    Send these changes to edge-b1? Yes
Install Circuit

Where to begin

Pick the example closest to your network. Each one is a whole project: copy it, and change it to your own.

  1. A single site

    A home, an office, or an internal network. A router and a switch, no BGP.

    • circuit.ts
    • lib/checks.ts
    • sites/home/router.ts
    • sites/home/site.ts
    • sites/home/switch.ts
  2. An edge router

    Your own AS number, with an IP transit and an internet exchange.

    • circuit.ts
    • lib/checks.ts
    • sites/pop-1/edge-01.ts
  3. Colocation with tenants

    Customers who each get their own VLANs, addresses, and ports.

    • circuit.ts
    • lib/checks.ts
    • sites/dc-1/edge-01.ts
    • sites/dc-1/site.ts
    • sites/dc-1/tor-01.ts
    • tenants/index.ts
    • tenants/netflix.ts
  4. An internet exchange

    Two fabric switches, one peering LAN, and a file per member.

    • circuit.ts
    • lib/checks.ts
    • members/cloudflare.ts
    • members/google.ts
    • members/index.ts
    • sites/ix-1/ix-sw-01.ts
    • sites/ix-1/ix-sw-02.ts
    • sites/ix-1/site.ts

The whole network, drawn

circuit studio draws the network and lists everything in your files, so the whole team can look things up, including people who do not read TypeScript. It reads only the files, and logs in to a device only when you ask it to read one.

Circuit Studio
Circuit Studio's graph of an example network, beside the layer's details.

New to networking?

Circuit Academy starts from nothing and gets you to running a provider network, with something to try in your browser in every lesson.

  1. Beginner: How networks talk

    For anyone who has never studied networking. Every word is explained when you first meet it.

    • What is a network?
    • Cables, light, and radio
    • Messages in pieces
    • Addresses
    • and 7 more
  2. Elementary: Build a small network

    For readers who finished Beginner. You build a home or office network, and write it down in Circuit.

    • Layers
    • Writing a network down
    • VLANs
    • Trunks
    • and 5 more
  3. Intermediate: Routing and the internet

    For readers who can build a site. You learn how networks reach each other, up to running your own edge router.

    • Routing tables
    • IPv6
    • Routers that talk: OSPF
    • Networks of networks
    • and 5 more
  4. Professional: Running a provider network

    For readers who can run an edge router. You learn what providers sell, their hardware, routing at scale, routing security, and running a network day to day.

    • Reaching the customer
    • What an ISP sells
    • Carrying your own traffic
    • Who runs the internet
    • and 10 more

Certification is coming. You will be given a network to build in Circuit, and once it passes review, you are listed among the graduates. How it will work

Take the first lesson

What it runs on

Tested on production devices before release
PlatformTested on
MikroTik RouterOS 7CCR2216-1G-12XS-2XQRB5009UG+S+
Huawei VRPCE6855-48S6Q-HI
Raisecom ROSRAX721-C-6C48
Juniper JunosQFX5100-48S-6Q
Fortinet FortiOSFG-3700D

In production at

Running Circuit in production? Tell us, and your logo goes here too.

Write down your first device.

One command installs Circuit. Then circuit new writes your first project.

Run it in a terminal. Or read what Circuit is first, and how a project starts.

Released under the Business Source License 1.1.