Dashboard
See the requests that came in and the routes at /_senri
Start in development mode and open http://localhost:3927/_senri in the browser.
import { } from "@senrijs/senri";
import { } from "@senrijs/senri/dev";
import { } from "@senrijs/senri/serve";
const = ({ : () });
.("/", () => "hi");
await (); // → http://localhost:3927/_senriWhat you can see
- Requests: the latest 200, shown as they come in. Select one to see its headers, query, status and the onion timeline
- Routes and middleware: the registered routes and the middleware on each
- Warnings: middleware paths that look like mistakes and so on
Records and security
- Records are kept only in memory and are gone after a restart
- Requests to
/_senriitself and request and response bodies are not recorded authorization,cookie,set-cookie, and headers and query values whose names containtoken,secret,session,api-keyand the like are masked as***- It opens only from the same machine (localhost). Only when the client is on the same machine and
Hostislocalhostor similar. Otherwise/_senriis treated as not existing (a normal 404)
When it does not open
- Containers such as Docker: the client does not look like localhost, so it does not open
- When you wrap
app.fetch: the client address comes from the second argument ofapp.fetch. Wrapping it as infetch: (req) => app.fetch(req)drops it, so write(req, info) => app.fetch(req, info) - Cloudflare Workers: there is no dashboard