Search by

qiick / externa-core

LucaGiardi20

Externa — headless CMS / content API with operator admin UI.

Package info

github.com/qiick-io/externa-core

Homepage

Documentation

Type:project

pkg:composer/qiick/externa-core

Statistics

Installs: 959

Dependents: 0

Suggesters: 0

Stars: 12

Open Issues: 56

1.5.9 2026-12-04 19:17 UTC

README

Externa: Self-hosted headless CMS built on Laravel

Externa

Docs License: MIT

Version: 1.5.5 (from composer.json; mirrored in package.json). See CHANGELOG.md and Releasing docs.

Externa is a Laravel-native headless CMS: operators manage structured content in a full admin UI; websites and apps consume it through the Public CMS API (/api/v1) and GraphQL (/api/graphql). Optional in-app AI tools respect the signed-in user’s permissions — you own the code, so automation is Jobs/listeners, not a locked Flow canvas.

Who it is for: teams that want a self-hosted content API with a serious admin (collections, files, RBAC) on a stack they already know — Laravel 13, Inertia + React 19, Vite.

Docs docs.qiick.io/externa
Install composer create-project qiick/externa-core · Installation · Upgrade · Minimal vs full stack
API Public CMS API · GraphQL · Headless starter (Next.js + Nuxt) · Starter conventions · 1.x compatibility
Security SECURITY.md · Threat model
Issues GitHub Issues

Highlights

  • Dynamic collections — fields, locales, lean draft/publish, typed item editor, safe field type conversion with dry-run
  • Hierarchical files — folders, uploads, versions, async zip, empty trash; local, S3, GCS or Azure disks; upload allowlist
  • RBAC + groups — Spatie roles/permissions with group inheritance; public role for the API
  • Public CMS API + GraphQL — collection access matrix, owned API keys, sort, system and relational filters, batch writes; TypeScript SDK; 1.x compatibility policy
  • Chat + activity — item/private threads with live presence; Spatie activity log
  • Optional AI assistant — OpenAI-compatible / LM Studio; side panel on any page (⌘J), saved prompts and context attachments; write tools need human approval
  • Optional MCP server — the same permission-aware tools for MCP clients, through owned API keys
  • Deploy hooks — Vercel, Netlify, Cloudflare Pages or Forge, from the admin or on publish
  • Theme presets — six built-in presets (Teal, Blue, Indigo, Violet, Rose, Slate) or a custom brand colour
  • Secure by default — security headers, signed webhooks, SSRF-hardened remote fetches, registration off on fresh installs

Stack: Laravel 13, Inertia + React 19, Vite, Spatie Permission / Activitylog, Wayfinder typed routes.

Requirements

Requirement Notes
PHP 8.4.28+ composer.json requires ^8.4.28; .php-version selects the PHP 8.4 line for Flock, Herd and other version managers. Required for CVE-2026-109618 / CVE-2026-109619 and the PHP 8.4.28 security release. On PHP 8.5, use 8.5.13+ (the matching 8.5 security release).
Composer 2 PHP dependencies and composer setup / composer run dev.
Node.js 24 Pinned in .nvmrc and package.json engines. Use nvm use (or equivalent).
Database SQLite 3.x (local/CI default); PostgreSQL 15+ (16 preferred, production recommended); MySQL 8.0+; MariaDB 10.6+ (10.11+ preferred). MySQL/MariaDB: utf8mb4 / utf8mb4_unicode_ci. Matrix: Supported databases.
Redis (optional) Needed for Horizon, Reverb-friendly realtime, and Pulse redis ingest. Prod without Redis: docs.

Optional: a local PHP environment that serves <app>.test hosts and runs PostgreSQL / MySQL / Redis (Flock, Laravel Herd or Valet). Optional AI: an OpenAI-compatible gateway (e.g. LM Studio) at LOCAL_AI_URL.

Quick start

Operators (recommended): create a new site from Packagist (no git clone):

composer create-project qiick/externa-core my-externa
cd my-externa
nvm use   # Node 24
php artisan externa:install

Pin a release if needed: qiick/externa-core:1.4.0. Pre-tag smoke from git: composer create-project qiick/externa-core:dev-develop my-externa.

create-project only copies .env (if missing) and runs key:generate — no migrate, seed, or SQLite assumption. Interactive first-run is externa:install (DB, APP_NAME/URL, stack profile, optional seed / AI URL, npm build).

Install only — not the update channel. composer create-project copies the app tree once. After you push that tree to your git remote, Packagist / Composer will not pull newer Externa releases into it. To stay current, track Git tags (or add upstream and merge vX.Y.Z), then run php artisan externa:upgrade for migrate / permissions / cache — optional opt-in code sync: php artisan externa:upgrade --sync-upstream=vX.Y.Z (dry-run first; on a create-project tree the first sync links it to upstream's history at the installed version's tag). See Upgrade. Docker operators: pull a newer GHCR image tag — same guide.

