readme: update project structure to reflect src layout

This commit is contained in:
blankie 2026-06-17 05:16:34 +00:00
parent b6f237f872
commit 018be70f74

View file

@ -215,21 +215,26 @@ For full feature docs, see the [tinyweb-forum README](https://codeberg.org/tinyw
## Project structure ## Project structure
``` ```
app.py — Entry point: boots Reticulum, starts HTTP gateway app.py — Entry point (shim, imports from tinyweb.app)
gateway.py — HTTP-to-RNS bridge (local or remote dispatch) pyproject.toml — Package configuration (src layout)
handlers/ — Route dispatcher and request handlers src/tinyweb/
__init__.py — Dispatch logic + re-exports __init__.py — Package marker
_helpers.py — CSRF, FTS sanitizer, pagination, response builders app.py — Boots Reticulum, starts HTTP gateway
search.py — Search (BM25, hybrid, trusted/remote results) db.py — SQLite database, FTS5, URL fetching, SSRF protection
pages.py — Add/edit/delete/bulk/bookmark handlers gateway.py — HTTP-to-RNS bridge (local or remote dispatch)
subscriptions.py — Sync, sharing, API, subscription CRUD templates.py — HTML template rendering and escaping
customize.py — Settings form, about page embeddings.py — Semantic search: ONNX, HNSW, reranking
tags.py — Tag list and browse rns_client.py — Reticulum client for fetching remote site lists
data.py — Export, import, semantic reindex handlers/
db.py — SQLite database, FTS5, URL fetching, SSRF protection __init__.py — Dispatch logic + re-exports
templates.py — HTML template rendering and escaping _helpers.py — CSRF, FTS sanitizer, pagination, response builders
rns_client.py — Reticulum client for fetching remote site lists search.py — Search (BM25, hybrid, trusted/remote results)
themes/ — Saved HTML templates (e.g. kodama.html) pages.py — Add/edit/delete/bulk/bookmark handlers
subscriptions.py — Sync, sharing, API, subscription CRUD
customize.py — Settings form, about page
tags.py — Tag list and browse
data.py — Export, import, semantic reindex
themes/ — Saved HTML templates (e.g. default.html, junimo.html)
``` ```
## Security ## Security