mpa-url-state-bridge

Link URL query parameters to Svelte 5 state for multi-page app continuity.

2|7|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill mpa-url-state-bridge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mpa-url-state-bridge
Source: https://github.com/humanerd-drew/opencode-drewgent/tree/main/skills/software-development/mpa-url-state-bridge
Command: npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill mpa-url-state-bridge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Restores state continuity in multi-page apps, ensuring modals, sidebars, and tabs maintain their open states, while still supporting URL bookmarking and back-button restoration without altering visual design.

Core Features & Use Cases

  • State Preservation: Preserves app state like open modals and sidebars across page navigation.
  • URL Integration: Links app state to URL query params, allowing states to be bookmarked and restored.
  • SPA-Like Experience: Offers a single-page app experience in an MPA without visual or functional changes.

Quick Start

Start using this Skill to keep the menu sidebar open even after navigation to different pages in your MPA application.

Frequently Asked Questions about mpa-url-state-bridge

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

FAQPage Schema
How do I preserve modal and sidebar state across page navigation in a Svelte 5 multi-page application?

To preserve modal and sidebar state across page navigation in a Svelte 5 multi-page application, link app state to URL query parameters. This ensures UI elements remain open after navigation without altering visual design.

What is the best way to achieve a SPA-like experience in an MPA without changing visual design?

The best way to achieve a SPA-like experience in an MPA is by linking URL query parameters to app state. This maintains state continuity for modals and tabs while supporting URL bookmarking and back-button restoration.

Does Svelte 5 state management support URL bookmarking for open tabs and modals?

Yes, Svelte 5 state and derived state features support URL bookmarking for open tabs and modals. By integrating app state with URL query parameters, states can be bookmarked and restored seamlessly.

How do I restore UI state like open sidebars using URL query parameters in Svelte?

You can restore UI state like open sidebars by linking URL query parameters directly to Svelte 5 app state. This mechanism ensures that navigation between pages preserves state continuity and allows back-button restoration.

Can I maintain state continuity in any multi-page application or is this limited to Svelte?

While it utilizes Svelte 5 state and derived state features for state consistency, the underlying approach of linking URL query parameters to app state applies to any multi-page application requiring seamless UX during navigation.

Why do my open modals close after navigating to a different page in my multi-page app?

Open modals close after navigation in a multi-page app because state is lost during page reloads. Linking app state to URL query parameters preserves state continuity, ensuring modals remain open without altering visual design.