Spanish Total.js
English
Documentation For AI agents
Contents

Getting started

Install Documents, create the owner account and publish your first page.

.md
On this page

Requirements

  • Node.js 22 or newer, or Docker.
  • A PostgreSQL database. Put its connection in the config file before the first start:
database : postgresql://user:password@localhost:5432/documents

On an empty database Documents creates its tables by itself.

Install with Node.js

git clone https://github.com/totaljs-es/documents.git
cd documents
npm install
npm start

Open http://localhost:8000. For production, start it in release mode with npm run release.

Install with Docker

docker compose up -d

The compose file mounts the config file of the app in the container, so the database and every other setting stay there. The content lives in PostgreSQL, the uploaded images in the documents-data volume and the backups in documents-backups. Put a reverse proxy with HTTPS in front of the app.

Create the owner account

On the first start, Documents creates the owner, the account that can manage everything, with a random login and password. Open /admin/: the sign-in page shows them, with a button that fills in the form. They are also in the log (with Docker: docker compose logs documents).

Sign in with them and you are in the panel. Then, in Users, change that login and password for your own (at least 8 characters): until you do, the panel reminds you. The sign-in page shows them only until the first sign-in, so sign in as soon as the site is online.

Your first project

  1. In Projects, press New project. Give it a name and a slug: the slug is its address, for example /my-library/.
  2. The project starts with a version 1. Open the project and press New page.
  3. Choose the section (Guides, for example), write a title and the text in Markdown, and set the status to Published.
  4. Save. The page is online, together with its Markdown version for agents.

Set the public address

In Settings, write the public address of the site, for example https://docs.example.com. Documents uses it for the absolute links of llms.txt, the sitemap and the MCP server.

Made in Europe