PHP & HTML, CSS, JS
All vanilla! Zero dependencies! No installation!
Better than WordPress
Lighter than Node.js
Saner than React/Angular/etc.
Built-in REST API
Auto-initialization from config
CRUD without code
Genes is designed to be instantly understood by both AI language models and human developers. Clean, readable, self-documenting code with zero magic.
Place a config.json in your data folder. Genes automatically connects to your database and creates the schema. Zero manual setup.
{
"database": {
"enabled": true,
"type": "mysql",
"host": "localhost"
}
}
Full CRUD on 5 tables without writing a single line of API code. Filtering, pagination, search, and sorting included.
GET /api/items?filters[type]=todo
POST /api/items
PUT /api/items/:id
DELETE /api/items/:id
No Composer. No npm. No build tools. No node_modules folder. Just copy three files and start coding.
genes.php (~6,400 lines)
genes.js (~1,300 lines)
genes.css (~1,700 lines)
<?php
require_once 'genes.php';
g::def("clone", array(
"Index" => function ($bits, $lang, $path) {
echo "<h1>Hello, World!</h1>";
}
));
g::run("route.handle");
{
"views": {
"Index": {
"function": "clone.Index",
"urls": { "en": "index" }
}
}
}
Your website is ready. Add database config to enable the built-in REST API with automatic CRUD endpoints.
Version 2.0 | PHP 5.6+ | MIT License | Zero dependencies