Flip a flag right here.
A browser DevTools toolbar for Angular apps. Feature flags, mock API data, languages and app state, changed at runtime without touching code or redeploying.A browser DevTools toolbar for Angular apps. Feature flags, mock API data, languages and app state, changed at runtime.
npm i ngx-dev-toolbar1The problem
You want to see what the app looks like for a user in Japan, on the premium tier, with the new checkout flag on, when the payments API is down.
Getting there is a twenty-minute errand. Ask someone to flip a flag in a dashboard. Wait for it to propagate. Change your locale. Find a test account on the right plan. Get the backend to return a 500 on demand — which usually means someone commenting out a line in a shared environment.
Every one of those steps is a dependency on someone or something else. So mostly, people don’t check. Bugs in the states nobody looked at ship, because looking was expensive.
Zero context switches between “I want this state” and “I have this state.”
2Why I built it
The states were all already in the browser. The flag is a boolean the client reads. The locale is a client setting. The API response is something the client receives.
So: put the controls in the app, next to the thing you’re looking at.
A debug panel is something you open when something is broken. This is meant to be open while you build, the way DevTools is always open. That reframing changed what went into it — not diagnostics, but controls.
3How it works
A drop-in Angular library. Add it to the app shell, get a toolbar with a tool per concern: feature flags, permissions, app features, i18n, presets, network mocking. Six tools, eleven exported components, Ctrl+Shift+D to open.
Three decisions did the heavy lifting.
- Defensive CSS is non-negotiable. This toolbar lands inside apps with Tailwind, Bootstrap, Normalize — resets that will happily eat your margins and collapse your layout. So: explicit spacing everywhere, never a browser default.
contain: layout styleon overlays to wall them off. - Zero production cost. The toolbar is dynamically imported, so it never lands in a production bundle.
- An open peer range you can actually verify. The package declares
>=19.0.0for Angular, which is a promise. Promises need backing, so every release is AOT-compiled against Angular 19, 20, 21, and 22 in CI, each in its own sandbox app.
Nothing about inspecting these states requires a backend round-trip.
WHAT THE STAND-IN APP DOES
IN THREE STATES
- 1 · FLAG OFFhiddenFeature flags
- 2 · FLIP IT IN THE TOOLBARFeature flags
- 3 · THE APP CHANGES, STILL ON AFTER A RELOADthe feature, now onFeature flags
Results
- 206 commits since December 2024 — the oldest project here by a year.
- 409 tests; verified against four Angular majors on every release.
- Six tools 30+ icons, ~17,000 lines. MIT licensed.
What I’d do differently
- I burned a whole major version on a two-character typo. Naming is not a detail you get to defer; it’s the one decision that hardens fastest.
- The product’s name and the package’s name still disagree. Renaming the package would break every install, so it stands — a permanent, visible reminder to pick the name before the users arrive.
- I migrated the test framework mid-flight (Vitest to Jest), which cost real days and delivered nothing a user can see. It’s worth being clear-eyed that it is a tax, not a feature, and I’d want a sharper reason next time than “this one is better.”
Read more.
docs, articles, code