Brand logo
phis.dev
  • Accueil
  • Documentation
  • Télécharger
  • À propos de nous
Architecture
Three boxes joined in a chain above a database

How phis fits together

The browser, the web server, the Sites, the Core API, Add-ons and PostgreSQL in one picture, and who speaks to whom.
On this page
In short
How it fits
What matters
Example
Brand logo
phis.dev
Liens rapides
Privacy
Télécharger
Installation
Documentation
Architecture
À propos de nous
GitHub
Support
Conditions générales
Contact
S’inscrire
© 2026 phis.dev. Tous droits réservés.
The parts of a phis installation and the way requests travel between them, numbered as in the list below

In short

A phis installation is one central server, phis, and any number of Sites in front of it. The server keeps everything that lasts; a Site turns it into pages. This page is for anyone who wants the whole picture before reading about one part of it.

How it fits

  1. 1.
    Browser. Visitors, editors and admins. A browser only ever talks to the Site's own address.
  2. 2.
    Web server. nginx or Apache terminates TLS and hands each domain to its Site.
  3. 3.
    Site. One Next.js application per website, built from npm packages, rendering on the server.
  4. 4.
    @phis/ui and Modules. The Builder, the Widgets, the Layouts and the Areas, and the Modules compiled into the Site, each of which can be switched off or replaced.
  5. 5.
    phis, the Core API. A Debian package run by systemd. It owns users, Sites, Pages, media, translations and jobs, and renders no pages for visitors.
  6. 6.
    Add-ons. Server extensions installed into phis at runtime: routes, webhooks, jobs and tables.
  7. 7.
    PostgreSQL. One schema, phis, holds everything the server keeps.
  8. 8.
    Storage and services. Media on disk or S3-compatible storage, translations through DeepL, payments through their Add-ons.
  9. 9.
    CLI. The phis command sets up and runs the installation on its host: the database and its schema, the Sites and their releases, the Add-ons, and the configuration the web server and systemd read.
  10. 10.
    Agents. An agent speaks to the API with a token of its own, and uses the same command on the host.
  11. 11.
    Host. One machine carries all of this; a larger installation spreads it over several.
  12. 12.
    phis-host. An addition for many hosts, still to come: release distribution, health and rollback across them, and the privileged work on each. One host is complete without it.

What matters

  • The browser speaks to the Site only. No route of the server answers a browser from another origin.
  • The Site speaks to phis with its token and its Site key, from its own server.
  • phis speaks to PostgreSQL, storage and services. Add-ons run inside it and reach them through it.
  • The CLI works on the host, not through the API alone. It reaches the database, the Sites and the configuration files directly, which is why it runs where the installation runs.
  • Two halves, never imported across. A product can carry a Module half for the Site and an Add-on half for the server in one package; the halves share values, not code.
  • One installation, several Sites. Each has its own pages, languages and look on the same server.

Example

A visitor opens a page:
  1. 1.
    The browser asks the Site's address; the web server hands the request to that Site.
  2. 2.
    The Site reads the Page, its navigation and its texts from phis with its token.
  3. 3.
    phis reads them from PostgreSQL and answers in the visitor's language.
  4. 4.
    The Site renders the page on the server and sends it to the browser.