I have some md/x files. I want to draw relations between them.

next-mdx-relations is a small suite of utilities for statically generating pages for next.js from md and mdx. This site provides an example by adding a custom 'mentionedIn' attribute to posts or pages that are mentioned in other posts or pages.

For more details and full documentation, checkout the github