SDKs
Use a CalmLens SDK to upload content, read moderation results and manage assets from your application. Keep your API key on your server.
Choose your language
| Language | Guide | Testing |
|---|---|---|
| JavaScript and TypeScript | JavaScript SDK | Testing |
| Python | Python SDK | Testing |
| Go | Go SDK | Testing |
| Rust | Rust SDK | Testing |
| Ruby | Ruby SDK | Testing |
| Java | Java SDK | Testing |
| PHP | PHP SDK | Testing |
Make your first request
Follow the quick start to moderate a comment. General guides show examples in your chosen language and remember it.
For direct HTTP integrations, use the API reference. For offline tests, see testing moderation.
See complete apps
Examples shows example apps built with the SDKs, including the Calmgram live demo.
Versioning and support
SDK versions follow semantic versioning : a major version for breaking changes, a minor version for new features and a patch version for fixes. While an SDK's version is 0.x, a breaking change bumps the minor version instead, and the SDK's changelog lists it. The SDKs are released together under one version number, and the CLI shares the JavaScript SDK's version.
The SDKs track the public API, which is versioned in its path (/v1). Support for new endpoints, fields or options arrives in a minor release. Removing or renaming a method, type or option, or changing its signature, is a breaking change for that SDK, even while the API stays at /v1. A release check compares each SDK's public methods and types with its previous release and refuses a version bump too small for the change.
Earlier SDK versions call the same /v1 API and keep working with it. There is no fixed support window for earlier versions, and fixes and new features are released in the latest version only, so upgrade regularly.
Each SDK's changelog lists every release:
| SDK | Changelog |
|---|---|
| JavaScript and the CLI | javascript/CHANGELOG.md |
| Python | python/CHANGELOG.md |
| Go | go/CHANGELOG.md |
| Rust | rust/CHANGELOG.md |
| Ruby | ruby/CHANGELOG.md |
| PHP | php/CHANGELOG.md |
| Java | java/CHANGELOG.md |