Quatrain Core monorepo - Sovereign foundational packages & engines https://core.quatrain.community
  • TypeScript 97.5%
  • JavaScript 1.7%
  • PLpgSQL 0.5%
  • CSS 0.2%
Find a file
2026-09-24 10:06:15 +00:00
.agents feat: implement GitStorageAdapter, add pagination parameters to ListEndpoint, and document AI agent protocols 2026-07-15 23:08:55 +02:00
.github chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
.husky feat: add husky pre-commit hook and update bookstore seed script type definition 2026-05-06 16:47:30 +02:00
.turbo/cache feat: automate temporary tsconfig generation and path redirection for accurate TypeDoc builds 2026-05-10 19:31:12 +02:00
.vscode Fix some dependencies 2025-08-28 14:20:57 +02:00
.yarn/releases Upgrade to Yarn 4 2024-12-03 15:14:36 +01:00
assets feat: add TypeDoc entry points to package manifests and update project documentation theme 2026-04-25 11:46:38 +02:00
bin fix(release): purge stableVersion and dynamically guard against duplicate npmjs versions in publish_all 2026-09-24 11:56:54 +02:00
docs chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
guidelines chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
packages chore: release versions & update hashes [skip ci] 2026-09-24 10:06:15 +00:00
scripts chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
.codacy.yml chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
.dockerignore feat: optimize documentation build system, improve styling, and stabilize production pipeline 2026-05-09 16:09:49 +02:00
.gitignore chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
.markdownlint.yaml chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
.markdownlintignore chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
.npmignore chore: clear version hashes and add .npmignore file 2026-04-14 21:59:45 +02:00
.prettierrc Fix most properties tests 2022-08-01 21:05:09 +02:00
.quatrain-studio.sqlite Implement Studio, a no-code backend management system (#23) 2026-05-05 15:06:16 +02:00
.version_hashes.json chore: release versions & update hashes [skip ci] 2026-09-24 10:06:15 +00:00
.yarnrc.yml chore: configure Yarn project settings and remove .yarnrc.yml from ignore list 2026-05-21 13:51:09 +02:00
CNAME Create CNAME 2026-05-07 14:29:08 +02:00
GEMINI.md chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
global.ts chore: rename global.d.ts to global.ts to satisfy Typedoc requirements 2026-05-06 12:05:43 +02:00
jest.config.ts refactor(auth,worker): remove node-fetch-native in favor of native fetch API 2026-07-28 15:59:01 +02:00
LICENSE.md License change to AGPL-v3 as of 01/01/26 2025-12-29 11:51:40 +01:00
package.json refactor: remove apps and containers directories from workspace and sonar configuration 2026-05-25 12:08:50 +02:00
README.md refactor: migrate core-cli package to cli and implement project structure and build systems for api-xmlrpc and skills packages 2026-06-25 12:17:20 +02:00
sonar-project.properties refactor: migrate core-cli package to cli and implement project structure and build systems for api-xmlrpc and skills packages 2026-06-25 12:17:20 +02:00
test.log feat: add api-server-astro package with AstroAdapter support 2026-05-26 09:22:39 +02:00
tsconfig.json refactor: remove legacy ui-list and ui-form packages and associated dependencies 2026-05-25 19:44:14 +02:00
tslint.json First Commit 2022-07-26 17:43:41 +02:00
turbo.json chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00
typedoc-theme.css style: migrate typedoc theme to dark slate palette and optimize code block readability 2026-04-25 12:26:01 +02:00
typedoc.json chore: configure dedicated tsconfig for TypeDoc to isolate global file references 2026-05-06 12:09:31 +02:00
yarn.lock chore(release): merge develop into main (#64) 2026-09-24 10:28:57 +02:00

Core Logo

Core - A Modular & Universal Backend Framework

"Business Logic outlives Infrastructure"

Quality Gate Status Coverage Duplicated Lines (%)

Core (a product of Quatrain) is a modular TypeScript framework designed to accelerate business application development. Built upon a powerful Adapter Pattern, it decouples your core business logic from the underlying infrastructure, allowing you to deploy 100% on-premise with standard open-source blocks, leverage modern Backend as a Service (BaaS) platforms (like Supabase and Firebase), or run a hybrid architecture.


🎯 Core Principles

  • BaaS & On-Premise Synergy: Build modern cloud-native apps leveraging managed services like Firebase/Supabase, or target strict data-sovereign environments using traditional self-hosted infrastructure (PostgreSQL, SQLite, S3, OIDC/OAuth, RabbitMQ). The exact same codebase runs in both worlds.
  • Clean Abstraction: Write your business logic once. Decouple your models and processes from transport layers, databases, file storages, or messaging brokers.
  • No Vendor Lock-In: Seamlessly swap database engines (SQLite, PostgreSQL, Firestore), auth providers (Supabase Auth, Firebase Auth, OIDC/OAuth, Basic Auth), object storage backends (Local FileSystem, AWS S3, MinIO), or message queues (AMQP/RabbitMQ, AWS SQS, GCP Pub/Sub) via simple configuration changes.
  • Modular by Design: The framework is split into clean, highly factorized packages. Use only the bricks you need, from core object validation to authentication, storage, and pub/sub queues.
  • Standalone Core: The @quatrain/core package works entirely in-memory for defining models, validation, and business logic, without requiring any database or network connection.

🧠 Philosophy

Core is built upon three foundational pillars to ensure enterprise-grade reliability and longevity:

  • Sovereignty by Design: Deploy anywhere, from your local laptop to the largest hyperscalers (AWS, GCP, Azure). Core's adapter pattern prevents vendor lock-in, ensuring you retain total control over your data and infrastructure choices.
  • Cybersecurity by Design: We rely on rock-solid, audited, and widely adopted components. By keeping the core architecture simple and maintainable, we reduce the attack surface and make security patching straightforward.
  • Cloud-Native Best Practices: Designed to build robust applications that withstand the test of time. Core embraces stateless execution, ephemeral environments, and seamless horizontal scaling to effortlessly adapt to technological innovations.

📐 1. Design

The Design phase is all about modeling your domain and laying the foundations of your application without worrying about the underlying database or UI framework logic.

Core Ecosystem

  • @quatrain/core: Foundation package. Works standalone in-memory. Defines models, properties, validation, and serialization.
  • @quatrain/types: Shared contracts, types, interfaces, and exceptions for Core.
  • @quatrain/studio: Visual interface and meta-modeling package used by the visual studio application.
  • @quatrain/ux: Core styling and component logic (Mantine-based) for consistent frontend experiences.

Tip

For complete documentation, modeling details, and quick-start tutorials on these packages, please refer to the Core Wiki.


🛠️ 2. Development

During Development, you connect your business logic to services such as databases, authentication, AI, and message queues, using interchangeable adapters.

Backend & Service Ecosystem

  • Database Adapters: @quatrain/backend, @quatrain/backend-firestore, @quatrain/backend-postgres, @quatrain/backend-sqlite
  • Authentication: @quatrain/auth, @quatrain/auth-firebase, @quatrain/auth-supabase, @quatrain/auth-oidc, @quatrain/auth-pocketbase
  • Storage: @quatrain/storage, @quatrain/storage-firebase, @quatrain/storage-supabase, @quatrain/storage-local, @quatrain/storage-s3
  • Queueing & Messaging: @quatrain/queue, @quatrain/queue-amqp, @quatrain/queue-aws, @quatrain/queue-gcp, @quatrain/messaging, @quatrain/messaging-firebase
  • AI & Automation: @quatrain/ai, @quatrain/ai-gemini, @quatrain/app, @quatrain/code, @quatrain/code-github
  • Testing: @quatrain/testing

Tip

For full code persistence examples, dependency injection setups, and service integrations, visit the Core Wiki.


🚀 3. Deployment

Deployment covers running your code, scaffolding new environments, configuring API gateways, and handling data migrations.

Deployment & Infrastructure Ecosystem

  • CLI & Code Generation: @quatrain/cli (Scaffolds projects, configurations, and migrations)
  • Migrations: @quatrain/backend-migrations (Schema and data migration tooling)
  • Cloud Wrappers: @quatrain/cloudwrapper, @quatrain/cloudwrapper-firebase, @quatrain/cloudwrapper-supabase (Serverless/Edge functions handling)

Ready-To-Use Applications & Containers

All deployable applications, live modeling portals, gateway proxies, and pre-built deployment setups are organized in the dedicated companion repository:

👉 CoreApps Repository

Here you will find ready-to-use Docker/Podman container images and configurations:

  • api-gateway: Ultra-lightweight Express-based reverse proxy routing requests to your upstream services.
  • studio-image: Pre-configured environment hosting the Visual Developer Studio Dashboard.

🔮 Upcoming

The Core ecosystem is constantly evolving to empower developers and business users alike. Our roadmap includes:

  • Studio: A complete, visual interface to design and manage your entire application ecosystem. This studio will be driven by the user and seamlessly assisted by a Large Language Model (LLM) to accelerate scaffolding, modeling, and repetitive tasks.
  • BPM & State Machines: A powerful Business Process Management (BPM) engine allowing you to manage complex business logic and entity lifecycles through robust, visual "State Machines".

⚖️ License & Professional Services

Core is released under the AGPL-3.0 (Affero General Public License). This ensures that any enhancements to the open-source core remain free and accessible to the community. If you build a SaaS or application using this framework, you must comply with the AGPL-3.0 terms.

Professional Services & Commercial Licensing
If your organization requires a commercial license (to integrate Core without the AGPL-3.0 restrictions), or if you need expert assistance, the Quatrain team offers:

  • Commercial Licensing: Tailored licenses for proprietary software and enterprise deployments.
  • Custom Development: Expert engineers to help you build or migrate your backend architecture.
  • Premium Support: Priority SLA, architectural consulting, and code reviews.

Contact us at developers@quatrain.com to discuss your project needs.