MagniCache is a lightweight and performant GraphQL caching solution. Packaged and shipped as two separate npm packages, MagniCache can be implemented seamlessly into projects as an Express middleware for server-side caching of queries and mutations, or as a localStorage manipulation device for client-side caching.
MagniCache is unique in its exceptional efficiency. MagniCache's caching algorithm methodically parses GraphQL queries and divides them into atomic components, allowing for systematic and fully coherent caching of queries and improvements in performance. Unlike other GraphQL caching layers, subsequent GraphQL queries do not have to be exact duplicates of cached queries in order to benefit from cached response speeds. In addition, MagniCache was developed with compactness as the priority, so you can rest assured that implementing MagniCache into your projects will add zero unnecessary bulk.
Caching of queries leads to nearly instantaneous response times
Click here to demo MagniCache!
Type your GraphQL queries in the Query field on the left and click Run. Check out the query response and metrics below to observe caching in action!
npm i @magnicache/server
npm i @magnicache/client
After deciding on how to implement MagniCache into your project, follow the links below for detailed installation steps.
As an Open Source Product, we are always welcoming contributions! To be apart of MagniCache, you can follow the steps below:
-
Fork this repository, copying the
dev
branch -
Create your feature branch from
dev
-
Once you have finished contributing to your feature branch, add and commit all changes.
-
Locally merge your branch with with the
dev
branch. -
Push your branch to GitHub and open a pull request.
MIT
Ahmed Chami / Github / LinkedIn
Aria Soltankhah / Github / LinkedIn