How thameiu/rgbast works
RGBAST is a color-palette management API. The main user workflow is to authenticate, create and organize palettes, and search palettes or users; palette models also represent snapshots, branches, and color changes. The tree documents additional color, bookmark, folder, and colleague capabilities. The sampled files establish auth and search call paths, but most domain implementations were not sampled, so their internal wiring is left unspecified.
Main entry points: main.py FastAPI app · auth.py Auth service · search.py Search controller · palette.py Palette service
Components 18
API entry
- FastAPI app
app/main.py - Auth routes
app/api/auth.py - Search routes
app/api/search.py - Palette routes
app/api/palettes.py - Folder routes
app/api/folders.py - Color routes
app/api/color.py - Color bookmarks
app/api/color_bookmarks.py - Colleague routes
app/api/colleagues.py
Identity
- Auth controller
app/controllers/auth.py - Auth service
app/services/auth.py - Mail service
app/services/mail.py
Palette domain
- Palette service
app/services/palette.py - Palette records
app/models/palette.py
Data and search
- Search controller
app/controllers/search.py - User service
app/services/user.py - Domain records
app/models - Database session
app/core/database.py
Other components
- User
Connections 19
- User → FastAPI app: requests API
- FastAPI app → Auth routes: registers routes
- FastAPI app → Search routes: registers routes
- FastAPI app → Palette routes: registers routes
- FastAPI app → Folder routes: registers routes
- FastAPI app → Color routes: registers routes
- FastAPI app → Color bookmarks: registers routes
- FastAPI app → Colleague routes: registers routes
- Auth routes → Auth controller: dispatches
- Auth controller → Auth service: calls
- Auth service → User service: looks up users
- Auth service → Mail service: sends email
- Search routes → Search controller: dispatches
- Search controller → User service: searches users
- Search controller → Palette service: searches palettes
- FastAPI app → Palette service: builds sitemap data
- Palette service → Palette records: uses records
- Auth service → Database session: uses session
- Search controller → Database session: receives session