v4.1.0
Minor Changes
-
#586
0a925e4Thanks @abernier! - Read the published pmndrs documentation from the terminal:npx @pmndrs/docs.Two new commands, both reading each library's published
llms-full.txt— one GET per library, cached for an hour under~/.cache/pmndrs-docs,--refreshto fetch again:browse [target], the default command, is a reader: pages on the left, the page on the right,bfolds the sidebar away,/searches every library at once,oopens the page in a browser. A target lands straight where it points —drei,drei/performances/instances, or a query.search <query>is the same search with no screen: one result per line on stdout, in the{lib} {path} - {title}shape the MCP server publishes its index in, so a pipe or an agent can read it.--innarrows to a library, or to the matching lines of a single page.
Outside a terminal
browsewrites the page it was pointed at to stdout, rather than opening anything.buildis unaffected, and does not pay for this: the terminal UI is loaded only when the reader opens. It does addinkto the package's dependencies, so every install pulls it.
Patch Changes
-
#585
5fb7cbbThanks @abernier! - Move thelibsregistry out ofsrc/app/page.tsxand intosrc/libs.ts, a module with no Next imports.The page keeps the icon imports and pairs them with the entries it renders; the MCP route reads the plain module instead of importing a page backwards. Anything that is not a browser — a script, a test, the CLI — can now read the registry.