allem-sdk
v0.1.5
Published
The React SDK for AI agents, chat, forms, auth, analytics, and 8 essential hooks. One install, zero lock-in. Built on Vercel AI SDK v6.
Maintainers
Readme
allem-sdk
The complete Allem SDK for React. AI agents, chat, hooks, forms, auth, analytics, storage, notifications, and realtime in a single install.
Installation
npm install allem-sdkOr install individual packages:
npm install @allem-sdk/hooks # 13 React hooks
npm install @allem-sdk/ai # AI chat & completions
npm install @allem-sdk/agents # Agentic AI with tool calling
npm install @allem-sdk/forms # Form management
npm install @allem-sdk/analytics # Analytics tracking
npm install @allem-sdk/auth # Authentication
npm install @allem-sdk/storage # Key-value storage
npm install @allem-sdk/notifications # Toast notifications
npm install @allem-sdk/realtime # WebSocket/SSEQuick Start
import { useDebounce, useLocalStorage } from "allem-sdk/hooks";
import { useAllemChat } from "allem-sdk/ai";
import { useForm, required, email } from "allem-sdk/forms";
import { AnalyticsProvider, useTrack } from "allem-sdk/analytics";
import { AuthProvider, useAuth, ProtectedRoute } from "allem-sdk/auth";
// Or import everything from the root
import { useDebounce, useAllemChat, useForm, useAuth } from "allem-sdk";Packages
| Package | Description |
|---------|-------------|
| @allem-sdk/hooks | 13 React hooks: useDebounce, useFetch, useThrottle, useLocalStorage, and more |
| @allem-sdk/ai | AI hooks built on Vercel AI SDK v6 with multi-provider chat & completions |
| @allem-sdk/agents | Agentic AI with tool loops, guardrails, memory, and planning |
| @allem-sdk/forms | Lightweight form management with 9 built-in validators |
| @allem-sdk/analytics | Provider-agnostic analytics with Mixpanel, PostHog, Segment adapters |
| @allem-sdk/auth | Authentication with Supabase, NextAuth, Clerk adapters |
| @allem-sdk/storage | Key-value storage with localStorage, cookie, memory adapters |
| @allem-sdk/notifications | Headless toast/notification system |
| @allem-sdk/realtime | WebSocket/SSE abstraction with channels and presence |
Features
- SSR-safe works with Next.js, Vite, and Remix out of the box
- TypeScript strict with full type safety and exported types
- Zero lock-in via adapter pattern for AI, analytics, and auth providers
- Tree-shakeable ESM + CJS builds, import only what you need
- Lightweight with no heavy dependencies, just React hooks
Part of Allem SDK
This is the meta-package for the Allem SDK monorepo. Install this package to get everything, or install individual @allem-sdk/* packages for smaller bundles.
Support
If you find Allem SDK useful, consider supporting its development:
