The Nuvix Console SDK provides developers with a convenient way to interact with the Nuvix backend, designed for managing projects, organizations, and related resources. This SDK is fully compatible with Nuvix server version 1.0.x. For compatibility with older server versions, refer to the release notes.
- Manage Accounts and Users.
- Operate on Projects, Organizations, and Teams.
- Utilize Databases, Functions, Storage, and Backups.
- Handle real-time updates with RealtimeResponseEvent.
- Comprehensive support for Messaging, Health Checks, GraphQL, and Locale services.
- Authentication and OAuth support via enums like
AuthenticatorType
andOAuthProvider
. - Simplified management of roles, permissions, and configurations.
Install the SDK via npm:
npm install @nuvix/console
Or using Yarn:
yarn add @nuvix/console
import { Client } from '@nuvix/console';
const client = new Client();
.setEndpoint('https://api.nuvix.com/v1') // API endpoint
.setEndpointRealtime('https://api.nuvix.com/v1/realtime') // Realtime API endpoint
.setLocale('en-US') // Locale setting (optional)
import { Account } from '@nuvix/console';
const accountService = new Account(client);
// Create a new account
accountService.create({
email: 'user@example.com',
password: 'securepassword',
});
// Retrieve account details
const accountDetails = await accountService.get();
console.log(accountDetails);
import { RealtimeResponseEvent } from '@nuvix/console';
client.subscribe('projects', (event: RealtimeResponseEvent) => {
console.log('Realtime event:', event);
});
The SDK includes services for interacting with various Nuvix resources:
- Account: Manage user accounts.
- Avatars: Handle user avatars.
- Backups: Manage database backups.
- Databases: Operate on databases and collections.
- Functions: Deploy and execute serverless functions.
- Organizations: Manage organizations and their members.
- Projects: Create and manage projects.
- Storage: Handle file uploads and downloads.
- Teams: Manage team memberships and permissions.
- Users: Operate on users within the platform.
For a full list of services, refer to the API documentation.
The SDK provides a rich set of enums for standardizing interactions:
-
AuthenticatorType
: Authentication mechanisms. -
OAuthProvider
: Supported OAuth providers. -
Region
: Available regions for resource deployment. - And many more.
Type safety is provided through:
Models
Payload
RealtimeResponseEvent
UploadProgress
Use the Permission
and Role
classes to manage user and team permissions.
Contributions are welcome! Please read our Contributing Guide for guidelines.
This SDK is licensed under the BSD 3-Clause License. See the LICENSE file for details.
If you encounter any issues, feel free to open an issue or contact us at support@nuvix.com.