C++ SCHX ยท rev 4

CPGH Framework Overview

CPGH (Custom Page Generation & Hosting) is a full-featured web framework built into HSX with page routing, protocols, middleware, database, caching, and session management.

.Page files with sections, layouts, and authentication

Custom protocols like DO://Page/Index

Built-in SQLite-like file-based database

In-memory caching with TTL and LRU eviction

Session management with authentication

Per-client rate limiting with blocking

{`project/ โ”œโ”€โ”€ .CPGH/ โ”‚ โ””โ”€โ”€ STU/ โ”‚ โ”œโ”€โ”€ _CPGH.Protcol # Protocol definitions โ”‚ โ”œโ”€โ”€ Docs/ # Generated documentation โ”‚ โ”œโ”€โ”€ F/ # Page files โ”‚ โ”‚ โ”œโ”€โ”€ _Imports.Page โ”‚ โ”‚ โ”œโ”€โ”€ _Landing.Page โ”‚ โ”‚ โ”œโ”€โ”€ _Main.Page โ”‚ โ”‚ โ””โ”€โ”€ _Router.Page โ”‚ โ””โ”€โ”€ F/_Optional-Files/ โ”‚ โ”œโ”€โ”€ Config.json # CPGH configuration โ””โ”€โ”€ TWT.Config # TWT styling (optional)`} ๐Ÿš€ CPGH in Docker CPGH projects are automatically detected and run inside Docker containers using the schoolgit/runner:v4-terminal image.

๐Ÿ“ CPGH Project Structure

๐Ÿš€ CPGH in Docker

Pages

Protocols

Database

Cache

Sessions

Rate Limiting