Nove SDK (JavaScript and TypeScript)
The official Nove API SDK for JavaScript and TypeScript: pregnancy weeks, due date, search and baby essentials, with pagination, rate limits, idempotency and OAuth handled for you.
Install
npm i nove-careNo dependencies: Node 18+, Deno, Bun, Cloudflare Workers and the browser. TypeScript types included.
Use
import { Nove } from 'nove-care';
const nove = new Nove(); // new Nove({ sandbox: true }) para testar
const semana = await nove.semana(20); // { week, fruit, cm, g, baby, body, tips, ask, exams, url }
const dpp = await nove.dpp({ dum: '2026-09-01' });
const achados = await nove.buscar('enjoo');
for await (const s of nove.todasSemanas()) console.log(s.week, s.fruit); // segue o next_cursor
const lista = await nove.enxoval({ due_date: '2027-06-08', city: 'Curitiba' }); // job 202 + espera
Method names follow the API's Portuguese paths (semana is week, todasSemanas is all weeks, buscar is search, enxoval is baby essentials), and the content comes back in Brazilian Portuguese.
What the SDK handles for you
- Errors become
NoveErrorwithstatus, a stablecodeanddetail. - 429s and network failures: it retries, respecting
Retry-After. The latest limits are innove.rateLimit. enxoval()sendsIdempotency-Keyand polls the job until it's done.- OAuth:
const c = await Nove.register('meu agente')andnew Nove({ clientId: c.client_id, clientSecret: c.client_secret })(600 requests/min).
Package: nove-care on npm. Code (MIT): github.com/wevemedeiros/nove-sdk.