Skip to main content
Sublay is infrastructure for user-based products — a pre-modeled backend you build your app on. Users and auth, the content they create, comments, reactions, follows and connections, notifications, moderation, chat, spaces, search and AI, and tables for your own data types: Sublay models, stores and serves all of it, so you build the product instead of the backend under it. You start from scratch: create a project, choose the bundles it needs, and call them from your app through the SDK or the REST API. There is no server or database of your own to set up. Each project’s data is isolated, and the interface stays yours — Sublay supplies the data and the APIs, plus optional UI components you install as source code. Users sign up with Sublay’s built-in auth or OAuth, or come from an auth system you already run through a signed JWT.

Build your first Sublay app

Sign users up, let them create entities, list them, and add comments and reactions — a working React app with no backend of your own.

What’s Included

Every project is assembled from these building blocks:

Auth & Identity

Built-in email/password auth, OAuth (Google, GitHub, and more), external JWT integration for bringing your own auth system, and multi-account support.

Entities

The central content unit — whatever your users create: posts, articles, listings, questions. An optional bundle (comments and collections build on it). Comes with votes, reactions, view tracking, file attachments, drafts, and publishing workflows.

Comments

Threaded discussions on any entity. Nested replies, votes, emoji reactions, GIF support, @mentions, and moderation built in.

Spaces

Hierarchical spaces (teams, cohorts, forums, groups) with membership, role-based permissions, moderation tools, rules, and space-level chat.

Chat

Real-time 1:1 and group conversations with message reactions, threaded replies, read state, typing indicators, and moderation.

Follows & Connections

Unidirectional follows and bidirectional connection requests (friend-style). Full follower/following counts, status checks, and bulk queries.

Collections

User-owned bookmarking and folder system for saving entities. Sub-collections, entity management, and saved-state checks.

App Notifications

In-app notification system for users. Delivered via webhook to your server for push bridging, email relay, or any downstream action.

Semantic Search & AI

Automatic content embedding for entities, comments, messages, users, and spaces. Enables semantic search across all content types and an AI-powered ask endpoint that synthesizes answers from your data.

Storage

File and image uploads with server-side processing. Used for entity attachments, user avatars, banner images, and chat attachments.

Moderation

Report flows for entities, comments, and chat messages. Space-level moderation actions, ban management, and report resolution tools.

Reactions

Reactions on entities and comments. Eight reaction types out of the box (upvote, downvote, like, love, wow, sad, angry, funny), with counts and per-user state.

Custom Tables

Tables for the data types only your app has, provisioned in your project next to Sublay’s and read and written from the SDKs or the dashboard.

How It Works

Every Sublay project gets a hosted API endpoint. Your application talks to that endpoint — either through the React/React Native SDK (which handles tokens, state, and real-time automatically) or directly via the REST API. All data is scoped to your project. Users, entities, conversations, and spaces exist only within your project’s namespace. You can have multiple projects — a staging environment, separate apps, or white-labeled products — each fully isolated.
Sublay uses a project-scoped architecture. All API paths include a projectId. Your project ID is available in the dashboard.

Auth Flexibility

Sublay does not force you into one authentication model. You choose how users are identified:
  • Built-in auth — Sublay manages the full user identity: email/password sign-up, password reset, OAuth providers. No external auth system needed.
  • External auth — Your backend issues a signed JWT, and Sublay automatically creates or matches a user from it. Keep your existing auth stack and add Sublay alongside it.
  • OAuth — Sign in with Google, GitHub, or other configured providers. Supports linking multiple OAuth identities to a single account.
See Authentication for a full conceptual overview.

Get Started

Build your first app

A step-by-step React app on Sublay: auth, entities, a list, comments and a like.

SDK Setup

Install @sublay/react-js or @sublay/react-native and get your first feature running in minutes.

Integration Options

Learn about the SDK, raw REST API, and Redux integration options — and choose the right path for your project.

Authentication

Built-in, external, and OAuth auth models explained. Understand how user identity flows through Sublay.

API Reference

Complete REST API documentation — every endpoint, every field.

Data Models

TypeScript interfaces for every object your app works with: users, entities, comments, conversations, and more.

UI Components

Pre-built, fully customizable comment sections and notification UI installed directly into your project via CLI.