Web SDK for Modern Applications

Build powerful web experiences with our lightweight, modular SDK for JavaScript and TypeScript.

1. Installation

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>

2. Core Example


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);
})

Note: Replace your-project-id and your-api-key with proper values from your project dashboard.

What's Inside?

TypeScript Support

Built from the ground up with type safety as standard - no typescript shims needed

Cross-Browser

Works with modern and mobile browsers, gracefully degrading where needed

Modular Design

Only import the features you need, zero bloat

💡 Core API Usage

POST /auth/signin

Authenticate with API

Request


{
  "email": "user@example.com",
  "password": "secret"
}

Response


{
  "token": "long-secure-token",
  "userId": "123456"
}

GET /user/data

Retrieve user information

Headers


Authorization: Bearer YOUR-TOKEN-HERE

Response


{
  "name": "John Doe",
  "email": "johndoe@example.com"
}

� Want to contribute?

Our API is actively maintained and always looking for new contributors to help improve it!

View Source on GitHub