Quickstart
Get your first SummonFlow app running in minutes. Choose the path that fits your team.
Self-Hosted (OSS)
Clone the repo, deploy to Railway or your own infra. Full control, zero cost.
Managed
Sign up at the console. We handle the servers, you build the features.
Option A: Self-Hosted Setup
1. Install the OSS packages
Terminal
bun add @summoniq/summon-flow
# install the OSS server package from its standalone distribution
2. Deploy the Socket Server
The WebSocket server needs a persistent process. Railway is the recommended option for most teams.
# Deploy via Railway template (one-click)
railway run --template summoniq/summon-flow-server
# Or run locally for development
bun run dev
3. Install the Client SDK
Add the SummonFlow client to your frontend project.
bun add @summoniq/summon-flow
# or: npm install @summoniq/summon-flow
The client SDK is distributed separately from the hosted console and managed web app.
4. Connect from your app
// Initialize the client
import { SummonFlow } from '@summoniq/summon-flow';
const realtime = new SummonFlow('your-app-key', {
wsHost: 'your-server.railway.app',
forceTLS: true,
channelAuthorization: {
endpoint: '/api/realtime/auth',
},
});
// Subscribe to a public channel
const channel = realtime.subscribe('public-status-board');
channel.bind('new-event', (data) => console.log(data));
// Subscribe to a presence channel (requires auth endpoint)
const room = realtime.subscribe('presence-project-123');
room.bind('summon:member_added', (member) => {
console.log(member.info.name + ' joined');
});
Option B: Managed Setup
If you want to skip server management entirely, the managed service handles everything.
- 1Create an accountSign up at summonflow.com/signup — the Hobby tier is free.
- 2Create an appThe console gives you an app key and configures your auth endpoint, channel policies, and deployment targets.
- 3Install the client SDK
bun add @summoniq/summon-flow - 4Connect with your app keyUse the app key from the console. The managed service handles the WebSocket server, Redis, and TLS for you.
What's Next?
Now that you have basic connectivity, set up subscription signing to secure your private and presence channels.