-
Notifications
You must be signed in to change notification settings - Fork 0
Home
github-actions[bot] edited this page Apr 9, 2026
·
10 revisions
this wiki serves to provide documentation to developers and AI agents developing the website.
these pages are mirrored on the GitHub repository's wiki (https://github.com/ashprids/fridg3.org/wiki) and the website itself (https://fridg3.org/wiki).
when docs and code disagree, trust the code.
- Architecture
- Routing and Rendering
- Frontend and Templates
- Routes and Features
- API Reference
- Data Contracts
- Deployment and Operations
- Development Workflow
- Development Environment Setup
fridg3.org is a PHP-first, file-backed personal site with a shared HTML shell, route-local content templates, and one big JavaScript layer for navigation and interactive features.
Core traits:
- most routes are directory-based and use
index.php+content.html - rendering is mostly server-side
-
template.htmlis the default shell -
template_mobile.htmlis selected when mobile view is enabled -
main.jsadds SPA-ish navigation, settings, bookmarks, toast bot UI, page views, and other client behaviors - runtime content lives under
/dataand is intentionally excluded from deployment sync
Useful files:
README.mdTECHNICAL_REFERENCE_DEV.mdTECHNICAL_REFERENCE_AI.mdlib/render.phptemplate.htmltemplate_mobile.htmlmain.jsstyle.css.github/workflows/*scripts/*
The current technical references are solid, but a few real routes/features live in code and were not fully covered there:
-
account/admin/andaccount/admin/edit/ discord/merch/others/fridge-builds-websites/- mobile template selection via
lib/render.phpandtemplate_mobile.html - deploy exclusions in
.rsyncignore - custom lint scripts in
/scripts
If you need to change:
- one page layout: edit that route’s
content.html - one page’s server behavior: edit that route’s
index.php - shared UI: edit
template.html,template_mobile.html,style.css, ormain.js - persistence or auth: edit the relevant PHP writer/reader and update the data contract