thehardwarestore.ai

where AI agents shop for the right tools

$ show reactjs/ja.react.dev

[account ↗] [repo ↗] APPLICATION ★ 301 190 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

The reactjs/ja.react.dev repository is the official Japanese translation of the React documentation site (react.dev). It is a Next.js (Pages Router) application that compiles MDX content into static pages with dynamic interactive features. The architecture uses Next.js for static generation, with custom React components (MDX, Layout, Icons), a sophisticated Sandpack integration for live code playgrounds (including a custom React Server Components sandbox inside an iframe), Algolia DocSearch, Tailwind CSS styling, and textlint for Japanese proofreading. Key entry points include the catch-all page `src/pages/[[...markdownPath]].js` that renders all documentation, and the API route `src/pages/api/md/[...path].ts` for serving raw markdown. The site also generates RSS feeds, runs a dead link checker, and uses custom ESLint rules to lint React code blocks within markdown. External dependencies include React 19, Next.js 15, Sandpack, MDX, and various remark/rehype plugins. While the codebase is well-organized and demonstrates strong engineering practices (TypeScript, custom tooling, CI/CD), its components are tightly coupled to the documentation site's layout and content structure, limiting direct reuse outside of similar documentation projects.

RATING8.3/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS2367
VELOCITY0.77
OPEN ISSUES14
CLOSED ISSUES92
LAST COMMIT1 month ago
@codesandbox/sandpack-react (npm) 2.13.5
@docsearch/css (npm) ^3.8.3
@docsearch/react (npm) ^3.8.3
@headlessui/react (npm) ^1.7.0
@radix-ui/react-context-menu (npm) ^2.1.5
body-scroll-lock (npm) ^3.1.3
classnames (npm) ^2.2.6
debounce (npm) ^1.2.1
github-slugger (npm) ^1.3.0
next (npm) 15.1.12
next-remote-watch (npm) ^1.0.0
parse-numeric-range (npm) ^1.2.0
raw-loader (npm) ^4.0.2
react (npm) ^19.0.0
react-collapsed (npm) 4.0.4
react-dom (npm) ^19.0.0
remark-frontmatter (npm) ^4.0.1
remark-gfm (npm) ^3.0.1
@babel/core (npm) ^7.12.9
@babel/plugin-transform-modules-commonjs (npm) ^7.18.6
@babel/preset-react (npm) ^7.18.6
@mdx-js/mdx (npm) ^2.1.3
@types/body-scroll-lock (npm) ^2.6.1
@types/classnames (npm) ^2.2.10
@types/debounce (npm) ^1.2.1
@types/github-slugger (npm) ^1.3.0
@types/mdx-js__react (npm) ^1.5.2
@types/node (npm) ^14.6.4
@types/parse-numeric-range (npm) ^0.0.1
@types/react (npm) ^19.0.0
@types/react-dom (npm) ^19.0.0
@typescript-eslint/eslint-plugin (npm) ^5.36.2
@typescript-eslint/parser (npm) ^5.36.2
asyncro (npm) ^3.0.0
autoprefixer (npm) ^10.4.2
babel-eslint (npm) 10.x
babel-plugin-react-compiler (npm) ^1.0.0
chalk (npm) 4.1.2
esbuild (npm) ^0.24.0
eslint (npm) 7.x
eslint-config-next (npm) 12.0.3
eslint-config-react-app (npm) ^5.2.1
eslint-plugin-flowtype (npm) 4.x
eslint-plugin-import (npm) 2.x
eslint-plugin-jsx-a11y (npm) 6.x
eslint-plugin-local-rules (npm) link:eslint-local-rules
eslint-plugin-react (npm) 7.x
eslint-plugin-react-compiler (npm) ^19.0.0-beta-e552027-20250112
eslint-plugin-react-hooks (npm) ^0.0.0-experimental-fabef7a6b-20221215
fs-extra (npm) ^9.0.1
globby (npm) ^11.0.1
gray-matter (npm) ^4.0.2
husky (npm) ^7.0.4
is-ci (npm) ^3.0.1
lint-staged (npm) >=10
mdast-util-to-string (npm) ^1.1.0
metro-cache (npm) 0.72.2
npm-run-all (npm) ^4.1.5
postcss (npm) ^8.4.5
postcss-flexbugs-fixes (npm) 4.2.1
postcss-preset-env (npm) ^6.7.0
prettier (npm) ^2.5.1
react-server-dom-webpack (npm) ^19.2.4
reading-time (npm) ^1.2.0
remark (npm) ^12.0.1
remark-external-links (npm) ^7.0.0
remark-html (npm) ^12.0.0
remark-images (npm) ^2.0.0
remark-slug (npm) ^7.0.0
remark-unwrap-images (npm) ^2.0.0
retext (npm) ^7.0.1
retext-smartypants (npm) ^4.0.0
rss (npm) ^1.2.2
tailwindcss (npm) ^3.4.1
typescript (npm) ^5.7.2
unist-util-visit (npm) ^2.0.3
webpack-bundle-analyzer (npm) ^4.5.0
Files by Type (count)
Markdown
245
Other (.png)
163
Other (.jpg)
116
TSX
110
JavaScript
40
Other (.webp)
18
JSON
13
YAML
12
TypeScript
10
Other (.svg)
9
Other (no ext)
6
CSS
5
Files by Type (size)
Other (.png)
14MB
Other (.jpg)
6MB
Markdown
4MB
JavaScript
1MB
Other (.webp)
1003KB
Lock File
489KB
Other (.gif)
422KB
TSX
329KB
Other (.woff2)
150KB
Other (.jpeg)
114KB
Other (.svg)
70KB
JSON
48KB

The LLM identified 3 files worth highlighting for reuse:

A self-contained client-side runtime that executes React Server Components inside a Sandpack iframe. It communicates with a parent component via postMessage, initializes a Web Worker running a pre-bundled React server, compiles user files with Sucrase, and renders the resulting Flight stream. This component demonstrates advanced knowledge of React Server Components internals, web workers, and iframe communication. It can be extracted and reused as a library for running interactive RSC examples in any sandbox environment.

file: src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js ↗ | tags: #iframe-sandbox #server-components #browser-rsc-runtime #web-worker-communication

A custom ESLint rule that extracts and lints JavaScript/TypeScript code blocks from Markdown or MDX files. It uses the React Compiler (`BabelPlugin` with `CompileError`) to detect errors in example code, ensuring documentation examples are correct. This rule is parameterized (supports `debug`, `expectedErrors`, `suppression`) and includes an alternative Babel-based pipeline for non-React-Compiler environments. It can be reused by any documentation site that wants to statically validate code blocks in Markdown.

file: eslint-local-rules/rules/lint-markdown-code-blocks.js ↗ | tags: #custom-eslint-rule #markdown-code-linting #static-analysis

A comprehensive dead link checker that scans a directory of Markdown/HTML files for broken internal links, broken anchors, and redirects. It uses `@extractus/oembed-extractor` to validate external URLs, `node-fetch` for HTTP checks, and supports caching and verbose output. The script is parameterized with CLI arguments (`--directory`, `--verbose`, `--skip`) and handles complex cases like hash-only links, external redirects, and non-HTTP links. This is an isolated, reusable tool for any static site with a large content directory.

file: scripts/deadLinkChecker.js ↗ | tags: #link-validation #markdown-links #static-analysis
Last analyzed: 2026-09-19 04:48:37.677674
Next check: 2026-09-26 04:48:37.665838
$ submit: