SDK
SDK Enfyra SDKs connect a third-party application to Enfyra through the single URL exposed by your Enfyra instance. Choose the package for your framework, configure that URL once, and use the SDK directly. These guides are for applications that you build and deploy separately. To
SDK
Enfyra SDKs connect a third-party application to Enfyra through the single URL exposed by your Enfyra instance. Choose the package for your framework, configure that URL once, and use the SDK directly.
These guides are for applications that you build and deploy separately. To build an extension inside Enfyra Admin, use the App documentation.
Packages
| Package | Use it for | Guide | npm |
|---|---|---|---|
@enfyra/sdk-core |
Node.js, workers, scripts, edge runtimes, or custom clients | Core Client | View on npm |
@enfyra/sdk-nuxt |
Nuxt 3 and Nuxt 4 applications | Nuxt | View on npm |
@enfyra/sdk-vue |
Client-rendered Vue 3 applications | Vue | View on npm |
@enfyra/sdk-react |
Client-rendered React applications | React | View on npm |
Connect to Enfyra
Each Enfyra instance exposes one URL. Use it as the SDK baseUrl:
const enfyra = new EnfyraClient({
baseUrl: 'http://localhost:3000',
})
In production, replace the localhost URL with your deployed Enfyra URL. Do not add /api; the SDK resolves API endpoints automatically.
From there, the SDK provides authentication, data queries and CRUD, custom API calls and transforms, files and storage, and realtime connections.