Package: packagist.org/packages/qiick/externa-core. Docs: Installation · Packagist & create-project. Historical beta tags needed @beta (or "minimum-stability": "beta").

Local paths: a local PHP environment serving <app>.test (Flock, Herd, Valet) or Docker Compose / GHCR quick-deploy — see Deploy with Docker and sections below. Health: GET /health/live, GET /health/ready.

CI / non-interactive: composer setup runs install → copy .env if missing → key:generate → migrate → npm install → npm run build. Still run db:seed, storage:link, and Wayfinder when needed. Do not use composer setup as the human create-project happy path.

Contributors (git clone)

git clone https://github.com/qiick-io/externa-core.git
cd externa-core
nvm use   # Node 24

cp .env.example .env
# Edit .env: set APP_URL to match how you browse. For no Redis, see “Minimal vs full” below.

touch database/database.sqlite   # if missing (SQLite default)

composer install
php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan storage:link

npm install
php artisan wayfinder:generate --with-form --no-interaction
npm run build   # or skip and rely on `npm run dev` / Vite HMR

Run locally

Minimal (no Redis — set QUEUE_CONNECTION=database and BROADCAST_CONNECTION=log in .env):

composer run dev
# serve + queue:listen + pail + vite

Or with a local environment serving the site at <app>.test: keep Vite + a queue worker (php artisan queue:listen --tries=1 --timeout=0). For HTTPS on a secured site, set VITE_DEV_SERVER_KEY and VITE_DEV_SERVER_CERT to the site's key and certificate so Vite serves over TLS too.

Full stack (Redis + realtime + Pulse — matches .env.example defaults):

  1. Start Redis.
  2. Keep QUEUE_CONNECTION=redis, BROADCAST_CONNECTION=reverb, and Reverb/Pulse keys from .env.example.
  3. Start the workers and Reverb (:8080; skip reverb:start if a login agent already runs it):
php artisan horizon
php artisan reverb:start --host=127.0.0.1 --port=8080
php artisan pulse:work
npm run dev

Standalone all-in-one (starts its own Reverb — conflicts if another Reverb already binds :8080):

composer run dev:full

Open APP_URL (your <app>.test host, http://localhost, or php artisan serve). Unauthenticated / redirects to login.

Dev Container (VS Code / Codespaces)

Open the repo in VS Code Reopen in Container or GitHub Codespaces — .devcontainer/devcontainer.json reuses compose.yaml (app service). Post-create runs composer/npm/migrate/seed. Docs: Installation.

Docker (local full stack)

Official local path is Compose (compose.yaml) — Sail stays in require-dev but is not required. Stack: app (nginx+php-fpm) + Vite + Postgres + Redis + Horizon + Reverb + scheduler + Pulse + Mailpit. Optional MinIO profile for FILES_DISK=s3.

Image base is pinned to php:8.4.28-fpm-bookworm. Runtime hardening lives in docker/php/php.ini (copied as zz-externa.ini): session.upload_progress.enabled=0, session.use_strict_mode=1, and body/multipart limits aligned with nginx client_max_body_size (post_max_size / upload_max_filesize 100M, max_input_vars=3000, max_input_nesting_level=64, max_file_uploads=20). Multipart admin uploads still work within those limits. memory_limit stays 512M (not -1). Nginx must not set PHP_VALUE / PHP_ADMIN_VALUE (docker/nginx/default.conf).

cp .env.docker.example .env
docker compose up --build
# App: http://localhost:8000  (COMPOSE_APP_URL overrides the host APP_URL inside containers)
# Reverb published on host :8081 (avoids a host Reverb on :8080)
# MinIO: docker compose --profile minio up --build
# MySQL: docker compose --profile mysql -f compose.yaml -f compose.mysql.yaml up --build
# MariaDB (host :3307): docker compose --profile mariadb -f compose.yaml -f compose.mariadb.yaml up --build
# Keycloak OIDC QA: docker compose -f compose.yaml -f compose.oidc.yaml --profile oidc up --build
#   → docker/keycloak/README.md (issuer http://localhost:8080/realms/externa)

Docker (quick production deploy)

Pull the multi-arch image from GHCR (ghcr.io/qiick-io/externa-core) — no local build:

cp .env.docker.quick.example .env
# Set APP_KEY, DB_PASSWORD, APP_URL; for first admin set RUN_SEED=true + INITIAL_SUPER_ADMIN_*
docker compose -f compose.quick.yaml up -d
# App: http://localhost:8080  · health: GET /health/ready

Build-from-source prod path: compose.prod.yaml + .env.docker.prod.example. Managed DB/Redis overlay: compose.prod.managed.yaml. Multi-arch bake/push: docker-bake.hcl, ./scripts/docker-buildx.sh (CI publishes on v* tags).

First boot is gated: RUN_MIGRATIONS / RUN_SEED (entrypoint defaults both off; Compose samples enable migrate for bring-up; seed stays opt-in). After bootstrap set RUN_SEED=false.

Probes: GET /health/live, GET /health/ready (+ Laravel /up). Docs: Deploy with Docker · Installation · Deployment · Reverse proxy.

First login (local / dev only)

php artisan db:seed creates permissions, roles (super-admin, admin, reader, public), and a super admin from config/super_admin.php:

Default
Email superadmin@example.com
Password password

Override with INITIAL_SUPER_ADMIN_* in .env before seeding. Local/dev only — change or remove before any shared or production deploy.

Product UI

Shots from the admin with demo content, in light and dark (they follow your GitHub theme). More in the docs.

Dashboard with collection, activity and storage insights
Dashboard — content, activity and storage at a glance

Products collection items list
Collection items — list, filters, and actions

Journal item editor with rich text and cover image
Item editor — relations, media and rich text

File manager with folders, photos, documents and a selected file
File manager — folders, assets and tags

AI assistant answer with reasoning, tool calls and sources
Assistant — answers and actions with your permissions

Item chat on a product with an image, reactions and a reply
Chat — item and private threads

Users list with roles, status and presence
Users — roles, groups, and status

Roles settings
Roles — project access control

Important environment variables

Copy from .env.example and tune. Full reference: Environment variables.

Group Keys (curated) Notes
App APP_NAME, APP_ENV, APP_KEY, APP_DEBUG, APP_URL APP_URL must match how you browse. HTTP is fine for password login, TOTP 2FA, and the rest of the CMS. Passkeys / WebAuthn need a secure context: HTTPS, or http://localhost / http://*.localhost. Plain http://*.test hosts are not secure — browsers hide PublicKeyCredential. Local HTTPS: secure the site in your local environment, set a matching APP_URL=https://…, and VITE_DEV_SERVER_KEY / VITE_DEV_SERVER_CERT for Vite. After switching back to HTTP, clear http + https cookies for the site or browsers may keep Secure session cookies → 419 Page Expired on login. Docs: Passkeys.
Database DB_CONNECTION (+ DB_* if not SQLite) Default sqlite. Also pgsql, mysql, mariadb — see Supported databases.
Session / cache SESSION_DRIVER, CACHE_STORE Default database.
Queue QUEUE_CONNECTION Full: redis + Horizon. Minimal: database + queue:listen.
Redis REDIS_CLIENT, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD Required for Horizon / Pulse redis ingest.
Broadcast / Reverb BROADCAST_CONNECTION, REVERB_*, VITE_REVERB_* Full: reverb. Minimal: log (60s notification poll). Restart Vite after VITE_REVERB_* changes.
Pulse PULSE_ENABLED, PULSE_INGEST_DRIVER, PULSE_* Prefer redis ingest + pulse:work. Disable with PULSE_ENABLED=false when not using Redis.
AI AI_DEFAULT_PROVIDER, LOCAL_AI_URL, LOCAL_AI_MODEL, … Optional; defaults target a local OpenAI-compatible gateway.
Files FILES_DISK, FILES_DUPLICATE_SYNC_MAX_BYTES, FILES_ZIP_*, AWS_*, GOOGLE_CLOUD_*, AZURE_STORAGE_* File manager disk: assets (local), s3 (S3/MinIO/R2), gcs (Google Cloud Storage), or azure (Azure Blob). Async zip / large duplicate need a queue worker. Zip archives stay on the shared local storage volume.

See .env.example for every key and inline comments.

Optional services

Service When you need it
Horizon Redis queues, dashboard Health Horizon cards, /horizon (super-admin).
Reverb + Echo Live admin notifications, presence / avatar connection indicator. Locally: php artisan reverb:start (or composer run dev:full).
Pulse Metrics for dashboard Health; full UI at /pulse. Needs ingest worker when using redis ingest.
Queue worker Always needed for zip downloads, large/bulk duplicates, and collection imports — even on the minimal stack.

Details: Redis · Horizon · Reverb · Pulse · Operations.

Tests and quality

Use Node 24 for frontend checks (nvm use).

composer test          # config:clear + Pint --test + Pest
php artisan test       # Pest only
composer lint          # Pint (fix)
composer lint:check    # Pint --test
composer ci:check      # npm lint/format/types + composer test

npm run lint:check
npm run format:check
npm run types:check

Pest browser tests live under tests/Browser/. See Testing.

Related projects

Project Role
Documentation Product & ops docs
externa-bruno Runnable Public CMS API + GraphQL requests
GitHub — externa-core This repository

License

MIT — see LICENSE.