// sdk · TypeScript
TypeScript SDK for the AstroWay API
Official `@astroway/sdk` — thin wrapper over `openapi-fetch` (~6 KB runtime). Path autocomplete + request/response types in your IDE for all {endpoints}+ endpoints. Stainless-style error hierarchy, built-in retry on 408/409/429/5xx, OIDC + SLSA L3 provenance.
// 01 / install
Install
npm install @astroway/sdk import: import { Astroway } from '@astroway/sdk';
View on registry → @astroway/sdk
// 02 / highlights
Highlights
- Full TypeScript types
- OpenAPI 3.1 generated
- Built-in retry + backoff
- Stainless-style errors
- OIDC + SLSA L3
// 03 / first request
Make your first request
import { Astroway } from '@astroway/sdk';
const aw = new Astroway({ apiKey: process.env.ASTROWAY_API_KEY! });
const { data: chart } = await aw.client.POST('/chart', {
body: {
date: '1990-07-14',
time: '14:30:00',
timezoneOffset: 3,
latitude: 50.4501,
longitude: 30.5234,
houseSystem: 'P',
},
});
console.log(chart.angles.asc); Start building with TypeScript
10,000 credits free per month. Open-source SDK, generated from OpenAPI 3.1, always in sync with the backend.