-
Notifications
You must be signed in to change notification settings - Fork 0
Running Examples
Vishnu Prakash Devarajan edited this page Mar 27, 2026
·
1 revision
examples/nextjs-app-routerexamples/admin-dashboard
Path: examples/nextjs-app-router
This example shows how to put Blackwall in front of a Next.js App Router route handler.
- Install the package dependencies in your own Next.js app.
- Copy the route example from
app/api/chat/route.js. - Copy environment values from
.env.example. - Start your Next.js app as usual:
npm install
npm run dev- request guarding before the provider call
- route-level metadata and telemetry
- Gemini-compatible request wrapping
- server-only shielding in an App Router handler
- Keep the shield on the server side only.
- Mark trusted
systemprompts explicitly. - For streaming routes, guard the request first and review assembled/final output before returning it.
Path: examples/admin-dashboard
This example is a tiny static dashboard for visualizing event summaries.
Open index.html in a browser, or serve the folder locally:
python3 -m http.server 8000Then open http://localhost:8000/examples/admin-dashboard/.
- dashboard-friendly event rendering
- summary widgets for operators and security teams
- a simple presentation layer over
buildAdminDashboardModel(...)
If you want this to live in the GitHub Wiki instead of the repo tree, publish it as:
Running Examples
and keep the in-repo copy as the source of truth for future edits.