bedrud-fe-state

Centralize and persist Zustand store state across Bedrud frontend sessions.

6|1|Updated May 4, 2026
One-click install
npx skills add https://github.com/themadorg/bedrud --skill bedrud-fe-state
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bedrud-fe-state
Source: https://github.com/themadorg/bedrud/tree/main/.agents/skills/bedrud-fe-state
Command: npx skills add https://github.com/themadorg/bedrud --skill bedrud-fe-state

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralize and persist frontend state across multiple Zustand stores to simplify UI state management.

Core Features & Use Cases

  • Centralized management of authentication, user data, theming, media preferences, recent rooms, and per-participant overrides using Zustand stores.
  • Persistence and session handling through clear APIs to initialize, set, and reset state across app reloads.
  • Use Case: A Bedrud frontend session refresh retains tokens, user, and UI preferences while preserving recent rooms.

Quick Start

Import and initialize the Zustand stores in your React app (e.g., useAuthStore, useUserStore, useThemeStore, useAudioPreferencesStore, useRecentRoomsStore, useVideoPreferencesStore, and useParticipantOverridesStore) and interact with their actions to manage authentication, users, theming, and device preferences.

Frequently Asked Questions about bedrud-fe-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist React frontend state across multiple tabs and sessions?

Persist React frontend state across multiple tabs by centralizing it in multiple Zustand stores with typed shapes, utilizing clear APIs to initialize, set, and reset data across app reloads. This handles auth tokens and UI preferences.

What is the best way to manage authentication and user profile state in a React app?

Managing authentication and user profile state in a React app is best handled by centralizing it within dedicated Zustand stores. These stores track auth tokens and user data, providing clear actions to initialize, set, and clear sessions.

Can I separate persistent UI preferences from transient data in Zustand stores?

Yes, you can separate persistent UI preferences from transient data in Zustand stores by defining persisted storage keys for session data and leaving non-persisted data for transient values like per-participant overrides.

How do I retain audio and video preferences when refreshing a React frontend?

Retain audio and video preferences during a React frontend refresh by applying centralized Zustand stores. These stores persist media preferences and recently joined rooms while clearing non-persisted transient data.

Does centralized state management work for complex frontends tracking per-participant overrides?

Centralized state management works for complex frontends tracking per-participant overrides by using Zustand stores. These stores manage typed shapes for transient data, ensuring clear APIs handle state initialization and resets.