Surfside Software

CAD drawings in TypeScript. Electrical calculations for buildings.

tsdraft is free on npm today. Forewit's calculations run in a public demo and over MCP, and its library is next. Paid hosted versions of both are planned.

tsdraft

Write 2D CAD drawings in TypeScript. Every size can come from a variable, and a change to a drawing is a diff you can review. Export DXF for CAD programs, or SVG and PDF.

import { createDrawing, toDXF } from 'tsdraft'

const wall = { width: 132, height: 108, thickness: 8, stucco: 0.75 }
const counter = { height: 36, depth: 30, thickness: 1.5, overhang: 1.5 }
const run = [
  { kind: 'refrigerator', width: 24 },
  { kind: 'filler', width: 3 },
  { kind: 'grill', width: 36 },
  { kind: 'filler', width: 3 },
  { kind: 'sink', width: 30 },
]
// ...

const d = createDrawing({ units: 'in' })
d.layer('A-WALL', {}, () => {
  d.rect([0, 0], wall.width, wall.height)
})
d.layer('A-FLOR-CASE', {}, () => {
  for (const c of cabinets) {
    const faceTop = c.kind === 'grill' ? panel.bottom : under
    d.rect([c.x, toeKick.height], c.width, faceTop - toeKick.height)
  }
})
// ...

const drawing = d.build()
writeFileSync('outdoor-kitchen.dxf', toDXF(drawing))
An outdoor kitchen elevation and a section through the grill, with dimension strings and notes, drawn by tsdraft at 3/8 inch to the foot.
What examples/outdoor-kitchen.ts draws. Open full size
Free library MIT, on npm
Writes DXF R2018, the newest published version, and reads DXF files to inspect them. Plots sheets to PDF. The CLI has a live preview that redraws on save.
Paid hosting Planned
An API that reads, writes and edits DWG, the leading CAD app's own format.

Forewit

Panel schedules, riser diagrams, voltage drop, available fault current and NEC Article 220 loads. Try them in the demo, or connect your agent over MCP. Voltage drop, fault current and load results stay flagged until their table values are checked against the code book.

A 42-space panel schedule for a fictional workshop's main distribution panel, with each circuit's load, breaker, conductors and voltage drop, the panel's calculated load, and its available fault current with interrupting-rating checks.
A panel schedule from the demo, for a fictional workshop. The notes at the bottom name each table value not yet checked against the code book. Open full size
Demo and MCP Live
Every calculation above runs in the public demo. Agents connect over MCP, with no token.
Free library Planned
The engine as an npm package and a CLI. Give it a project and it will write every schedule, diagram and report as a file, on your machine or in CI. Source-available under O'Saasy: any use except a competing hosted service.
Paid hosting Planned
The same engine as an API, plus the web app for your own projects. The demo and the MCP server stay free.

Forewit roadmap

Panel schedules and riser diagrams are available in the Forewit demo. Voltage drop, fault current and load calculations are in the demo too, and stay in progress until their table data is checked against the code book. We're planning the remaining tools across all three MEP disciplines.

Electrical

  • Panel schedules Done
  • Riser diagrams Done
  • Voltage drop calculations In progress Awaiting book check
  • Fault current calculations In progress Awaiting book check
  • Electrical load calculations In progress Non-dwelling. Dwelling methods to follow. Awaiting book check.

Plumbing

  • Water supply & sanitary calculations
  • Fuel gas calculations
  • Propane tank sizing Including vaporization
  • Plumbing isometrics

Mechanical

  • Duct sizing Supply, return, outdoor/fresh air, and exhaust
  • Heating & cooling load calculations and compliance

Forewit calculates. tsdraft draws. Planned

Forewit will write its schedules, risers and fault-current tables as tsdraft drawings, so they land in your sheets as CAD you can edit, not as pasted images. Export DXF from tsdraft's free library, or DWG through its paid API.

Also in development

Second Set

A desktop workbench for engineering drawing review. Inspect source evidence, correct findings, recheck revisions, and export a review report. Built during the Meta AI Developer Hackathon sprint.

Get hosted access first

Join the waitlist for tsdraft's paid DWG API and paid hosted Forewit. We'll email you when each one opens. The Forewit demo is free to try now.

Your email stays private. To leave the list, email contact@surfside-software.com.