Backend infrastructure for user-powered products. Pre-modeled bundles for the layers every app ends up rebuilding — comments, notifications, files, search, chat, and more. Install what you need, call through one SDK. Build the part that's actually yours.
This repository publishes the React-family Sublay SDK packages:
@sublay/core— platform-agnostic hooks, context providers, and utilities@sublay/react-js— React (web)@sublay/react-native— React Native@sublay/expo— Expo with SecureStore-backed token storage
Each framework package re-exports from @sublay/core and adds the platform-specific bits (token storage, etc.).
Every user-powered product runs into the same engineering problems — content modeling, threaded discussions, permission graphs, ranking pipelines, search indexing, notification fan-out, social graphs, and moderation queues. Sublay solves them, so you don't have to.
Sublay ships these layers as pre-modeled bundles that attach to one shared entity model. You install the bundles you need from the dashboard, call them through any Sublay SDK, and build the part that's actually yours on top.
- Comments & Threads — threaded discussions with mentions, replies, sorting
- Reactions & Votes — upvotes, downvotes, multi-emoji reactions
- Spaces & Communities — groups, sub-forums, membership
- Notifications — in-app notification fan-out with optional webhook delivery
- Feeds & Discovery — hot / top / new / controversial, filtered by tag, geography, timeframe, or follow graph
- Real-Time Chat — direct messages and group threads
- Follows & Connections — one-way follows, mutual connections
- Files & Storage — file blob storage with managed upload URLs
- AI-Powered Search — semantic search across your entity tree
- Moderation — report queues and content-removal workflows
Every bundle attaches to the same model. No mismatches, no extra databases. One schema for everything.
- Create a project at dash.sublay.io and install the bundles you need.
- Install a Sublay SDK in your app — this one, or one of its siblings (see below).
- Optionally drop in the open-source
@sublay/ui-core-*primitives, or install full components via the Sublay CLI registry.
The dashboard at dash.sublay.io is a database/backend console for your project:
- Overview — usage metrics and project health
- Authentication — end users and OAuth providers
- Database — schema browser (tables, relationships) and a table editor for browsing rows
- Storage — file blobs uploaded through the Files bundle
- Reports — moderation queue across entity and comment reports
- Broadcast — send notifications to your users
- Settings — domains, webhooks, integrations, members, secrets, billing
@sublay/core— platform-agnostic hooks and utilities@sublay/react-js— React (web)@sublay/react-native— React Native@sublay/expo— Expo with SecureStore token storage@sublay/node— server-side Node.js (backends, server actions, webhook handlers)@sublay/js— framework-agnostic JavaScript (browser apps without React)@sublay/ui-core-react-js/@sublay/ui-core-react-native— open-source UI primitives
Full API reference, SDK guides, and recipes: docs.sublay.io
- Discord — discord.gg/REKxnCJzPz
- Blog — blog.sublay.io
- X — @yantsab
- LinkedIn — linkedin.com/company/sublay
- Email — support@sublay.io
Apache 2.0