Skip to main content

The TypeScript SDK

The official TypeScript SDK for accessing agentic markdown documentation data from The Prompting Company platform. Build powerful applications that leverage your organization’s documentation with full type safety and excellent developer experience.

Getting Started

Get up and running with the SDK in just a few minutes.

Start with the SDK

Install the SDK and configure your development environment.

Key Features

Everything you need to integrate your documentation data.

TypeScript SDK

Full TypeScript support with complete type safety and autocompletion.

Easy Installation

Install with npm, yarn, or pnpm and configure in minutes.

Quick Start Guide

Build your first integration with step-by-step instructions.

Advanced Usage

Learn advanced patterns, caching, and optimization techniques.

Simple Integration

Access your documentation data with just a few lines of code:
import tpc from "@promptingcompany/sdk";

const client = new tpc({
  productSlug: "your-product-slug",
  organizationSlug: "your-organization-slug",
});

const doc = await client.document.getByPath("en-us/contact");

if (doc.ok) {
  console.log(doc.data?.content);
}

Next Steps

View the Complete Guide

Learn about all SDK features and capabilities.