Repository: alvarlagerlof/rsc-parser Branch: main Commit: a23e9607b114 Files: 183 Total size: 5.2 MB Directory structure: gitextract_pei3ls9p/ ├── .changeset/ │ ├── README.md │ ├── config.json │ └── lucky-numbers-roll.md ├── .github/ │ └── workflows/ │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode/ │ └── settings.json ├── LICENSE ├── README.md ├── apply-version.sh ├── examples/ │ └── embedded-example/ │ ├── .gitignore │ ├── .prettierignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── app/ │ │ ├── action/ │ │ │ └── page.tsx │ │ ├── error/ │ │ │ └── [name]/ │ │ │ └── page.tsx │ │ ├── globals.css │ │ ├── layout.tsx │ │ ├── other/ │ │ │ └── page.tsx │ │ ├── page.tsx │ │ └── suspense/ │ │ └── page.tsx │ ├── eslint.config.js │ ├── next.config.ts │ ├── package.json │ ├── postcss.config.cjs │ ├── tailwind.config.ts │ ├── tsconfig.json │ ├── turbo.json │ └── vercel.json ├── package.json ├── packages/ │ ├── chrome-extension/ │ │ ├── .gitignore │ │ ├── .prettierignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── devtoolsPanel.html │ │ ├── eslint.config.js │ │ ├── package.json │ │ ├── public/ │ │ │ ├── devtoolsPage.html │ │ │ └── manifest.json │ │ ├── src/ │ │ │ ├── RscDevtoolsExtension.tsx │ │ │ ├── assets/ │ │ │ │ ├── contentScript.ts │ │ │ │ ├── devtoolsPage.ts │ │ │ │ ├── fetchPatcherInjector.ts │ │ │ │ └── readNextJsScriptTagsInjector.ts │ │ │ ├── dev/ │ │ │ │ └── reactPreamble.ts │ │ │ ├── main.tsx │ │ │ └── vite-env.d.ts │ │ ├── tsconfig.json │ │ ├── turbo.json │ │ └── vite.config.ts │ ├── core/ │ │ ├── .gitignore │ │ ├── .prettierignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── eslint.config.js │ │ ├── jest.config.cjs │ │ ├── jest.setup.js │ │ ├── package.json │ │ ├── postcss.config.cjs │ │ ├── src/ │ │ │ ├── color.ts │ │ │ ├── components/ │ │ │ │ ├── BottomPanel.stories.tsx │ │ │ │ ├── BottomPanel.tsx │ │ │ │ ├── EndTimeContext.tsx │ │ │ │ ├── FlightResponseChunkConsole.stories.tsx │ │ │ │ ├── FlightResponseChunkConsole.tsx │ │ │ │ ├── FlightResponseChunkDebugInfo.stories.tsx │ │ │ │ ├── FlightResponseChunkDebugInfo.tsx │ │ │ │ ├── FlightResponseChunkHint.stories.tsx │ │ │ │ ├── FlightResponseChunkHint.tsx │ │ │ │ ├── FlightResponseChunkModel.stories.tsx │ │ │ │ ├── FlightResponseChunkModel.tsx │ │ │ │ ├── FlightResponseChunkModule.stories.tsx │ │ │ │ ├── FlightResponseChunkModule.tsx │ │ │ │ ├── FlightResponseChunkText.tsx │ │ │ │ ├── FlightResponseChunkUnknown.tsx │ │ │ │ ├── FlightResponseIcons.tsx │ │ │ │ ├── GenericErrorBoundaryFallback.tsx │ │ │ │ ├── IconButton.tsx │ │ │ │ ├── Logo.stories.tsx │ │ │ │ ├── Logo.tsx │ │ │ │ ├── OverflowButton.tsx │ │ │ │ ├── PanelLayout.stories.tsx │ │ │ │ ├── PanelLayout.tsx │ │ │ │ ├── RecordButton.stories.tsx │ │ │ │ ├── RecordButton.tsx │ │ │ │ ├── RequestDetail.tsx │ │ │ │ ├── RequestDetailTabEmptyState.tsx │ │ │ │ ├── RequestDetailTabHeaders.stories.tsx │ │ │ │ ├── RequestDetailTabHeaders.tsx │ │ │ │ ├── RequestDetailTabNetwork.stories.tsx │ │ │ │ ├── RequestDetailTabNetwork.tsx │ │ │ │ ├── RequestDetailTabParsedPayload.stories.tsx │ │ │ │ ├── RequestDetailTabParsedPayload.tsx │ │ │ │ ├── RequestDetailTabRawPayload.stories.tsx │ │ │ │ ├── RequestDetailTabRawPayload.tsx │ │ │ │ ├── RequestDetailTabTimings.stories.tsx │ │ │ │ ├── RequestDetailTabTimings.tsx │ │ │ │ ├── TimeScrubber.stories.tsx │ │ │ │ ├── TimeScrubber.tsx │ │ │ │ ├── ViewerPayload.stories.tsx │ │ │ │ ├── ViewerPayload.tsx │ │ │ │ ├── ViewerStreams.stories.tsx │ │ │ │ ├── ViewerStreams.tsx │ │ │ │ ├── ViewerStreamsEmptyState.stories.tsx │ │ │ │ ├── ViewerStreamsEmptyState.tsx │ │ │ │ ├── isDev.ts │ │ │ │ └── useTabStoreWithTransitions.ts │ │ │ ├── copyEventsToClipboard.ts │ │ │ ├── eventArrayHelpers.ts │ │ │ ├── events.ts │ │ │ ├── example-data/ │ │ │ │ ├── alvar-dev.ts │ │ │ │ ├── gh-fredkiss-dev.ts │ │ │ │ └── nextjs-org.ts │ │ │ ├── fetchPatcher.ts │ │ │ ├── main.ts │ │ │ ├── readNextJsScriptTags.ts │ │ │ └── tailwind.css │ │ ├── tailwind.config.ts │ │ ├── tsconfig.json │ │ ├── tsconfig.test.json │ │ ├── turbo.json │ │ └── vite.config.ts │ ├── embedded/ │ │ ├── .gitignore │ │ ├── .prettierignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── RscDevtoolsPanel.tsx │ │ ├── eslint.config.js │ │ ├── package.json │ │ ├── tsconfig.json │ │ ├── turbo.json │ │ └── vite.config.ts │ ├── react-client/ │ │ ├── .gitignore │ │ ├── .prettierignore │ │ ├── .prettierrc │ │ ├── CHANGELOG.md │ │ ├── eslint.config.js │ │ ├── flight.ts │ │ ├── package.json │ │ ├── src/ │ │ │ ├── ReactDOMTypes.ts │ │ │ ├── ReactFlightClient.ts │ │ │ ├── ReactFlightClientConfigBrowser.ts │ │ │ ├── ReactFlightClientConfigBundlerWebpack.ts │ │ │ ├── ReactFlightImportMetadata.ts │ │ │ ├── ReactFlightServerConfigDOM.ts │ │ │ ├── ReactSymbols.ts │ │ │ ├── ReactTypes.ts │ │ │ └── crossOriginStrings.ts │ │ ├── tsconfig.json │ │ ├── turbo.json │ │ └── vite.config.ts │ ├── storybook/ │ │ ├── .gitignore │ │ ├── .storybook/ │ │ │ ├── main.ts │ │ │ ├── preview-body.html │ │ │ └── preview.ts │ │ ├── CHANGELOG.md │ │ ├── package.json │ │ ├── tsconfig.json │ │ ├── turbo.json │ │ └── vercel.json │ └── website/ │ ├── .gitignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── app/ │ │ ├── ViewerPayloadClientWrapper.tsx │ │ ├── globals.css │ │ ├── layout.tsx │ │ └── page.tsx │ ├── eslint.config.js │ ├── jest.config.js │ ├── jest.setup.js │ ├── next.config.ts │ ├── package.json │ ├── postcss.config.cjs │ ├── tailwind.config.ts │ ├── tsconfig.json │ ├── turbo.json │ └── vercel.json ├── renovate.json └── turbo.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .changeset/README.md ================================================ # Changesets Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it [in our repository](https://github.com/changesets/changesets) We have a quick list of common questions to get you started engaging with this project in [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) ================================================ FILE: .changeset/config.json ================================================ { "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", "changelog": "@changesets/cli/changelog", "commit": false, "fixed": [], "linked": [ [ "@rsc-parser/chrome-extension", "@rsc-parser/core", "@rsc-parser/website", "@rsc-parser/embedded", "@rsc-parser/react-client" ] ], "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", "ignore": [] } ================================================ FILE: .changeset/lucky-numbers-roll.md ================================================ --- '@rsc-parser/chrome-extension': patch '@rsc-parser/embedded-example': patch '@rsc-parser/core': patch '@rsc-parser/embedded': patch '@rsc-parser/react-client': patch '@rsc-parser/storybook': patch '@rsc-parser/website': patch --- Uninstall unused web-vitals package ================================================ FILE: .github/workflows/ci.yml ================================================ name: CI on: pull_request_target: # Types must be filtered to prevent getting stuck when a # bot with GITHUB_TOKEN pushes commits against the PR branch types: - opened - reopened pull_request: branches: - main jobs: build_and_test: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v6 - uses: oven-sh/setup-bun@v2 - name: bun install run: bun install - name: Turborepo run: bun run ci - name: Archive production artifacts uses: actions/upload-artifact@v6 with: name: dist.zip path: | packages/chrome-extension/dist ================================================ FILE: .github/workflows/release.yml ================================================ name: Release on: push: branches: - main concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: name: Release runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@v6 with: ref: ${{github.event.pull_request.head.sha}} fetch-depth: 0 - name: Setup Node.js 18 uses: actions/setup-node@v6 with: node-version: 24.14.1 - uses: oven-sh/setup-bun@v2 - name: Install Dependencies run: bun install - name: Run CI run: bun run ci - name: Create Release Pull Request uses: changesets/action@v1 id: changesets with: version: bun run version publish: bun run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Zip dist if: steps.changesets.outputs.published == 'true' run: | cd packages/chrome-extension zip dist.zip -r dist - name: Edit release if: steps.changesets.outputs.published == 'true' uses: xresloader/upload-to-github-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: file: 'packages/chrome-extension/dist.zip' update_latest_release: true ================================================ FILE: .gitignore ================================================ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies /node_modules # testing /coverage # production /build # misc .DS_Store *.pem # debug npm-debug.log* yarn-debug.log* yarn-error.log* # local env files .env*.local # vercel .vercel # typescript *.tsbuildinfo # turborepo .turbo ================================================ FILE: .prettierignore ================================================ .yarn ================================================ FILE: .prettierrc ================================================ { "trailingComma": "all", "singleQuote": true } ================================================ FILE: .vscode/settings.json ================================================ { "css.lint.unknownAtRules": "ignore", "typescript.tsdk": "node_modules/typescript/lib" } ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2023 Alvar Lagerlöf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # 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 required 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. ## Comparison