Skip to content

Contributing and Ideas

Lionel Serrao edited this page Nov 29, 2026 · 1 revision

Contributing and Ideas

Issues and pull requests are welcome. This page covers how to work on the code, plus a list of ideas worth building next.

Working on it

git clone https://github.com/DaZeDLooN/flag-responder.git
cd flag-responder/extension
npm ci
npm test          # unit tests
npm run dev       # VS Code with Flag Responder loaded from source and demo-app as the workspace
npm run package   # build flag-responder-<version>.vsix

On Windows PowerShell, use npm.cmd if npm is blocked by the execution policy. Start Flagsmith and the demo as in Getting Started.

House style:

  • user-facing text in plain, short sentences;
  • no new runtime dependencies;
  • logic that decides things goes in a pure module with a test (see Architecture);
  • anything that writes to Flagsmith gets a live case in demo-app/e2e.mjs.

Editing this wiki

The pages live in docs/wiki, so wiki changes go through pull requests like code. To publish them, run from the repository root:

./docs/wiki/publish.sh                                          # macOS / Linux
powershell -ExecutionPolicy Bypass -File docs\wiki\publish.ps1   # Windows

The interactive explainer is docs/explainer/index.html: one self-contained HTML file, served by GitHub Pages.

Ideas: from small to ambitious

quadrantChart
    title Ideas by effort and value
    x-axis Low effort --> High effort
    y-axis Nice to have --> High value
    quadrant-1 Plan for these
    quadrant-2 Do next
    quadrant-3 Fun weekend
    quadrant-4 Think first
    Kill switch history view: [0.25, 0.7]
    Rollback a flag change: [0.35, 0.85]
    Shared restore records: [0.6, 0.8]
    Live push instead of polling: [0.75, 0.65]
    Segment rule preview: [0.4, 0.55]
    Flag cleanup PRs: [0.55, 0.6]
    Status bar heatmap: [0.15, 0.3]
    Chat-ops summary post: [0.3, 0.45]
Loading
Idea Why it's interesting Where to start
Roll back the flag change instead of killing the flag If an alert follows a flag change by minutes, offer "undo that change" using Flagsmith's version history timing.ts already knows the change time; v2 versions are in api.ts
Kill switch history A sidebar list of past incidents: what was turned off, when, by whom, restored or not Restore records in store.ts
Shared restore records Let a teammate's VS Code (or the CLI) restore what yours turned off Store the record in Flagsmith (a tag or flag metadata) instead of the workspace
Push instead of polling Alerts in under a second A tiny relay that receives the Feature Health webhook and notifies the editor
Segment rule preview Show why a user matches a segment, rule by rule /projects/{id}/segments/ plus "Check a user"
Stale-flag cleanup PRs For flags that are 100% on and stale, open a PR that deletes the dead branch The scanner already knows where each flag is read
Incident summary straight to chat Post the summary to Slack or Teams incident.ts builds it already
JetBrains / Neovim versions The pure half of the code has no VS Code in it incidentOps.ts, api.ts, scanner.ts

Got another one? Open an issue with the label idea.

Clone this wiki locally