TemplatesTeams shipping a library or SDK

SDK documentation template

Installation, a quickstart that runs, configuration and a reference for every method, so developers stay in their editor instead of your source code.

14-day Pro trial, no card. Your content stays in Git.

What’s inside

6 files: typemark.json and these pages.

Documentation

Get started

  • Introduction
  • Installation
  • Quickstart

Use it

  • Configuration

Reference

  • AcmeClient

A page from it: quickstart.mdx

MDX, as it sits in your repository. You edit it in the visual editor or as source.

---
title: Quickstart
description: Create a client and list your first ten orders with the Acme SDK.
---

<Steps>
  <Step title="Set your API key">
    ```bash
    export ACME_API_KEY=test_your_key_here
    ```
  </Step>
  <Step title="Create a client and make a call">
    ```javascript
    import { AcmeClient } from '@acme/sdk'

    const client = new AcmeClient({ apiKey: process.env.ACME_API_KEY })

    for await (const order of client.orders.list({ limit: 10 })) {
      console.log(order.id, order.status)
    }
    ```
  </Step>
  <Step title="Run it">
    ```bash
    node quickstart.mjs
    ```

    ```text
    ord_1N4h2k paid
    ord_1N4h2j open
    ```
  </Step>
</Steps>

`list` pages through results for you, so the loop gets every order, not only the first page.

14-day Pro trial, no card. Your content stays in Git.