• Stars
    star
    513
  • Rank 86,178 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A parser for the React Server components when sent over the network

RSC Parser

This is a parser for React Server Components (RSC) when sent over the network. React uses a format to represent a tree of components/html or metadata such as requiered imports, suspense boundaries, and css/fonts that needs to be loaded.

I made this tool to more easily let you understand the data and explore it visually.

Comparsion

image image

How do I use this?

Extension

I am currently developing a Chrome extension (Firefox hopefully soon) extension. Build artifacts are available here.

Website

There is also a website that you can use by manually copy pasing RSC payloads.

  1. Go to a site that uses the NextJS App router or generally is based on React Server components.
  2. Open the network tab in your dev tools
  3. Reload.
  4. Look for fetch responses the payload roughly looks like json, but each like starts with something like O:, 1:I, b: or similar.
  5. Copy the text and paste it into the form on https://rsc-parser.vercel.app/
  6. Explore!

It crashed!

Please make an issue on https://github.com/alvarlagerlof/rsc-parser/issues/new and include the text content that the parser was unable to handle.

More Repositories

1

react-haze

๐ŸŒซ Easily show a fade at edges of lists to indicate scrollability
TypeScript
68
star
2

neurodiversity

๐Ÿ“– Website educating the public about neurodiversity
TypeScript
45
star
3

next-banner

๐Ÿ–ผ๏ธ Generate Open Graph images for Next.js on build
JavaScript
44
star
4

rsc-generator

Generate RSC Payloads using an LLM
32
star
5

portfolio

๐Ÿ“ Personal portfolio and blog
TypeScript
20
star
6

next-app-server-infinite-scroll

TypeScript
19
star
7

company-name-generator

๐Ÿ”ค Name generator using Markov chains via the Foswig library
JavaScript
3
star
8

quake

๐Ÿ”ซ Quake in a Spigot plugin
Java
2
star
9

smart-mute

๐Ÿ“ Android app that mutes phone while in a geofence.
Kotlin
2
star
10

lacinas-adventure

๐ŸŽฎ Basic platformer made with the Godot engine
GDScript
1
star
11

pong-godot

๐Ÿ“ A pong game made in gdscript for Godot
GDScript
1
star
12

koda-android

๐Ÿ“ฑ Koda is an app made to make it easy to code on a phone or tablet
Kotlin
1
star
13

https-github.com-scoreboarder-website

Created with StackBlitz โšก๏ธ
1
star
14

lab-rust-fizzbuzz

Rust
1
star
15

medication

Kotlin
1
star
16

alvarlagerlof

โœจ Repo displaying a short message on my GitHub portfolio
1
star
17

net.technicpack.TechnicLauncher

CMake
1
star
18

action-node-yarn-chromium

Dockerfile
1
star
19

keepinventory

๐Ÿ”’ Toggle of keepinvetory on a player-by player basis on Spigot
Java
1
star
20

react-scroll-edge

๐Ÿ“œ Check if scroll is within an offset to the start or end
TypeScript
1
star
21

crossyroad

Python
1
star
22

school-projects

๐Ÿซ Some projects for school. No real focus on quality :)
HTML
1
star
23

cant-see-this

I'll let you try
HTML
1
star
24

turborepo-bug

TypeScript
1
star
25

test-2

1
star
26

ogimage

TypeScript
1
star