Introduction
Spica is an open-source backend development engine that gives you data APIs, cloud functions, identity and access management, storage and an admin panel out of the box.
Spica removes the repetitive parts of backend development. You describe your data, write the business logic that is unique to your product, and Spica takes care of the rest: REST, GraphQL and realtime APIs, authentication, authorization, file storage, background jobs and a back office for your team.
It is free, open source (AGPL-3.0) and runs anywhere Docker runs, on MongoDB or PostgreSQL.
What you get
Model your data with JSON schemas. Get validated REST, GraphQL and realtime APIs with filtering, relations, localization and history.
Run Node.js code on HTTP requests, data changes, schedules, system events, gRPC calls or RabbitMQ messages.
Identities for your team, users for your product, API keys for services, policies and data rules for everyone.
Upload and serve files from local disk, Amazon S3 or Google Cloud Storage, including resumable uploads.
A back office where developers configure the backend and content editors manage data, with no extra code.
Run Spica locally, keep resources in git, plan and apply changes from CI, and call Spica from typed SDKs.
Two ways to use Spica
As a backend engine
- Model your data in buckets. The REST API is generated immediately.
- Protect the data with bucket rules and policies.
- Add sign-up and login for your end users with Passport users.
- Put your business logic into functions and react to data changes with triggers.
- Give your business team dashboards and the admin panel.
As a headless CMS
- Model your content types in buckets and turn on translations for localized fields.
- Create identities for your editors and give them policies that only expose content.
- Let editors manage entries, images and files in the panel.
- Serve published content to your site through the data API with an API key or user tokens.
- Notify other systems with webhooks and automate publishing with functions.
How the docs are organized
| Section | Read it when you want to |
|---|---|
| Get started | Run Spica for the first time, learn the vocabulary and connect AI agents. |
| Build | Use the API: buckets, functions, authentication, storage and the platform modules. |
| Panel | Learn your way around the admin panel. |
| CLI | Run local projects and manage resources as code. |
| Devkit | Call Spica from functions, browsers, Node.js services and tests. |
| Self-hosting | Deploy and operate Spica with Docker or Kubernetes. |
| Recipes | Follow end-to-end scenarios that combine several features. |