erebus-sdk
Version:
To install dependencies:
49 lines (33 loc) • 1.11 kB
Markdown
Welcome to the official Erebus SDK package. Please refer to the documentation to get started at [docs](https://docs.erebus.sh/docs).
You can install erebus-sdk using your favorite package manager:
```bash
npm install erebus-sdk
pnpm install erebus-sdk
bun add erebus-sdk
```
This SDK provides type safety you can trust, Zod at the core. And application interfaces to interact with the Erebus infrastructure.
- [Pub/Sub Channels](https://docs.erebus.sh/docs/primitives/pubsub/)
- Live state (coming soon)
- AI streams (coming soon)
- Multiplier verticals (coming soon)
## Quickstart example
```typescript
import { createErebus } from "@/client/react/utils/createErebus";
import { z } from "zod";
const channels = {
room: z.object({
message: z.string(),
sentAt: z.number(),
}),
};
const { useSubscribe } = createErebus(channels);
export default useSubscribe;
```
Full SDK documentation is available on the official [documentation website](https://docs.erebus.sh/docs/primitives/pubsub/).