@runonatlas/core is our JavaScript/TypeScript library for Atlas, which provides the base client for direct integration with Atlas services.
This guide is for direct JavaScript/TypeScript integration. If you’re using one of our supported frameworks, we recommend using their dedicated SDKs instead:
The feature registration is used to ensure that the feature is registered in Atlas. If the feature is not registered, it will be registered automatically and an alert will be sent to the administrators.
When initializing the Atlas client, you can configure a limit callback for a feature. This callback will be called when a limit-based feature is checked. The callback should return the number of usages for the feature.For example:
src/atlas/client.ts
Copy
import { AtlasClient } from "@runonatlas/core";const atlas = new AtlasClient({ limits: { "data-explorer": async () => { // Return the number of usages for the data-explorer feature return 5; }, },});