Persistent Connections
TCP connections stay open — no handshake overhead per request.
AfterLink maintains a single long-lived socket with automatic
keepalive pings every 30 seconds.
Built-in Pub/Sub
Native channel-based publish/subscribe baked into the protocol layer.
Subscribe, publish, and broadcast with one line of code across connected clients.
Auto Validation
Zod & Pydantic schema validation built into route handlers.
Invalid payloads are rejected at the protocol level before
your business logic runs — zero boilerplate.
16-Byte Protocol v2 Header
Protocol v2 introduces a 16-byte fixed layout header featuring version
negotiation (v1/v2), priority queues (0-7), custom string routing keys (0-255 bytes),
and MessagePack payload serialization.
Node Clustering
Scale horizontally with @ajaymyth/cluster.
Features Redis-backed shared pub/sub routing, worker crash detection/restarts,
Redis Cluster support, and SIGUSR2 zero-downtime rolling restarts.
Metrics & Observability
Production monitoring out of the box with Prometheus endpoints, pre-built
Grafana dashboard templates, and OpenTelemetry-compliant TracingManager
with AsyncLocalStorage context propagation.
Python SDK
First-class Python client and server via pip install afterlink.
Includes async client/server APIs, synchronous wrapper, complete type hints,
and native Pydantic payload validation.
Dart & Flutter SDK
Native Dart client via pub add afterlink for Flutter and server apps.
Supports native TCP and Web WebSocket transports with conditional compilation loaders.
Browser Bridge
Use AfterLink from any browser via the built-in WebSocket bridge.
The @ajaymyth/browser package
gives you the same API — no TCP required on the client side.
TLS + JWT Auth
First-class TLS support with afterlinks:// URIs.
JWT middleware included out of the box. Dev certs generated
automatically with generateDevCerts().
Redis Cluster Support
Cluster-wide pub/sub and slot routing using Redis.Cluster.
Seamlessly distribute real-time messages across multi-node Redis deployments (v2.0.1+).
Offline AI Assistant
Ask technical questions about AfterLink in your terminal. 100% offline RAG pipeline. 100% accuracy. No API keys.