How dappforce/subsocial works
Main Components
a) Blockchain Layer
• Substrate-based Node
• Social networking modules/pallets
• Core blockchain functionality
b) Off-chain Storage Layer
• IPFS integration for content storage
• PostgreSQL database for feeds/notifications
• ElasticSearch for full-text search
c) Client Layer
• Web UI (React-based frontend)
• Mobile responsive interface
• JavaScript SDK
d) Integration Layer
• API interfaces
• Polkadot API libraries
• SDK connections
e) Infrastructure Layer
• Docker containerization
• Deployment services
[Client Layer]
• ↕
[Integration Layer]
• ↕
[Blockchain Layer] ←→ [Off-chain Storage Layer]
• ↕
[Infrastructure Layer]
Specific Component Relationships
• Data flow between Web UI and Blockchain Node
• Content storage flow to IPFS
• Search queries to ElasticSearch
• Feed generation flow through PostgreSQL
• SDK interactions with various components
Key Technical Elements to Highlight
• Substrate Framework integration
• IPFS distributed storage
• PostgreSQL for social features
• ElasticSearch for search functionality
• React/TypeScript frontend
• Docker containerization
Additional Details
Annotations for:
• Web3 Foundation integration points
• Social networking features (blogs, posts, comments, etc.)
• Search and indexing mechanisms
• Feed generation and notification systems
Implementation Notes
• Decentralized nature of the system
• Separation of concerns between on-chain and off-chain storage
• Scalability considerations
• Mobile-first approach in UI layer