@gately/gately-js
v3.2.0
Published
Gately JS SDK - complete authentication, payments, CMS, and analytics
Maintainers
Readme
@gately/gately-js
Core authentication, payments, and user management SDK for Gately.
This is the base SDK that powers all platform integrations. For framework-specific usage, use one of the wrapper SDKs:
- React: @gately/react
- Next.js: @gately/nextjs
- Node.js: @gately/nodejs
Installation
npm install @gately/gately-jsQuick Start
import { GatelyBrowserClient } from '@gately/gately-js';
const client = new GatelyBrowserClient('proj_123');
// Login
const { user, session } = await client.auth.login('[email protected]', 'password');
// Get current user
const currentUser = await client.auth.getUser();Features
- Authentication (Email/Password, OAuth, Magic Links, SSO)
- Payments (Stripe integration, subscriptions, invoicing)
- User Management (Profiles, roles, permissions)
- Analytics and Tracking
- Content Protection
Documentation
For complete documentation, API reference, and integration guides, visit:
https://usegately.com/docs/introduction
SDK-specific docs:
Development
npm install
npm run build
npm run dev
npm run type-check
npm run lint