This guide will help you get started with contributing to the Opik TypeScript SDK.
Before you start, please review our general Contribution Overview and the Contributor License Agreement (CLA).
The TypeScript SDK is located in the sdks/typescript directory. Here’s an overview of the key files and directories:
src/: Contains the main source codetests/: Contains test filesexamples/: Contains example usage of the SDKpackage.json: Project dependencies and scriptstsconfig.json: TypeScript configurationtsup.config.ts: Build configurationvitest.config.ts: Test configurationTo develop and test TypeScript SDK features, you’ll need a local Opik instance running:
Note: The --port-mapping flag exposes all service ports (including MySQL on 3306, ClickHouse on 8123, Redis on 6379) which is useful for debugging. The TypeScript SDK routes traffic through the API gateway (nginx) in the frontend service.
Your local Opik server will be accessible at http://localhost:5173.
We use Vitest for testing. Tests are located in the tests/ directory. When adding new features:
The SDK is built using tsup. To build:
This will create the distribution files in the dist/ directory.
When adding new features or making changes:
We use ESLint for code style enforcement. The configuration is in eslint.config.js. Before submitting a PR:
Your PR should:
If you need help or have questions:
Remember to review our Contributor License Agreement (CLA) before contributing.