How galactickittenss/bards works
BARDS is a Python article-authoring and publishing server. Editors log in, create or edit article records, and preview them; public visitors browse a home page or published articles. The public server can run locally or as an AWS Lambda handler, with filesystem and S3 storage backends represented separately. Source excerpts do not show the Platform backend-selection wiring or all editor routes, so those connections are left out where uncertain.
Main entry points: ArticleServer.py Public handler · editor.py Editor handler · editor Editor pages · Article.py Article model
Components 19
Authoring
- Editor handler
editor.py - Editor pages
Assets/pages/editor - Editor scripts
Assets/scripts/editor.js - Article editing script
Assets/scripts/edit_article.js
Public publishing
- Public handler
bards/ArticleServer.py - Public templates
Assets/pages/templates - Site assets
Assets - Lambda handler
bards/ArticleServer.py
Article content
- Article model
bards/Article.py - Article records
Articles - JSON serialization
bards/JsonUtils.py
Runtime and storage
- Storage and server interface
bards/Platform.py - Local HTTP server
bards/http_server/Server.py - Local file storage
bards/http_server/FileUtils.py - Lambda request server
bards/aws/Server.py - S3 storage
bards/aws/FileUtils.py - Local preview entry
main.py
Other components
- Browser user
- AWS Lambda
Connections 18
- Browser user → Editor handler: sends requests
- Editor handler → Editor pages: serves pages
- Editor pages → Editor scripts: loads scripts
- Editor pages → Article editing script: loads script
- Editor handler → Article model: loads and updates
- Editor handler → Article records: reads and writes
- Editor handler → Editor pages: renders pages
- Browser user → Public handler: requests pages
- Local preview entry → Public handler: starts preview
- Public handler → Article model: loads articles
- Public handler → Article records: lists and checks
- Public handler → Public templates: renders pages
- Public handler → Site assets: serves resources
- Article model → JSON serialization: serializes records
- JSON serialization → Article records: loads and saves
- AWS Lambda → Lambda handler: invokes
- Lambda handler → Lambda request server: dispatches request
- Local HTTP server → Public handler: dispatches requests