Repository navigation
Add browser-runnable Express playground and demo entry points - #84
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo now has a short demonstration, but trying the SDK still required cloning and building the monorepo. Add a standalone Express playground that launches from StackBlitz and lets visitors send real requests, inspect local decisions and explicitly compare monitor mode with enforcement.
Validation: installed published @webdecoy/node and @webdecoy/express 0.22.3 into a separate directory; HTTP assertions pass for ordinary requests in both modes, monitored decoy 404/DENY and enforced decoy 403. Native Chrome UI checks reproduced 200/ALLOW, 404/DENY and 403. Desktop layout reviewed; README local links and heading anchors pass; git diff --check passes. Signed-out StackBlitz import and live preview passed: clicked ordinary HTTP200/ALLOW, monitored decoy HTTP404/DENY/tripwire=true, and explicitly enforced decoy HTTP403. Both full Node20/22 CI jobs passed.
Controlled path requests demonstrate matching, not live attack detection accuracy. The fixture exposes decisions for inspection and does not send detections to the hosted dashboard.
Verified branch preview: https://stackblitz.com/github/WebDecoy/node/tree/0af010377b726ba3dfba3961f050cd3366158aba/playgrounds/express?file=app.mjs