How lonewolfden/project_onion works
Project Onion is a client/project relationship workspace: users browse or register engagements, capture identifiers and source links, then review project cards, notes, contacts and key moments. Its main UI supports editing, archiving with justification, Client 360 views, privacy controls and a grounded Smart Assistant. Documented integrations add connected-record capture and GDP/SharePoint/Excel-derived material. The graph reflects README capabilities and sampled service behavior; several adapter and governance implementations were not sampled, so their internal wiring is intentionally limited.
Main entry points: App.js Project workspace · service.py Anchor service · bookmarklet.js Connected capture · main.js PWA entry
Components 21
Workspace experience
- Project workspace
modules/experience-pwa/static/js/components/App.js - PWA entry
modules/experience-pwa/static/js/main.js - Offline state
modules/experience-pwa/static/js/core/FailoverDB.js
Capture and ingest
- Connected capture
modules/connected-bookmarklet/bookmarklet.js - Capture endpoint
modules/connected-bookmarklet/service.py - GDP adapter
modules/gdp-adapter/service.py - Excel parser
modules/integrations-excel-parser - SharePoint adapter
modules/integrations-sharepoint-adapter
Project domain
- Anchor service
modules/platform-anchor/service.py - Anchor records
modules/platform-anchor/service.py - Cards service
modules/domain-cards-store/service.py - Fusion engine
modules/domain-fusion-engine/fuse.js
Search and intelligence
- Smart Assistant
modules/experience-pwa/static/js/components/App.js - AI client
modules/experience-pwa/static/js/core/AiClient.js - Vector search API
modules/vector-service/main.py - Vector store
modules/vector-service/store.py
Governance
- PII screening
modules/experience-pwa/static/js/core/PiiGate.js - Relationship model admin
modules/admin-relationship/service.py - Relationship model
data/seed/relationship_model.json
Other components
- Workspace user
- OpenRouter
Connections 19
- Workspace user → PWA entry: opens workspace
- PWA entry → Project workspace: renders
- Project workspace → Offline state: reads and writes
- Project workspace → Anchor service: manages projects
- Anchor service → Anchor records: persists records
- Project workspace → Cards service: loads project cards
- Project workspace → Smart Assistant: asks questions
- Smart Assistant → AI client: queries context
- AI client → OpenRouter: requests completion
- Smart Assistant → Vector search API: searches cards
- Vector search API → Vector store: queries and updates
- Workspace user → Connected capture: captures engagement
- Connected capture → Capture endpoint: opens installer
- Connected capture → Anchor service: submits identifiers
- GDP adapter → Anchor service: provides engagement data
- Excel parser → Cards service: imports weekly data
- SharePoint adapter → Anchor service: supplies source links
- Project workspace → PII screening: screens note text
- Relationship model admin → Relationship model: reads and updates