Build powerful web experiences with our lightweight, modular SDK for JavaScript and TypeScript.
npm install @elenebelo web-sdk
You can also fetch using our CDN for rapid development:
<script src="https://cdn.elenebelo.dev/web-sdk/v1.0.9/index.min.js"></script>
const client = new WebSdk({
projectId: "your-project-id",
apiKey: "your API key",
debug: true,
});
client.auth.loginWithEmail("email@email.com", "password").then(user => {
console.log("Logged in:", user);
})
Built from the ground up with type safety as standard - no typescript shims needed
Works with modern and mobile browsers, gracefully degrading where needed
Only import the features you need, zero bloat
Authenticate with API
{
"email": "user@example.com",
"password": "secret"
}
{
"token": "long-secure-token",
"userId": "123456"
}
Retrieve user information
Authorization: Bearer YOUR-TOKEN-HERE
{
"name": "John Doe",
"email": "johndoe@example.com"
}
Our API is actively maintained and always looking for new contributors to help improve it!
View Source on GitHub