Custom UI
This guide covers how to build custom governance UIs
Custom UI Integration
Important: Repository Access
Building Your Own Governance UI
Using the SDK Directly
npm install @realms-today/spl-governance @solana/web3.jsimport { getRealm, getAllGovernances } from '@realms-today/spl-governance';
async function RealmDashboard({ realmAddress }) {
const realm = await getRealm(connection, realmAddress);
return {
name: realm.account.name,
communityMint: realm.account.communityMint.toBase58(),
authority: realm.account.authority?.toBase58(),
};
}Plugin UI Integration
Realms UI Architecture (Private Repo)
Key Technologies
Adding a New Plugin to the UI
Embedding Governance Widgets
Proposal Status Widget
Treasury Balance Widget
Contact for UI Repo Access
Last updated