Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srenatus/opa-wasm-browser
small demo using OPA's Wasm modules in the browser
https://github.com/srenatus/opa-wasm-browser
Last synced: 11 days ago
JSON representation
small demo using OPA's Wasm modules in the browser
- Host: GitHub
- URL: https://github.com/srenatus/opa-wasm-browser
- Owner: srenatus
- License: apache-2.0
- Created: 2022-01-10T10:26:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T13:07:46.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T22:45:30.600Z (about 2 months ago)
- Language: HTML
- Size: 62.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opa-wasm-browser demo
This is a simple static html file invoking `npm-opa-wasm` in the browser.
It'll pass the windows' fragment hash as _input_ to
[`test.rego`](https://github.com/srenatus/opa-wasm-browser/blob/main/test.rego)::cow: https://srenatus.github.io/opa-wasm-browser/#moo "moo" gives you a _pass_,
indicated by the green background:stop_sign: Anything else is a _deny_, red background.
## References
- [Open Policy Agent](https://www.openpolicyagent.org/), its [Wasm docs](https://www.openpolicyagent.org/docs/latest/wasm/)
- [npm-opa-wasm](https://github.com/open-policy-agent/npm-opa-wasm), the JS SDK used here