v1.0.0Version 1.0: 122 business website templates in Tailwind HTML, Tailwind + Vite, Next.js, React, Astro, Vue, Nuxt, SvelteKit and Laravel.

Docs/04 Features

Accounts and database

Set up the 7 Briks feature templates: .env, migrations, seed data, first admin, SQLite, Turso or PostgreSQL, and changing the schema.

Updated 23 November 2026

You can run a template with email and password accounts, an admin area and its own database by following the steps below.

Which templates have features

bookshop, immigration-counsel, restaurant-stock-dashboard, solar-installation, tattoo-studio, vet-practice-dashboard and yacht-brokerage. They have accounts, an admin area, their own database and pages such as bookings, orders, member portals or dashboards. No template in version 1.0.0 uses a payment processor.

First run

  1. Copy the settings file with cp .env.example .env.
  2. Fill in .env using the list below.
  3. Install the packages with npm install.
  4. Create the tables with npm run db:migrate.
  5. Add sample records with npm run db:seed. This step is optional.
  6. Start the site with npm run dev.

Settings in .env

  • DATABASE_URL is the database address. See the next section.
  • DATABASE_TOKEN is the token for Turso. Leave it out for the other databases.
  • SITE_URL is the public address of the site. It is used in the links inside emails.
  • SITE_HOSTS lists other addresses of the site, separated by commas.
  • AUTH_SECRET is a random string of at least 32 characters. Create one with openssl rand -base64 32.
  • ADMIN_EMAIL and ADMIN_PASSWORD are the first admin account.
  • MAIL_PROVIDER, MAIL_FROM, RESEND_API_KEY and SMTP_URL set up email. See Email.
  • IP_HEADER is the header that carries the visitor's IP address, used for rate limits. Use x-forwarded-for. Behind Cloudflare, use cf-connecting-ip.
  • FILES_DIR is the folder for uploads.
  • STORAGE_QUOTA_BYTES is the storage limit.

Choose a database

The same code runs on all three.

  • SQLite is the default: DATABASE_URL=file:./data/site.db.
  • Turso: DATABASE_URL=libsql://… with your DATABASE_TOKEN.
  • PostgreSQL: DATABASE_URL=postgres://user:password@host:5432/name.

Sign in as the first admin

There is no admin account until the first sign-in.

  1. Put your own email and a password of at least 10 characters in ADMIN_EMAIL and ADMIN_PASSWORD.
  2. Start the site and go to /admin/sign-in.
  3. Sign in with those values. This creates the account, verified, with the admin role.
  4. Change the password.

Visitors sign up at /account/sign-up and sign in at /account/sign-in.

Change the tables

  1. Edit db/schema.ts.
  2. Run npm run db:generate. It writes new migrations for both databases, in db/migrations/sqlite and db/migrations/postgres.
  3. Run npm run db:migrate.

Put it online

Feature templates run on a Node host. See Deploy a Node site.

Next · 04 FeaturesEmailSend emails from a Briks feature template with SMTP or Resend, set MAIL_FROM and test with the console provider before you go live.

Your next client site is mostly built.

122 websites, $79 once, for every site you build. New templates and updates are free for life.

Works with any AI agent

  • Claude
  • Claude Code
  • OpenAI
  • Codex
  • Grok
  • Grok Bot
  • OpenClaw
  • Hermes Agent
  • Gemini
  • Antigravity
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Cline
  • Kiro
  • Junie
  • Replit
  • v0
  • Ollama

+ any agent that reads AGENTS.md