A low-code C++ platform that turns a YAML file into an ultra-fast REST API server + desktop GUI, with built-in security.
SeaDesktop automatically generates from a single YAML file:
- π’οΈ A database based on entities and their relationships
- π A complete, high-performance CRUD REST API (Seastar shared-nothing SMP)
- π₯οΈ A cross-platform desktop graphical interface (Qt 6)
- π A complete JWT authentication system with HttpOnly cookies, rotation, and revocation
- π‘οΈ Declarative RBAC + ABAC authorization at the operation level
- π Auto-generated relationship routes (HasMany, BelongsTo, M2M)
- π Structured logging with spdlog, rotation, JSON, and REST exposure
- π OpenAPI documentation and a Swagger UI explorer at
/docs
No boilerplate. No heavy framework. Just modern C++ and YAML.
project:
name: SeaDesktopDemo
services:
- name: Office
port: 8080
security:
authentication:
type: none # no auth (quick dev mode)
database:
type: memory
entities:
- name: Department
options:
enable_crud: true
public_routes: true
fields:
- name: id
type: uuid
required: true
unique: true
- name: name
type: string
required: true
unique: true
relations:
- name: employees
kind: has_many
target_entity: Employee
fk_column: department_id
on_delete: cascade
- name: Employee
options:
enable_crud: true
public_routes: true
fields:
- name: id
type: uuid
required: true
unique: true
- name: name
type: string
required: true
- name: email
type: email
required: true
unique: true
- name: age
type: int
required: false
- name: department_id
type: uuid
required: false
relations:
- name: department
kind: belongs_to
target_entity: Department
fk_column: department_id
on_delete: restrictOption A β Locally (development):
./Backend_Seastar --config configs/SeaDesktopDemo.yaml --service_name OfficeOption B β Docker (recommended for testing the full stack):
cp .env.example .env
# Edit .env to set SEA_DESKTOP_JWT_SECRET and MYSQL_ROOT_PASSWORD
docker compose up -dThe Docker stack includes MySQL and one example backend service exposed on port 8080. See docs/docker_deployment.md for production deployment, multi-service setup, and troubleshooting.
Automatically generated routes:
# Standard CRUD
GET /departments GET /departments/{id}
POST /departments PUT /departments/{id}
DELETE /departments/{id}
GET /employees GET /employees/{id}
POST /employees PUT /employees/{id}
DELETE /employees/{id}
# Relationship routes (auto-generated)
GET /departments/{id}/employees
GET /departments_with_employees/{id} Parent + grouped children
GET /employees/filter/with_department_name?name=<value> Search by parent.name
# Documentation and system endpoints
GET /openapi.json OpenAPI 3.0 specification
GET /docs Swagger UI interface
GET /health Healthcheck
When SeaUI is launched for the first time in Local mode, a Welcome to SeaUI dialog now walks the user through three configuration sections in one step:
- Configuration folder β pick where YAML project files will live (with optional copy of an example BlogDemo project)
- MySQL credentials β host, port, user, password (with show/hide)
- JWT secret β auto-generated 256-bit secret with Regenerate button
Credentials are stored in a seadesktop.env file inside a sibling
environment/ folder, separate from configs/. The split makes it
safe to version configs/ in Git while keeping secrets local.
The Open Data action on each entity now opens a lazy-rendering data viewer that scales to tens of thousands of rows. Only the rows visible on screen are drawn; scrolling stays smooth on large tables. The viewer also detects pagination configured in the YAML and adapts its fetch strategy: OFFSET (with exact totals), CURSOR (token-based), or PAGE (page-based concatenation), with infinite scroll triggering the next batch at 85% of the scrollbar.
Five system routes (/health, /health/ready, /openapi.json,
/docs, /assets/swagger-ui/*) now become administrator-only
when authentication is enabled on the service. In development mode
(auth disabled) they stay public for unauthenticated exploration.
This prevents anonymous visitors from enumerating the API surface
via Swagger UI in production.
- The hardcoded
CCNBServicedefault service name is removed.--service_nameis now optional; the backend selects the first service declared in the YAML. --configis nowrequired()for a clear error message when missing.- SeaUI resolves the backend binary in three priority levels
(env override β
/usr/bin/seadesktop-backendfor.debmode β dev relative path). seadesktop.envvariables are injected into both SeaUI's own process (so YAML parsing finds them) and the backend's QProcessEnvironment.
See Release_Notes.md for the complete v1.0.1
changelog and migration notes.
SeaDesktop services can now be administered remotely over HTTP. SeaUI in Remote mode connects to a deployed backend (typically running in Docker) and manages projects without filesystem access:
/admin/projects/*endpoints β full CRUD on YAML project files (list, read, create, update, delete) via REST/admin/restartendpoint β graceful service restart, automatically respawned by the container orchestrator/admin/logsendpoint β in-memory log buffer accessible from SeaUI's Remote Logs Viewer- SeaUI profiles β switch between Local mode (filesystem direct) and Remote mode (HTTP-based) per profile, with a built-in profile manager
See docs/admin.md for the endpoint reference and docs/SEAUI_GUIDE.md for the SeaUI user guide.
SeaDesktop now ships with a complete Docker-based deployment:
- Multi-stage Dockerfile building Seastar from source (pinned commit) and the backend in optimized layers
- docker-compose.yml orchestrating MySQL + N backend services with a shared
configs/volume - docker-compose.prod.yml override for Docker secrets in production
- Multi-service architecture β each container serves one project; all containers see the same YAML files via shared volume
See docs/docker_deployment.md for the full deployment guide.
Three token delivery modes depending on your clients:
security:
authentication:
token_delivery: cookie # body | cookie | both
cookie:
domain: ".example.com"
path: "/"
secure: true
same_site: lax
access_token_name: sea_access
refresh_token_name: sea_refreshbody: tokens in the JSON response (mobile API, CLI)cookie: tokens in HttpOnly cookies (web applications)both: combination of both for progressive migrations
authentication:
token_tracking:
enabled: true
rotation:
enabled: true # new refresh token on every /auth/refresh
cache:
enabled: true
ttl: "5m"
max_size: 10000
auto_cleanup:
enabled: true
interval: "1h"
keep_revoked_for: "30d"- Allowlist of active refresh tokens
- Denylist of revoked access tokens (approximately 200 ns check via cache)
- Automatic rotation: detection of stolen refresh token reuse
- Automatic periodic cleanup of expired tokens
| Method | Route | Description |
|---|---|---|
POST |
/auth/register |
Registration |
POST |
/auth/login |
Login (tokens in body or cookies) |
POST |
/auth/refresh |
Renewal with rotation |
POST |
/auth/logout |
Immediate access token revocation |
GET |
/auth/me |
Connected account information |
logging:
level: info
modules:
sea.http: debug
sea.persistence: info
seastar: warn
sinks:
- type: console
format: text
enabled: true
- type: file
format: json
enabled: true
path: "./logs/service.log"
rotation:
max_size: "100MB"
time_pattern: daily
max_files: 30
flush_level: error
async:
enabled: true
queue_size: 8192
overflow_policy: overrun_oldest- 7 named loggers configurable independently (
sea.http,sea.persistence, etc.) - Multiple sinks: console + file(s) simultaneously
- Size-based and/or time-based rotation (
100MB,daily, etc.) - Text and JSON formats (line-delimited JSON for Loki/ELK ingestion)
- Non-blocking asynchronous mode for the Seastar reactor
- Capture of internal Seastar logs routed to the
seastarlogger
An in-memory ring buffer keeps the last 10,000 messages, accessible from SeaUI or any authorized client:
# Filtered retrieval
curl -H "Authorization: Bearer $TOKEN" \
"http://localhost:8081/admin/logs?level=warn&logger=sea.http&limit=50"
# Real-time incremental polling
curl -H "Authorization: Bearer $TOKEN" \
"http://localhost:8081/admin/logs?since=12345"Protected by JWT authentication + administrator role (configurable through authorization.admin_role).
Four new reference documents, based exclusively on the source code:
| Document | Contents |
|---|---|
seadesktop_user_guide.md |
Global guide: all YAML keys, accepted values, defaults, behavior |
auth.md |
Authentication: tokens, cookies, tracking, rotation |
pagination.md |
Pagination: 3 modes (page/offset/cursor), examples |
logging.md |
Logging: levels, modules, sinks, rotation, async, /admin/logs |
FILE_FEATURE_USER_GUIDE.md |
File storage: declaration, upload, download, sharing |
SeaDesktop has two components β a Seastar-based backend and a Qt-based desktop client (SeaUI) β with different platform constraints.
| Component | Linux (x86_64) | macOS | Windows |
|---|---|---|---|
backend_seastar native |
β Supported | β Seastar requires Linux | β Seastar requires Linux |
backend_seastar via Docker |
β | β Docker Desktop | β Docker Desktop / WSL2 |
| SeaUI (Qt 6 desktop app) | β Native | β Native | β Native |
- Linux β Native backend and native SeaUI. Both Local and Remote modes are available. Docker is optional but useful for multi-service setups.
- macOS β Backend in Docker Desktop, SeaUI native. Remote mode is required: Local mode needs the
backend_seastarbinary which Seastar does not support outside Linux. Connect SeaUI tohttp://localhost:8080(Docker forwards the port to the Linux VM). - Windows β Same as macOS: backend in Docker Desktop (typically with the WSL2 backend), SeaUI native, Remote mode required.
Why Seastar is Linux-only: Seastar relies on Linux-specific syscalls (io_uring, epoll, fine-grained CPU pinning) that are not available natively on macOS or Windows. The Docker approach runs the backend in a Linux VM, transparently from the user's perspective.
See docs/docker_deployment.md for the full Docker setup and docs/SEAUI_GUIDE.md for the Remote mode workflow.
SeaDesktop implements a complete multi-layer security system:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β JWT authentication (access + refresh tokens, HS256/RS256/ES256) β
β + Flexible delivery: Authorization header OR HttpOnly cookies β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Token Tracking: refresh allowlist + access denylist β
β + Automatic rotation + local cache + periodic cleanup β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β RBAC (roles + configurable admin bypass) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Declarative ABAC by operation: β
β β’ own_resource: a user accesses their own data β
β β’ same_scope: a manager operates only within their scope β
β β’ allow_roles: restriction by role list β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Silent ABAC filter on listings (denied records excluded) β
β Immediate 403 on cross-scope GetById/Update/Delete/Create β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β CORS, rate limits, HTTP security headers, payload limits β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
With YAML declaring a manager from the IT department:
| Action | Result |
|---|---|
GET /employees |
β 200, sees only IT employees (silent filter) |
GET /employees/{Bob_IT} |
β 200, access granted |
GET /employees/{David_HR} |
β 403, cross-department access denied |
PUT /employees/{David_HR} |
β 403, before SQL UPDATE |
POST /employees {dept: HR} |
β 403, cross-department creation denied |
POST /auth/logout (alice) |
β 200, access token immediately blacklisted |
| Next request with revoked token | β 401, denylist checked |
SeaDesktop follows Domain-Driven Design with strict layer separation:
SeaDesktop/
β
βββ apps/ # Applications
β βββ Backend_Seastar/ # Seastar HTTP server
β β βββ src/
β β βββ http/
β β β βββ handlers/ # CRUD + relations + auth + admin
β β β βββ middlewares/ # Auth, CORS, RateLimit, etc.
β β β βββ routing/ # Route registration
β β β βββ utils/ # HTTP helpers (cookies, multipart)
β β βββ main.cpp # Bootstrap
β β
β βββ SeaUI/ # Qt6 GUI
β βββ src/ # Administrative interface
β
βββ libs/ # DDD libraries
β βββ sea_domain/ # Domain Layer
β β βββ access_control/ # PolicySubject, PolicyResource, etc.
β β βββ schema/ # Entity, Field, Relation
β β βββ security_scheme/ # AuthConfig, CookieConfig, TokenTracking
β β βββ logging/ # LoggingConfig
β β
β βββ sea_application/ # Application Layer
β β βββ access_control/ # PolicyEngine, evaluators
β β βββ auth/ # AuthService, JWT, TokenTracking
β β βββ logging/ # LoggingInitializer, RingBufferSink
β β βββ ...
β β
β βββ sea_infrastructure/ # Infrastructure Layer
β βββ yaml/ # YAML Parser
β βββ runtime/ # CRUD engines
β βββ persistence/ # MySQL, Memory backends
β
βββ SeaDesktopDemo1.yaml # Complete sample configuration
| Layer | Technology |
|---|---|
| Language | C++20 |
| HTTP server | Seastar (shared-nothing SMP, futures/continuations) |
| Desktop GUI | Qt 6.8.3 |
| Build | CMake (monorepo) |
| Database | MySQL 8 (via Connector/C++) |
| Auth | JWT HS256/RS256/ES256 (access + refresh + tracking) |
| Password hashing | bcrypt |
| Logging | spdlog 1.14 (header-only via FetchContent) |
| JSON | nlohmann/json |
| YAML | yaml-cpp |
| Supported OS | Linux (tested on Ubuntu 24.04) |
Seastar is a C++ framework for high-performance servers:
- Shared-nothing SMP: 1 thread per core, no mutexes
- Futures/continuations: non-blocking asynchronous I/O
- DPDK: userspace networking (optional)
- Linux-specific primitives: aio, epoll, etc.
Used by ScyllaDB, Redpanda, and other industrial-grade systems.
# Ubuntu 24.04
sudo apt install build-essential cmake git \
libmysqlcppconn-dev \
nlohmann-json3-dev \
libyaml-cpp-dev \
libssl-dev
# Qt 6.8.3 via Qt Online Installer
# Seastar from source: /opt/seastargit clone github.com/fredf21/SeaDesktop.git
cd SeaDesktop
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=/path/to/Qt6.8.3 ..
cmake --build . --target Backend_Seastar SeaUI -j$(nproc)# Required environment variable (or auto-generated if secret: "")
export SEA_DESKTOP_JWT_SECRET="your-jwt-secret-32-characters-minimum"
# Start the server
./apps/Backend_Seastar/Backend_Seastar --config=./SeaDesktopDemo1.yaml --service_name=CCNBService
# Start the GUI (separately)
./apps/SeaUI/SeaUI- Complete Domain model (PolicySubject, PolicyResource, PolicyContext)
- PolicyEngine with operators and evaluators
- ABAC YAML Parser (
own_resource,same_scope,allow_roles) - JWT with custom claims (basic refresh tokens)
- AuthorizationMiddleware (Strategy C double check)
- ResourceAuthorizationHelper (resource-aware ABAC)
- Auto-generated CRUD API + relationship routes
- Silent ABAC filter + 403 cross-scope
- HttpOnly cookies with complete configuration (domain, path, same_site)
- Token tracking: refresh allowlist + access denylist + rotation + cache
- Automatic cleanup of expired tokens
- Structured logging with spdlog (7 named modules)
- Multiple sinks (console + file) with size/time rotation
- REST endpoint
/admin/logswith incremental polling - Seastar β spdlog hook for internal log capture
- Complete user documentation
/admin/projects/*endpoints for full YAML CRUD over HTTP/admin/restartendpoint for graceful service restart- SeaUI profiles: Local and Remote modes, profile manager UI
- HttpProjectRepository: SeaUI backend reads/writes via HTTP
- RemoteLogsViewer: in-app viewer for remote service logs
- Multi-stage Dockerfile (Seastar from source, ~150 MB runtime image)
- docker-compose orchestration for multi-services + MySQL
- docker-compose.prod.yml with Docker secrets support
- Production hardening of
/admin/*endpoints (JWT + admin role) - Full bilingual documentation (EN + FR) of every feature
- Bootstrap admin procedure documented
- LocalSetupDialog at first Local launch (configs folder + MySQL + JWT)
- EnvFileLoader:
.envinjected into both SeaUI process and backend QProcess - EntityDataDialog: lazy rendering with conditional pagination (OFFSET > CURSOR > PAGE > None)
- AdminGuardHandler: 5 system routes admin-only when auth is enabled
- Backend
CCNBServicehardcoded default removed;--service_namenow optional - Backend binary resolution in 3 priority levels (env,
.debwrapper, dev relative) - Documentation updated (Release Notes, installation, SEAUI guide) in EN and FR
- WebSocket for real-time notifications
- OAuth2 providers (Google, GitHub)
- PostgreSQL support
- MongoDB support
- Versioned migrations (with rollback)
- Streaming for large files
- Extended file storage (multi-backend filesystem/S3)
- Orchestrator daemon to auto-deploy new projects as containers
- Hardening: restrict
role: adminin/auth/registerto existing admins - RemoteLogsViewer: live polling, filters by level/logger, search
- Startups that want a backend + GUI in a few hours
- Internal teams that need secure admin tooling
- C++ developers who want modern, high-performance boilerplate
- Architects who value a declarative approach (Infrastructure-as-Code)
| Document | Contents |
|---|---|
Release_Notes.md |
Detailed changelog by version |
docs/seadesktop_user_guide.md |
Complete user guide (YAML reference) |
docs/admin.md |
Administration endpoints (/admin/projects/*, /admin/restart) |
docs/auth.md |
Authentication: JWT, cookies, token tracking |
docs/docker_deployment.md |
Docker deployment, multi-services, production |
docs/errors.md |
Error response format and codes |
docs/FILE_FEATURE_USER_GUIDE.md |
File storage: declaration, upload, download, sharing |
docs/healthcheck.md |
/health and /health/ready endpoints |
docs/logging.md |
Logging: modules, sinks, rotation, /admin/logs |
docs/pagination.md |
Pagination: page, offset, cursor |
docs/SEAUI_GUIDE.md |
SeaUI desktop application (Local and Remote modes) |
| Document | Contenu |
|---|---|
Release_Notes_french.md |
Journal dΓ©taillΓ© des versions |
docs_french/seadesktop_user_guide_fr.md |
Guide utilisateur complet (rΓ©fΓ©rence YAML) |
docs_french/admin_fr.md |
Endpoints d'administration |
docs_french/auth_fr.md |
Authentification : JWT, cookies, suivi de tokens |
docs_french/docker_deployment_fr.md |
DΓ©ploiement Docker, multi-services, production |
docs_french/errors_fr.md |
Format et codes des rΓ©ponses d'erreur |
docs_french/FILE_FEATURE_USER_GUIDE_fr.md |
Stockage de fichiers |
docs_french/healthcheck_fr.md |
Endpoints /health et /health/ready |
docs_french/logging_fr.md |
Journalisation : modules, sinks, rotation, /admin/logs |
docs_french/pagination_fr.md |
Pagination : page, offset, cursor |
docs_french/SEAUI_GUIDE_fr.md |
Application desktop SeaUI (modes Local et Remote) |
The project is in alpha. Contributions are welcome, especially on:
- Unit tests and integration tests
- PostgreSQL and MongoDB support
- Documentation and YAML examples
- Project templates for typical use cases
The default license is GNU Affero General Public License v3.0. See the LICENSE file for the full text.
Under AGPL v3, you can use SeaDesktop freely, provided that:
- If you modify the code, you must publish your modifications.
- If you provide SeaDesktop as a network service (SaaS), you must publish the source code of the entire service.
- Any derivative work must also be licensed under AGPL v3.
If you want to use SeaDesktop without the AGPL constraints, you need a commercial license. This applies if:
- You want to integrate SeaDesktop into a proprietary product.
- You want to provide SeaDesktop as a SaaS without publishing your source code.
- Your organization has a policy against AGPL/GPL software.
- You want premium support, SLA, or enterprise features.
See COMMERCIAL-LICENSE.md for details.
FrΓ©dΓ©ric β Architect & C++ Developer
Recruiters, investors, and potential collaborators are welcome to contact me on LinkedIn.
SeaDesktop v1.0.1 β From YAML to a complete product in minutes.