Get your first StaticBackend app running in 5 minutes. No infrastructure setup, no configurationβjust start building.
Get started with your free 30-day trial. Credit card required upfront.
Add StaticBackend to your project in seconds.
npm install @staticbackend/js
<script src="https://cdn.jsdelivr.net/npm/@staticbackend/js/dist/bundle.min.js"></script>
Here's a complete example that registers a user and saves data. Copy and run it!
import { Backend } from '@staticbackend/js';
// Initialize with your keys
const backend = new Backend('your-public-key-here', 'na1');
// Register a new user
async function registerUser() {
const result = await backend.register('user@example.com', 'password123');
if (result.ok) {
const authToken = result.content;
console.log('User registered! Auth token:', authToken);
return authToken;
} else {
console.error('Registration failed:', result.content);
}
}
// Save some data
async function saveData(authToken) {
const result = await backend.create(authToken, 'todos', {
title: 'My first todo',
completed: false
});
if (result.ok) {
console.log('Todo created:', result.content);
} else {
console.error('Failed to create todo:', result.content);
}
}
// Run it
async function main() {
const authToken = await registerUser();
await saveData(authToken);
}
main();
Try building a complete todo app with CRUD operations:
// List all todos
const todos = await backend.list(authToken, 'todos');
// Update a todo
await backend.update(authToken, 'todos', todoId,
{ completed: true });
// Delete a todo
await backend.delete(authToken, 'todos', todoId);
Explore what else StaticBackend can do:
Your frontend can be deployed anywhere:
vercel deploynetlify deployawait backend.create(authToken, 'profiles', {
name: 'John Doe',
avatar: 'https://example.com/avatar.jpg',
preferences: {
theme: 'dark',
notifications: true
}
});
const fileInput = document.querySelector('#avatar');
const file = fileInput.files[0];
const result = await backend.uploadFile(
authToken,
file
);
console.log('File URL:', result.url);
const result = await backend.query(
authToken,
'todos',
[["completed", "==", true]],
{ desc: true }
);
console.log('Active todos:', result.results);
No! StaticBackend is your server. Deploy your frontend anywhere (Vercel, Netlify, your own hosting).
Yes! Works with any framework or vanilla JavaScript. The library is framework-agnostic.
Absolutely! Claude Code, Cursor, and other AI assistants can build complete apps using StaticBackend's API.
Choose a paid plan or your account is paused. Your data is never deleted. You can export everything anytime.
Yes, anytime. You're never locked in. Export all your data whenever you want.
Explore complete tutorials or dive into the full documentation.
© 2023 Focus Centric Inc. All rights reserved.