script-money/rootdata ? reverse-engineered prompt
Reverse engineered prompt
Build me a small TypeScript package called rootdata that makes it easy to use the Rootdata API from Node with fetch.
I want it to export simple functions for at least search and projectQuery, so I can do things like search for a project by name and look up a project by id without worrying about the raw API requests. Please make the package easy to import, well typed, and usable from other apps right away. If there are other Rootdata endpoints in the README, leave clear placeholders or basic support for them if it fits naturally, but the main goal is to get the working search and project lookup flow done cleanly.
Please include the expected types, a couple of basic tests, and a short README example showing how to call it. If you need to check the current Rootdata API details or docs online to make sure the request shapes are correct, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit