npm install @promptlm/client@0.1.0
CLIENTS / TYPESCRIPT SDK
TypeScript SDK
The TypeScript SDK loads promptLM JSON prompt bundles. It’s published
as @promptlm/client and maintained in
promptLM/promptlm-clients
under client-sdk-ts/.
|
Note
|
The TypeScript SDK is work in progress for the 0.1.0 release. Track status in the promptLM/promptlm-clients repository. |
Install
The package ships ESM (./dist/index.js) and CJS (./dist/index.cjs)
builds plus type declarations.
Runtime contract
The SDK consumes the same JSON bundle the
Java SDK does: prompts/prompt-index.json plus the
per-prompt files it references. See
Runtime bundles for how that
bundle is produced.
For current API shape and usage examples, refer to the SDK’s source README at https://github.com/promptLM/promptlm-clients/tree/main/client-sdk-ts.