bolt1 file — zero dependencies

Everything. One File.

No framework. No dependencies. No vendor directory. Every capability listed below ships inside a single index.php you can upload in 30 seconds and read from top to bottom.

View source on GitHubDeployment guide
Deployment

Zero Infrastructure. Zero Setup.

No provisioning, no pipeline, no package manager. The site configures itself on the first request.

upload_file

Single-File Deployment

Upload index.php to your web host. Visit your domain. That is the entire deploy. No build step, no composer install, no database provisioning, no environment file to create.

content_copy

Two-File Migration

Moving a live site is two cp commands. Copy index.php and site.sqlite. Every page, post, user account, media reference, revision, and setting comes with it. Staging, client handoff, new host — same two commands.

auto_fix_high

Self-Creating Infrastructure

On first request, MonolithCMS creates site.sqlite, runs all 29 database migrations in milliseconds, writes .htaccess, creates cache directories, and launches the 4-step setup wizard. Nothing to configure before you arrive.

AI Generation

Real Sites From First Principles

Describe your project in natural language. The AI designs and builds the full site — no templates, no presets, no cookie-cutter output.

psychology

Three AI Providers

Connect to OpenAI, Anthropic Claude, or Google Gemini — switchable from the admin settings panel with no code changes. Your API key, your choice of model, your cost.

palette

Harmonised Design Systems

The AI generates a full colour palette — primary, secondary, accent, background, and text colours all harmonised — plus a typographic scale using fluid clamp() sizing. Not a colour picker. A designed system.

view_quilt

Page-by-Page Block Selection

The AI selects and orders blocks for every page individually based on your brief — hero, feature grids, testimonials, pricing, CTAs — all specific to what each page needs, not a copy-pasted layout.

person

Human-in-the-Loop

The AI stores a complete plan for review. Preview the full site before a single character is written to the live database. Edit individual blocks, regenerate one page, or approve the whole plan. Approve writes everything atomically. Reject discards it completely.

Security

Production Security. Zero Configuration.

Every security control is automatic and on by default. There is no security checklist to work through before going live.

bcrypt Cost 12

All passwords are hashed with bcrypt at cost factor 12. MFA codes are also bcrypt-hashed before storage — a leaked database does not expose codes.

HMAC-SHA-256 CSRF Tokens

CSRF tokens are derived per-request via HMAC-SHA-256 and verified with constant-time comparison. They are never stored in a database or session — there is nothing to steal.

IP Rate Limiting

5 attempts per 15-minute window on login. Contact form submissions are limited to 5 attempts per hour. Enforced at the application layer with no external dependency.

Email MFA

6-digit MFA codes delivered by email, bcrypt-hashed in the database, and valid for 10 minutes. No TOTP app required. No third-party auth service.

Database Protected on Both Servers

On Apache, a .htaccess file is auto-written on first request, blocking direct access to .sqlite, .db, .env, and more. On Nginx, a PHP-level 403 fires before any routing logic. Defense in depth, automatic.

CSP Nonces & HSTS

Per-request Content Security Policy nonces keep inline scripts safe. HSTS headers are sent on HTTPS. Sessions are stored in SQLite instead of files — portable and not exposed in a shared /tmp.

Performance

Three-Layer Caching That Maintains Itself

Caching is event-driven and automatic. No artisan cache:clear. No SSH. No stale pages after a deploy.

web

Full-Page HTML Cache

Complete rendered HTML for every public page is cached with a 1-hour TTL. Subsequent requests are served directly from cache — no database queries, no template rendering, no PHP logic beyond a file read.

TTL: 1 hour
layers

Partial Caching

Nav, header, and footer partials are cached separately from page content. Updating your nav only invalidates nav cache — not every cached page on the site. Surgical invalidation, automatic.

Scoped invalidation
style

Theme CSS Cache

Generated theme CSS is cached by content hash. When you update a theme, the hash changes and the new CSS is served immediately. Old hash, old file — no stale styles, no cache-busting hacks needed.

Content-hash keyed

updateVersion-aware cache clearing: When you deploy a new index.php, the version number embedded in the file is checked against a .version file on the next request. If they differ, all page and partial caches are cleared automatically. No SSH required.

Content Management

Full CMS. One File. No Compromises.

The admin UI, block editor, blog module, media library, and role system are all inside the same file you deploy. Nothing to install separately.

dashboard_customize

Visual Block Editor

Build and edit pages using a block-based editor in the admin UI. Reorder, add, and remove blocks without touching code. Non-technical editors can manage content without breaking the layout.

article

Blog Module

Full blog with post creation, editing, category and tag management, scheduling, and archive pages. Rendered HTML is cached like all other pages — blog posts are not second-class content.

perm_media

Media Library

Upload and manage images and files from the admin panel. Media references are stored in SQLite and travel with the database on a two-file migration — no orphaned files, no broken images.

manage_accounts

Role-Based Access Control

Three roles: admin, editor, and viewer. Invite clients as editors so they can manage their own content. Keep sensitive settings admin-only. No plugin needed — it is part of the core.

history

Revision History

Every edit is stored as a revision in SQLite. Page and post history travels with the database. Roll back a change without touching a backup file or running a restore command.

route

Built-In Router

Clean URLs, query string routing, and slug management are all handled inside index.php. No mod_rewrite rules to write beyond the auto-generated .htaccess.

1
file to deploy
~18,629
lines of PHP
29
migrations on first boot
0
dependencies
verifiedGNU GPL v3

Open Source. Auditable. Yours.

Open source under the GNU General Public License v3. Self-hosting is fully permitted. There is no phone-home, no cloud dependency of any kind. Your data is in a file on your server. Your code is a single file you can read from top to bottom.

wget https://raw.githubusercontent.com/agim/MonolithCMS/main/index.php
# Upload index.php to your server
# Visit yourdomain.com
# Done.
View MonolithCMS on GitHubRead the deployment guideSee live AI-generated examples