{
	"title": "@c15t/node-sdk: Type-Safe Node.js API Client",
	"description": "A fully typed, flexible Node.js SDK for seamless interaction with the c15t consent management platform API.",
	"features": [
		"Type-safe API client with full TypeScript support",
		"Flexible client configuration with authentication and custom headers",
		"Supports dynamic base URL and API prefix configuration",
		"Built on top of @orpc/client for robust API interactions",
		"Easy integration with Node.js applications",
		"Comprehensive error handling and URL validation"
	],
	"prerequisites": [
		"Node.js 18.17.0 or later",
		"A Hosted [c15t instance](https://inth.com) (free sign-up) or [self-hosted deployment](https://c15t.com/docs/self-host/v2)"
	],
	"manualInstallation": ["", "```bash\npnpm add @c15t/node-sdk\n```"],
	"usage": [
		"Import `c15tClient` from `@c15t/node-sdk`",
		"Configure with a base URL and token, or set `C15T_API_URL` and `C15T_API_TOKEN` so the client picks them up automatically",
		"Call API methods on `client.meta`, `client.subjects`, etc. — every method is fully typed",

		"```ts\n// server.ts\nimport { c15tClient } from '@c15t/node-sdk'\n\n// Auto-configure from C15T_API_URL + C15T_API_TOKEN env vars\nconst client = c15tClient()\n\n// Or pass options explicitly\n// const client = c15tClient({\n//   baseUrl: process.env.C15T_API_URL!,\n//   token: process.env.C15T_API_TOKEN!,\n// })\n\ntry {\n  const status = await client.meta.status()\n  console.log('c15t API status:', status)\n\n  const subject = await client.subjects.create({\n    type: 'cookie_banner',\n    subjectId: 'sub_123',\n    domain: 'example.com',\n    preferences: { analytics: true },\n    givenAt: Date.now(),\n  })\n  console.log('Created subject', subject.id)\n} catch (error) {\n  console.error('c15t request failed:', error)\n}\n```"
	],
	"showCLIGeneration": false
}
