How solana-labs/solana-program-library works
High-Level Architecture Components
a) Core Program Categories:
• Token Programs (token, token-2022, associated-token-account)
• Governance Programs (governance, feature-proposal)
• DeFi Programs (token-lending, token-swap, stake-pool)
• Infrastructure Programs (account-compression, shared-memory, name-service)
• Utility Programs (memo, instruction-padding)
b) Supporting Components:
• Client Libraries (JavaScript/TypeScript SDKs)
• CLI Tools
• Testing Infrastructure
• Documentation System
Relationships and Interactions
a) Program Dependencies:
• How programs interact with each other (e.g., token-lending depends on token)
• Shared library dependencies (e.g., math library used by multiple programs)
b) Client Interactions:
• SDK packages to their respective programs
• CLI tools interfacing with programs
Specific Design Elements
Use these visual elements:
• Hexagons for on-chain programs
• Rectangles for client libraries
• Rounded rectangles for CLI tools
• Clouds for external interfaces
• Green for audited programs
• Yellow for unaudited programs
• Blue for client libraries
• Purple for infrastructure components
Implementation Details
Create sections showing:
a) Program Architecture:
[Solana Runtime]
• [SPL Core Programs]
• Token Programs
• Governance Programs
• DeFi Programs
• [Client Libraries]
• JavaScript SDKs
• Rust Crates
• [Development Tools]
• CLI Tools
• Test Framework
b) Deployment Status:
• Deployed programs with version numbers
• Audit status and dates
• Program relationships with Solana runtime
Notes Section
Notes about:
• Security considerations
• Deployment requirements
• Version compatibility
• Audit status
• Migration status (for programs moving to separate repos)