@toolpath/api
v0.2.3
Published
TypeScript bindings and upload helper for the Toolpath Engine API
Readme
Toolpath TypeScript SDK
@toolpath/api provides TypeScript bindings and an upload helper for the Toolpath Engine API.
Install
npm install @toolpath/apiCreate an API key in the Toolpath portal, then create a client:
import { createToolpathClient, uploadToPresignedUrl } from '@toolpath/api'
const client = createToolpathClient({ apiKey: process.env.TOOLPATH_API_KEY! })
const part = await client.parts.createPart({ filename: 'bracket.step' })
await uploadToPresignedUrl(part.uploadUrl, stepFileBytes)
const analysis = await client.parts.updatePart({ id: part.partId })The SDK exports generated request, response, and API types from the Toolpath OpenAPI contract. See the TypeScript example and API documentation for a complete analysis flow.
License
MIT
