Official Misar.Dev SDK for TypeScript / JavaScript — build, deploy, and manage apps via api.misar.io/dev.
The official Misar.Dev client SDK for TypeScript and JavaScript. This is the reference SDK and exposes the full Misar.Dev API surface. It ships with complete type definitions and runs on any runtime with native fetch (Node.js ≥18, Bun, Deno, edge runtimes).
Installation
npm install @misar/devpnpm add @misar/dev
Quick start
import { MisarDevClient } from "@misar/dev";const client = new MisarDevClient(process.env.MISARDEV_API_KEY!);const { project } = await client.projects.create({ name: "my-app" });console.log(project.id);
Configuration
The constructor takes the API key as the first argument and an optional options object:
Failed requests throw a MisarDevError (with a numeric status and errorType). Transport-level failures throw a MisarDevNetworkError, which extends MisarDevError.