This is a Next.js project bootstrapped with v0.
This repository is linked to a v0 project. You can continue developing by visiting the link below -- start new chats to make changes, and v0 will push commits directly to this repo. Every merge to main will automatically deploy.
First, run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
Sally3D has two CAD generation paths:
POST /api/cad/generatereturns a synchronous JSCAD result for the current chat UI.POST /api/cad/workflowstarts a durable Vercel Workflow run and returns arunId.GET /api/cad/workflow?runId=...checks workflow status and returns the completed STL download links.
The Workflow integration follows the Vercel Workflow / Workflow SDK docs from the Builder's Night resources:
- Vercel Workflow
- Workflow SDK Next.js guide
- Starting Workflows
- Building durable AI agents
- Workflow SDK repo
- Workflow examples
Example request:
curl -X POST http://localhost:3000/api/cad/workflow \
-H 'content-type: application/json' \
--data '{
"innerDimensions": { "length": 80, "width": 50, "height": 24 },
"wallThickness": 2,
"cornerRadius": 2,
"lidType": "snap",
"lidOverlap": 2,
"mountingHoles": [],
"standoffHeight": 4,
"portCutouts": [],
"ventilation": { "type": "slots", "area": "top", "density": "low" },
"printOrientation": "lid-up",
"supportRequired": false
}'To learn more, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- v0 Documentation - learn about v0 and how to use it.