workleap-squide
Squide Framework
Squide is a React modular application shell. Use only documented APIs.
Core Concepts
- Runtime: The
FireflyRuntimeinstance is the backbone of a Squide application. Never instantiate directly — useinitializeFirefly(), which wires up plugins, logging, and the module lifecycle. - Modular Registration: Modules register routes, navigation items, and MSW handlers via a registration function, assembled by the host at bootstrapping.
- Public vs Protected Routes: Routes default to
protected(rendered underProtectedRoutes). UseregisterPublicRoute()for public routes. Protected routes fetch both public and protected global data. - Deferred Registrations: Navigation items dependent on remote data or feature flags use two-phase registration — return a function from the registration to defer items to a second phase.
Key Patterns
Host Application Setup
More from workleap/wl-squide
turborepo
|
32best-practices
Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".
14dogfood
Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.
13pnpm
Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces, or managing dependencies with catalogs, patches, or overrides.
13vitest
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
13workleap-logging
|
13