2022-08-02 13:43:49 +10:00
2022-08-02 13:11:44 +10:00
2022-08-02 03:12:38 +00:00
2022-08-01 20:06:14 +10:00
2022-08-01 14:27:11 +10:00
2022-08-01 14:27:11 +10:00
2022-08-01 20:06:14 +10:00
2022-08-01 14:27:11 +10:00
2022-08-01 14:27:11 +10:00
2022-08-01 14:27:11 +10:00
2022-08-02 12:53:40 +10:00
2022-08-01 14:27:11 +10:00
2022-08-01 20:06:14 +10:00
2022-08-01 14:27:11 +10:00
2022-08-01 20:06:14 +10:00
2022-08-01 20:06:14 +10:00

image

KittyCAD JS/TS API library

Socials:: - blogtwitterlinkedininstagramyoutubediscord

WIP, docs will be added to kittycad.io/docs soon

Install

npm install @kittycad/lib
# or
yarn add @kittycad/lib

## set your token
export KITTYCAD_TOKEN=<your token>

Basic example

import { file } from '@kittycad/lib';
import type { Models } from '@kittycad/lib';
import fsp from 'fs/promises';

async function main() {
    const { status, mass } = (await file.create_file_mass({
        src_format: 'obj',
        material_density: '0.007',
        body: await fsp.readFile('./example.obj', 'base64'),
    })) as Models['FileMass_type'];

    console.log(status, mass);
}

main();
Description
The TypeScript API client for Zoo.
Readme MIT 2.3 MiB
Languages
TypeScript 99.3%
Go 0.2%
Nix 0.2%
JavaScript 0.2%
Shell 0.1%