Skip to content

Pack

Full-stack web service starter

Rules and patterns for a web service built on Next.js App Router, React, TypeScript, StyleX, Prisma on PostgreSQL and Better Auth, run in Docker behind a tunnel on a server of one's own: architecture, accounts, design, legal pages for a Swedish operator, deploy and verification, backup, alerts, vendors, payments and working method.

Id
fullstack
For
AI coding agents and developers working in a project copied from the full-stack starter, or setting up a service on the same pattern.
Roots
20
Pinned roots
fullstack/overview, fullstack/working-method
Version

Content

The 20 roots in the pack

Each root is listed with its key, title, kind and first two sentences. The full text is saved in the biome at installation, and an agent reads it with the root's key.

  1. fullstack/overviewKind: knowledgePinned

    Full-stack starter, overview and how to start a project

    This pack describes a full-stack starter for web services and the rules that come with it. The starter is a runnable stack with accounts, administration, operations and legal pages.

  2. fullstack/working-methodKind: rulePinned

    Working method for agents in a full-stack starter project

    These rules apply in every session in a project built from the starter. The project's own AGENTS.md holds what is permanent for that project (the client's requirements, the language principle, the working method, where the documents are) and wins where it differs.

  3. fullstack/architectureKind: architecture

    Stack and architecture of the full-stack starter

    Where code goes and how the parts connect in a project copied from the starter. Versions are in fullstack/staying-current; read that root before relying on memory for any framework API.

  4. fullstack/accounts-adminKind: security

    Accounts and administration model

    What the account part of the starter does, how it is protected and how it is activated. Technical function and activation in production are separate steps: activation also needs the routines and agreements in place.

  5. fullstack/design-principlesKind: design

    Design principles for the interface

    What applies to the interface in every service built from the starter. How the theme is built is in fullstack/theming; this root says what the theme must achieve and what stays the same in every service.

  6. fullstack/themingKind: design

    Theming with StyleX, tokens and themes

    How the styles are built, how a new theme is made and which rules StyleX sets. Everything described is in src/theme/ and src/components/ui/.

  7. fullstack/data-protectionKind: knowledge

    Data protection records and impact assessment

    The starter has two templates behind the privacy policy: the processing record for a service and the structure of an impact assessment. The policy is what the visitor reads; the record is what shows that the policy is true.

  8. fullstack/paid-plansKind: practice

    Paid plans, consumer purchases and plan limits

    What needs to exist when a service starts charging: purchase terms for companies and private persons, prices shown correctly, limits that are checked where they are reached, and a course of events for the one who ends up over a limit. The examples use a free plan and a paid plan per team.

  9. fullstack/payments-stripeKind: knowledge

    Payments with Stripe

    How a service from the starter takes payment through Stripe: the account, the choices in Stripe's setup, the keys, the code and the tests. Stripe's setup screens and defaults change; check Stripe's documentation before relying on a screen name or default (fullstack/staying-current).

  10. fullstack/server-patternKind: architecture

    Server pattern and Docker conventions

    How apps are placed, connected, exposed and operated on a server of one's own. The same text applies to every app on the server.

  11. fullstack/server-setupKind: operations

    Setting up a new server and a new app on a server

    Two procedures: from an ordered machine to a server that follows the pattern in fullstack/server-pattern, and from an empty /opt/stacks/<app> to a service that answers through the tunnel. Changes on a server go through version-controlled scripts (fullstack/working-method).

  12. fullstack/deploy-verificationKind: operations

    Deploy and verification

    One script, scripts/deploy.mjs, is the workstation's only route to verification and production. Two variants of the script exist, and they differ in where the build and the tests run.

  13. fullstack/backup-restoreKind: operations

    Backup and restore

    The deploy script takes a database dump before every migration, in /opt/stacks/<app>/backups/. The dump lies on the same disk as the database and covers a failed migration.

  14. fullstack/alerts-monitoringKind: operations

    Alerts and monitoring

    How operations gets to know that something is wrong without anyone looking. There are two parts.

  15. fullstack/third-parties-mailKind: operations

    Third parties, DNS and mail

    The services the stack is built for, what they do, what is configured per new service and what applies to personal data. Account details, customer numbers and signed agreements never go in a shared document or the repository.

  16. fullstack/findabilityKind: practice

    Findability, learn pages, FAQ and sitemap

    How the service's public pages are made possible to find for someone who searches for an answer. One page answers one question.

  17. fullstack/workstation-resourcesKind: rule

    Coding agents and the workstation's resources

    Rules for work where one or more coding agents build, test and download on the workstation. They cover disk, processes, the user's own files and publishing.

  18. fullstack/lessons-learnedKind: knowledge

    Lessons learned from taking the pattern into operation

    The faults behind the way the scripts look, each with the rule that keeps it away. Read the section that matches the file you are about to change, so that a simplification does not bring a fault back.

  19. fullstack/staying-currentKind: practice

    Staying current, versions and where to check

    An agent's built-in knowledge of these frameworks goes stale. Before you rely on memory for an API, a configuration key or a command, check what the project has installed and what the documentation for that version says.

Installing

Install the pack in a biome

  • A person installs the pack in the app.
  • An agent installs it with the operation pack_install and the id fullstack.

The installed roots are ordinary roots in the biome, and the pinned ones are given to every session when it starts.

Read more

  • How installing, removing and exporting work: Packs.
  • The pack operations: the documentation.