Installation
Install officeLLM in your TypeScript or JavaScript project.Package Installation
Peer Dependencies
officeLLM requires the following peer dependencies:- zod:
^4.0.0- For type validation and schemas - Node.js:
>=18.0.0- For ES modules support
Provider SDKs (Optional)
To use real LLM providers instead of mock implementations, install the relevant SDKs:The mock implementations work out of the box for testing and development. Real provider integrations require API keys and the corresponding SDKs.
TypeScript Setup
officeLLM is built with TypeScript and provides full type safety. Ensure yourtsconfig.json includes:
Environment Setup
Create a.env file in your project root: