S5ARC Documentation

Introduction

A modern, multi-tenant e-commerce SaaS platform built for the Cash on Delivery economy

S5ARC strips away the bloat and provides a frictionless "Launch before lunch" experience:

  • Claim your store in seconds with dynamic subdomains (yourstore.s5arc.store)
  • Upload products with an intuitive dashboard
  • Share links and start accepting COD orders immediately
  • No coding required for store owners
  • Open source for developers who want to self-host or customize

Key Features

For Store Owners

  • Multi-Tenant Architecture: Each store gets its own subdomain with strict data isolation
  • Intuitive Dashboard: Manage products, orders, and customers without technical knowledge
  • Instant Setup: No complex configuration or onboarding process
  • Mobile Optimized: Your storefront loads instantly on mobile devices (crucial for conversion)
  • Custom Branding: Personalize your store with themes and custom scripts

For Developers

  • Headless API: Build custom frontends with Vue, Svelte, React Native, or any framework
  • Type Safety: End-to-end type safety with TypeScript, Zod, and Drizzle ORM
  • Modern Stack: Next.js 15, PostgreSQL, Next-Auth, Tailwind CSS
  • Open Source: AGPL-3.0 licensed, self-hostable, and extensible
  • Well Documented: Every API endpoint is documented with OpenAPI specifications

Headless Commerce

S5ARC exposes a fully documented REST API, allowing agencies to build custom frontends while relying on S5ARC's powerful checkout and inventory engine.


Architecture Highlights

S5ARC is built on a robust technical foundation that balances performance with developer experience.

Tech Stack

TechnologyPurpose
Next.js 16App Router for advanced routing SSR & other features
TypeScriptType safety across the entire codebase
Drizzle ORMType-safe database queries
PostgreSQLSingle database with Row Level Security patterns
ZodRuntime validation and schema definition
Better-AuthAuthentication & session management
Tailwind CSS & ShadCN/UIUtility-first styling & UI components

Database Architecture

While S5ARC uses a single PostgreSQL instance for all tenants, strict data isolation is enforced at the application layer using Row Level Security (RLS) patterns. Each query is scoped to the authenticated store.


Quick Start

Clone the Repository

git clone https://github.com/S5SAJID/next-dashcommerce.git
cd next-dashcommerce

Install Dependencies

npm install

Configure Environment

Copy .env.example to .env.local and configure your database and authentication providers:

cp .env.example .env.local

Run Database Migrations

npm run db:push

Start Development Server

npm run dev

Your S5ARC instance will be running at http://localhost:3000 🎉


What's Next?


Roadmap

S5ARC is a living ecosystem. Here's what's coming next:

  • Global Payment Integration: Stripe, LemonSqueezy, and local payment methods
  • AI Storefront Agent: Generate custom stores via natural language
  • Custom Domains (BYOD): Full white-label support with automatic SSL
  • Mobile App: Native mobile app for store management
  • Analytics Dashboard: Advanced insights and reporting

Contribute to S5ARC

S5ARC is open source! Check out our GitHub repository to contribute, report issues, or request features.


Need Help?

Let's democratize e-commerce together. 🚀

On this page