alvarlagerlof / rsc-parser

A parser for the React Server components when sent over the network
https://rsc-parser.vercel.app
MIT License
514 stars 12 forks source link

Make it possible to read Next.js script tags containing RSC payload data from the chrome extension #1144

Closed alvarlagerlof closed 1 month ago

alvarlagerlof commented 1 month ago

The Next.js server will add a bunch of script tags to the body containing RSC payload data.

The @rsc-parser/embedded package can already read this by making a pretend request. With this change, @rsc-parser/chrome-extension can read it too.

https://github.com/user-attachments/assets/a84f45b9-bd88-496a-ba9f-990e2d340efc