OpenNHP JavaScript SDK Demo

The OpenNHP JavaScript SDK lets a browser app “knock” an nhp-server for zero-trust access before redirecting the user to a protected resource. Click Request Access button below to run the exact integration flow you'd add to your own web app — then peek at the right column for the equivalent code. SDK source on GitHub.

Protected Server: https://ac.opennhp.org Invisible by default, scan ports to verify Scan
✓ Knock Successful
You can now access
Redirecting in 5 seconds
Ready
Runtime Flow
Initialize NHPAgent with a browser relay transport
Attach app identity and trusted nhp-server key
Build encrypted KNK packet using ECDH and AEAD
POST to nhp-relay server, which forwards the knock to nhp-server over UDP
Parse ACK/COK response and extract temporary access details
Redirect the user to the now-accessible protected resource
SDK Event Logclick to fold / unfold
NHP-Agent Parametersclick to view / edit