apollographql/apollo-client ? reverse-engineered prompt

Reverse engineered prompt

Build me a polished GraphQL client library that makes it easy for app developers to talk to a GraphQL API from JavaScript or TypeScript, especially in React, but it should feel usable in other frameworks too.

I want the library to handle fetching data, caching results automatically, updating the UI when data changes, and giving a clean developer experience with good TypeScript support. It should include a simple way to run queries and mutations, plus sensible defaults so people can get started quickly without a lot of setup. Make it production ready, well tested, and easy to extend, with clear docs and examples for common use cases.

If some current best practices or docs would help, look them up online and follow them. Focus on making it feel like a real modern Apollo style client, fast, reliable, and easy for developers to adopt in real apps.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab