The TypeScript SDK (sdk-ts/, 37 modules, ~226K LOC, 6,316 tests) provides raw API bindings but no framework-specific helpers.
Proposed hooks
useProposal — fetch and subscribe to proposal updates
useIdentity — current user identity and tier
useGovernanceVote — cast votes with optimistic updates
useClusterEvents — subscribe to cluster signal streams
useConsciousnessGating — current tier and progression
Requirements
- WebSocket subscription management (auto-connect/reconnect)
- Optimistic updates with rollback on failure
- Error states and loading indicators
- TypeScript generics for type-safe responses
This would dramatically lower the barrier for web developers building on Mycelix.
The TypeScript SDK (
sdk-ts/, 37 modules, ~226K LOC, 6,316 tests) provides raw API bindings but no framework-specific helpers.Proposed hooks
useProposal— fetch and subscribe to proposal updatesuseIdentity— current user identity and tieruseGovernanceVote— cast votes with optimistic updatesuseClusterEvents— subscribe to cluster signal streamsuseConsciousnessGating— current tier and progressionRequirements
This would dramatically lower the barrier for web developers building on Mycelix.