Concepts
Client & Adaptors
The Client is how you interact with the API, through an Adaptor.
Client
A Client is used to connect to a specific Project by using an API Key.
Clients are created using the TriggerClient
class.
View the Client API Reference for more information.
Adaptors
Adaptors allows Clients to receive data from the Trigger API. They do this by creating an API endpoint that data can be received at and transforming data into the expected format.
Each platform has one or more adaptors, see the guides below:
Platform | Adaptor |
---|---|
Next.js | createPagesRoute() |
Next.js | createAppRoute() |
NestJS | TriggerDevModule |
Astro | createAstroRoute() |
Remix | createRemixRoute() |
Sveltekit | createSvelteRoute() |
Express | Coming soon |
Was this page helpful?