refine offers built-in data provider support for Medusa.js
https://github.com/refinedev/refine/tree/master/packages/med...
Also we built our Swag Store using Next.js and Medusa. It's fully open sourced. Here is the source code: https://github.com/refinedev/refine/tree/master/examples/sto...