Repository navigation
Add postman-lite Mini App - #176
Conversation
|
Thanks for the postman-lite PR. We re-checked on
Happy to re-review if you tighten any of these. |
|
The CI run on this pull request is currently sitting at For reference, the same two commands CI runs were executed locally against this branch before
One difference worth noting: that local run was on Windows with Node 26, while CI runs on |
|
Thanks for the review — all three notes are addressed in
|
|
Thanks for the follow-up. We re-checked on The three notes from last time are addressed in the source and the READMEs. Redirect following defaults to on unless it is turned off. The new A few leftovers, none of them merge blockers:
Repo CI is still waiting on first-time contributor approval, so we haven't used that as evidence. We also haven't run this head on Host, Electron, or the in-app browser. |
3816967 to
863b3cd
Compare
Add postman-lite Mini App
Postman Lite is a lightweight, local-first API request tool: build a request in the page, send it
through a Node proxy that sidesteps browser CORS limits, and inspect the response, with collections
kept as plain JSON on disk.
As a Mini App the Node runtime is hosted by MiniMax Code, so there is nothing to install and no
service to start: open the panel and send requests.
Changes since the review
The three notes from the review were addressed in
3816967— the PR head now points at thatcommit, not the
5f0a71bthat was reviewed:miniapp/node/static.js—fs.statthrows synchronously on an invalid path, so the exceptionescaped the request handler and could take the process down. The path is now rejected up front
with a 400, every
statcall goes through a wrapper that turns a synchronous throw into acallback error, and a failing read stream is answered with a 500 instead of tearing down the
process.
test/static.test.jscovers both the null byte path and the directory-traversal guard.on to a different host than the one in the address bar, and that turning off "Follow redirects"
keeps the request on the original host.
Authorization,Cookie,and
X-Api-Keyare kept in plaintext instate.jsonand are returned byGET /api/state.npm run checkpasses locally on3816967:validatereportsplugins/ssugarr/postman-lite: OKandrepository: OK, and the 96 repository tests pass with noerrors and no warnings. The CI run is waiting on a maintainer to approve the first workflow run
for a pull request that comes from a fork.
Tested environment
surface.window, whose minimumclient version is 3.1.2; the Agent could not read the exact client build number in this session.
collection, sending GET and POST JSON through the proxy, error handling for an unresolvable host,
and collection persistence across a page reload.
npm run checkin this repository:validatereportsplugins/ssugarr/postman-lite: OKandrepository: OK; the 96 repository tests pass with no errors and no warnings.Not verified
network.
Remaining check warnings
None —
npm run checkreports no errors and no warnings.Declared access
surface.pathis served by the bundled Node runtime.mcpEndpoints.Files
Written by MiniMax M3
The Mini App reuses a standalone Postman Lite implementation. The shared request-building logic
and the zero-dependency Node proxy live in the same repository; the Mini App copies them into its
Node payload and points them at the Host-assigned data directory instead of a repository-local
folder, so the same code serves both the standalone app and this package.
Two issues surfaced during client acceptance and are fixed in the copied code:
again to the original address, so the same parameter was sent twice. The address bar now keeps
the full URL for display while the parameter table is the single source of truth for what is sent.
right after the input is mounted, and the blur handler closed the editor immediately. Ending the
edit on a document-level
mousedowninstead of on blur fixed it.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.