@doconda/sdk lets you create, edit and convert Word, PowerPoint, Excel and PDF files from TypeScript or JavaScript. It
calls the REST API for you, with types, retries and waiting built in. It runs on Node.js
20 or later, serverless functions included, and its only runtime dependency is zod.
Create your first document
1
Create an API key
In the dashboard, go to API keys and create one. The full key (
ak_eu_…) is shown only once. Export it:2
Install the SDK
3
Make the request
Create a file named
example.ts and add the following code:example.ts
memo.docx is now in your folder. A Word file comes with its PDF and one PNG preview per page. create waits until
the document finishes, even past the API’s 120 s limit for a direct answer; see
quality levels for how long each level takes.
Configure the client
Next steps
Create documents
From a sentence or your Markdown, in any format.
Edit a file
Upload a file and change only what you ask.
Handle errors
Error codes, retries and idempotency.
SDK reference
Every method and what it returns.