How rj-cloud-sg/posthaven works
This is a FastAPI blog application: visitors browse rendered post pages or use the API to list and manage posts and accounts. The main app routes requests to post and user APIs; handlers validate input, apply authentication where required, and access persisted users, posts, and reset tokens. Account workflows include password reset email and profile-image processing. The source excerpts show these backend relationships; README content is absent, so additional capabilities are not inferred.
Main entry points: users.py User API · main.py Web app and pages · posts.py Post API · auth.py Authentication and tokens
Components 14
Web application
- Web app and pages
main.py - Page templates
templates - Browser assets
static
Blog and accounts
- Post API
routers/posts.py - User API
routers/users.py - Request and response schemas
schemas.py - Authentication and tokens
auth.py - Blog and account models
models.py
Persistence and configuration
- Async database sessions
database.py - Application settings
config.py
Account integrations
- Profile image processing
image_utils.py - Password reset email
email_utils.py
Other components
- Visitor
- SMTP service
Connections 23
- Visitor → Web app and pages: sends requests
main.py - Web app and pages → Post API: registers routes
main.py - Web app and pages → User API: registers routes
main.py - Web app and pages → Async database sessions: queries pages
main.py - Web app and pages → Blog and account models: queries posts
main.py - Web app and pages → Page templates: renders pages
main.py - Visitor → Browser assets: loads assets
- Post API → Async database sessions: reads and writes
routers/posts.py - Post API → Blog and account models: queries posts
routers/posts.py - Post API → Authentication and tokens: requires identity
routers/posts.py - Post API → Request and response schemas: validates and returns
routers/posts.py - User API → Async database sessions: reads and writes
routers/users.py - User API → Blog and account models: queries accounts
routers/users.py - User API → Authentication and tokens: uses token helpers
routers/users.py - User API → Request and response schemas: validates and returns
routers/users.py - User API → Password reset email: sends reset email
routers/users.py - User API → Profile image processing: processes images
routers/users.py - Authentication and tokens → Async database sessions: looks up users
auth.py - Authentication and tokens → Blog and account models: loads user model
auth.py - Authentication and tokens → Application settings: uses token settings
auth.py - Blog and account models → Async database sessions: declares mappings
models.py - Password reset email → Application settings: uses mail settings
email_utils.py - Password reset email → SMTP service: sends messages
email_utils.py