Download the latest FlatBB release: a flat, lightweight, AI-friendly PHP forum with a plugin marketplace.
SocialPHP · CSSGitHub @nwnuyhsOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
A flat, lightweight forum in plain PHP (SQLite or MySQL), built to be extended by AI assistants. Plugin marketplace at www.flatbb.com.
Translation pending
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
A flat, lightweight, AI-friendly forum. Plain PHP 8.1+, SQLite or MySQL 5.7+, no framework, no Composer, no build step. Three-column layout in the spirit of Discourse and Flarum, a plugin system that AI assistants can work with, and one-command publishing to the plugin marketplace at www.flatbb.com.Read the full README ↗Website: https://www.flatbb.com · Download: https://www.flatbb.com/download · Plugins: https://www.flatbb.com/market
A flat, lightweight, AI-friendly forum. Plain PHP 8.1+, SQLite or MySQL 5.7+, no framework, no Composer, no build step. Three-column layout in the spirit of Discourse and Flarum, a plugin system that AI assistants can work with, and one-command publishing to the plugin marketplace at www.flatbb.com.
php flatbb lang:sync <code>CLAUDE.md, docs/PLUGIN.md, docs/HOOKS.md, docs/API.mdPHP 8.1+ with pdo_sqlite or pdo_mysql, mbstring; gd for avatars and image resizing; curl and zip for the marketplace. Nginx or Apache with rewrite support (optional but recommended).
flatbb-<version>/. Upload its contents so that index.php is in the web root (a subdirectory also works).data/ and uploads/ writable by the web server.nginx.conf.example to your server block. Apache: .htaccess is included.https://your-site/cron?key=<key shown in Admin → Scheduled jobs> every minute, or run php flatbb cron from crontab.Docker (optional): inside the unzipped folder run docker compose up -d and open http://localhost:8080. The scheduler runs by itself; MySQL, upgrades and backups are in docs/DOCKER.md.
BaoTa / aaPanel note: paste nginx.conf.example into the site's "rewrite" box and comment out the panel's error_page 404 /404.html; line in the site config so flatbb can show its own 404 page.
php flatbb cron # run due jobs
php flatbb plugin:sync # register plugins in plugins/
php flatbb plugin:enable <id>
php flatbb plugin:check <id> # lint + rules
php flatbb plugin:publish <id> # upload to www.flatbb.com (FLATBB_TOKEN)
php flatbb search:rebuild
php flatbb schema:upgrade
php flatbb test # dependency-free test suite (tests/*_test.php)
php flatbb lang:sync <code> # create/refresh lang/<code>.php with every UI string
php flatbb admin:password <user> <newpass>
php flatbb migrate:import <file.sqlite> # move a SQLite site into this (MySQL) database
php flatbb upgrade:check # latest release on www.flatbb.com
php flatbb upgrade # in-place core upgrade (also in Admin → Tools)
Admin → Tools → Updates shows the latest release; Upgrade downloads the package from www.flatbb.com, verifies its checksum, replaces the core files (core/, app/, assets/, lang/, docs/, bundled plugins) and runs the schema upgrade. data/, uploads/ and your own plugins are never touched; the previous files are kept in data/backup-<version>-<date>/. Same thing from the shell: php flatbb upgrade.
Everything an AI assistant needs is one hosted file: https://www.flatbb.com/dev/plugins.md (rendered at https://www.flatbb.com/dev/plugins). Paste it into your assistant, describe the plugin, upload the zip in Admin → Plugins, or publish it at https://www.flatbb.com/market/publish.
Start with plugins/hello/plugin.php, read docs/PLUGIN.md. With Claude Code or another AI assistant, open the repository and say what you want; CLAUDE.md gives the assistant everything it needs. Publish with php flatbb plugin:publish <id> (see docs/PUBLISH.md).
core/ kernel (db, auth, hooks, plugins, render, markdown, search, cron, router)
app/ request handlers + views
assets/ app.css, app.js
plugins/ one folder per plugin
data/ config, SQLite database, cache (private)
uploads/ user files (public)
docs/ documentation
FlatBB is free software under the GNU AGPL-3.0-or-later (LICENSE). Use it, change it, run it for anyone: if you run a modified FlatBB as a service, the people using it must be able to get your changes under the same licence. Plugins and themes are not covered by that: they may use any licence (LICENSING.md). Companies that cannot accept the AGPL terms can obtain a commercial licence; contributions need the short CLA in CONTRIBUTING.md. Releases up to 0.1.68 were published under the MIT licence and stay MIT.
flatbb 是一个纯 PHP 8.1 的轻量论坛:无框架、无 Composer、无构建;SQLite 或 MySQL 5.7+;Discourse/Flarum 风格三栏布局;插件系统对 AI 友好,并支持一条命令把插件发布到官网 www.flatbb.com。
data/、uploads/ 可写,nginx 按 nginx.conf.example 配置伪静态,浏览器打开站点按向导安装。nginx.conf.example 内容粘贴到站点"伪静态",并把站点配置里的 error_page 404 /404.html; 注释掉。docs/PLUGIN.md(中文版 docs/zh/PLUGIN.md),参考 plugins/hello。用 Claude Code 等工具时直接打开仓库,CLAUDE.md 会引导 AI。php flatbb plugin:publish <id>,详见 docs/PUBLISH.md。