Typed SDK
Five lines to a clean document.
Point the client at a URL and stream structured Markdown straight into your splitter. Retries, render-wait and rate limits are handled for you.
import { Distil } from "@distil/sdk";
const distil = new Distil(process.env.DISTIL_KEY);
const doc = await distil.extract({
url: "https://example.com/docs",
format: "markdown",
render: "auto", // wait for JS only if needed
});
index.add(doc.markdown); // straight into your vector store