genes

Last human-made API & UI framework

PHP & HTML, CSS, JS

All vanilla! Zero dependencies! No installation!

UI Framework

Better than WordPress

Lighter than Node.js

Saner than React/Angular/etc.

  • CSS framework included
  • JS framework included
  • HTML partials & templates
  • Multi-language support
  • Zero build tools
  • ~1,300 lines of JavaScript
  • ~1,700 lines of CSS
  • Works in any browser

API Framework

Built-in REST API

Auto-initialization from config

CRUD without code

  • 5-table schema included
  • Filtering & pagination built-in
  • Multi-tenant ready
  • Works with/without database
  • PHP 5.6+ compatible
  • ~6,400 lines of PHP
  • MySQL & SQLite support
  • JSON auto-handling

Built for AI Services & Human Developers

Genes is designed to be instantly understood by both AI language models and human developers. Clean, readable, self-documenting code with zero magic.

Auto-Initialization

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"
  }
}

Built-in REST API

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

Zero Dependencies

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)

Get Started in 60 Seconds

1. Create index.php

<?php
require_once 'genes.php';

g::def("clone", array(
    "Index" => function ($bits, $lang, $path) {
        echo "<h1>Hello, World!</h1>";
    }
));

g::run("route.handle");

2. Configure routing (data/config.json)

{
  "views": {
    "Index": {
      "function": "clone.Index",
      "urls": { "en": "index" }
    }
  }
}

3. That's it! Open in browser

Your website is ready. Add database config to enable the built-in REST API with automatic CRUD endpoints.

Great! Now that we've addressed the needs of more than 90% of websites...

Join developers who've chosen simplicity over complexity. Start building with Genes today.

Version 2.0 | PHP 5.6+ | MIT License | Zero dependencies