@capacitysoapp/sdk
v2.0.1
Published
Capacity Built-in Database SDK - Zero-config database and authentication for web apps
Maintainers
Readme
@capacity/sdk
Zero-configuration database and authentication SDK for Capacity projects.
Quick Start
npm install @capacity/sdkimport { User, createEntity } from '@capacity/sdk';
// Initialize SDK
User.init('your-project-id');
// Authentication
await User.register('[email protected]', 'password', 'John Doe');
await User.loginWithEmail('[email protected]', 'password');
await User.loginWithGoogle();
// Data management
const Post = createEntity('Post');
await Post.create({ title: 'Hello World', content: 'My first post' });
const posts = await Post.findAll();