Skip to content

SDK TypeScript: add React hooks for common operations #7

@Tristan-Stoltz-ERC

Description

@Tristan-Stoltz-ERC

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions