next-rspack
Skill144k starsChanged 7 months agoMITView on GitHub
Maintain @next/rspack-core and @next/rspack-binding packages. Use when editing rspack/package.json, rspack/crates/binding/Cargo.toml, rspack/rust-toolchain.toml, or packages/next-rspack/package.json. Covers upgrading @rspack/core npm version, rspack_* crate versions, Rust toolchain version, building and linking for local testing, and NEXT_RSPACK environment variable usage. Does NOT apply to root rust-toolchain.toml (that's for Turbopack).
- Reads credentials
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about vercel/next.js
- A Hacker News story“RCE Vulnerability in React and Next.js”Hacker News · Dec 3, 2025 · 628 points
- getsentry/sentry-javascript“Next.js Turbopack Support”GitHub · May 11, 2023 · 365 reactions
- react/react“eslint-plugin-react-hooks & "Flat Config" (ESLint 9)”GitHub · Feb 13, 2024 · 296 reactions
- sveltejs/kit“Add incremental static regeneration”GitHub · Mar 25, 2021 · 183 reactions
- payloadcms/payload“feat: next.js 16 support”GitHub · Nov 3, 2025 · 163 reactions
The biggest 5 of 92 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 92
Talked about on Bluesky, GitHub and Hacker News (92 times).
On Bluesky · 50
- Jan 17, 2025📦 vercel / next.js ⭐ 128,623 (+39) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social6 likes and reposts
- Apr 27, 2025📦 vercel / next.js ⭐ 131,376 (+38) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social5 likes and reposts
- Dec 2, 2024📦 vercel / next.js ⭐ 127,482 (+35) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social5 likes and reposts
- Oct 8, 2026You can also follow security advisories through GitHub or a dependency monitoring service. On the Next.js repository, choose Watch → Custom… — @nextjs.org4 likes and reposts
- Jun 4, 2026📦 vercel / next.js ⭐ 139,667 (+32) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social4 likes and reposts
45 more on Bluesky
- Jan 12, 2025📦 vercel / next.js ⭐ 128,495 (+43) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social4 likes and reposts
- Nov 15, 2024📦 vercel / next.js ⭐ 127,010 (+42) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social4 likes and reposts
- May 17, 2025📦 vercel / next.js ⭐ 131,846 (+36) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- Apr 2, 2025📦 vercel / next.js ⭐ 130,747 (+38) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social3 likes and reposts
- Mar 22, 2025📦 vercel / next.js ⭐ 130,452 (+45) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social3 likes and reposts
- Jan 8, 2025📦 vercel / next.js ⭐ 128,373 (+39) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social3 likes and reposts
- Sep 14, 2024📦 vercel / next.js ⭐ 124,905 (+46) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social3 likes and reposts
- Oct 23, 2026📦 vercel / next.js ⭐ 143,195 (+78) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Sep 26, 2026📦 vercel / next.js ⭐ 142,463 (+31) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Sep 17, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel / next.js ⭐ 142,336 (+129) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Aug 4, 2026📦 vercel / next.js ⭐ 141,327 (+45) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Jul 30, 2026📦 vercel / next.js ⭐ 141,186 (+43) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Jul 4, 2026📦 vercel / next.js ⭐ 140,320 (+54) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Jun 29, 2026📦 vercel / next.js ⭐ 140,437 (+36) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Jun 24, 2026📦 vercel / next.js ⭐ 140,207 (+94) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Jun 17, 2026📦 vercel / next.js ⭐ 140,037 (+34) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Dec 14, 2025📦 vercel / next.js ⭐ 136,507 (+34) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Dec 4, 2025📦 vercel / next.js ⭐ 136,067 (+71) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Nov 8, 2025📦 vercel / next.js ⭐ 135,508 (+32) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Sep 16, 2025📦 vercel / next.js ⭐ 134,471 (+46) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Jun 13, 2025📦 vercel / next.js ⭐ 132,413 (+32) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- May 10, 2025📦 vercel / next.js ⭐ 131,707 (+35) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Apr 16, 2025📦 vercel / next.js ⭐ 131,086 (+41) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Mar 18, 2025📦 vercel / next.js ⭐ 130,300 (+50) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Mar 14, 2025📦 vercel / next.js ⭐ 130,174 (+37) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Feb 23, 2025📦 vercel / next.js ⭐ 129,609 (+43) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Feb 14, 2025📦 vercel / next.js ⭐ 129,307 (+47) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Feb 1, 2025📦 vercel / next.js ⭐ 128,951 (+38) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Dec 24, 2024📦 vercel / next.js ⭐ 128,052 (+37) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Dec 20, 2024📦 vercel / next.js ⭐ 127,957 (+39) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Dec 12, 2024📦 vercel / next.js ⭐ 127,744 (+34) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Dec 7, 2024📦 vercel / next.js ⭐ 127,618 (+32) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Oct 15, 2024📦 vercel / next.js ⭐ 125,776 (+44) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Sep 6, 2024📦 vercel / next.js ⭐ 124,675 (+50) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts
- Aug 31, 2024📦 vercel / next.js ⭐ 124,487 (+39) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Nov 19, 2026📦 vercel / next.js ⭐ 143,721 (+68) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Oct 7, 2026📦 vercel / next.js ⭐ 143,230 (+38) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Sep 26, 2026📦 vercel / next.js ⭐ 142,463 (+31) 🗒 JavaScript The React Framework — @github-trending.bsky.social1 likes and repost
- Aug 27, 2026📦 vercel / next.js ⭐ 141,963 (+38) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Jul 10, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel / next.js ⭐ 140,578 (+176) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- May 13, 2026📦 vercel / next.js ⭐ 139,406 (+31) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Apr 10, 2026📦 vercel / next.js ⭐ 138,815 (+63) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Apr 5, 2026📦 vercel / next.js ⭐ 138,637 (+41) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Mar 28, 2026📦 vercel / next.js ⭐ 138,508 (+38) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
- Mar 22, 2026📦 vercel / next.js ⭐ 138,434 (+32) 🗒 JavaScript The React Framework — @github-trending-js.bsky.social1 likes and repost
On GitHub · 26
- May 11, 2023Next.js Turbopack Support — getsentry/sentry-javascript365 reactions · 92 comments
- Feb 13, 2024eslint-plugin-react-hooks & "Flat Config" (ESLint 9) — react/react296 reactions · 108 comments
- Mar 25, 2021Add incremental static regeneration — sveltejs/kit183 reactions · 75 comments
- Nov 3, 2025feat: next.js 16 support — payloadcms/payload163 reactions · 25 comments
- Feb 25, 2021Make initial incremental/watch builds as fast normal builds — microsoft/TypeScript140 reactions · 31 comments
21 more on GitHub
- Oct 19, 2022[system] Support new style engine that generates static CSS files at build time — mui/material-ui96 reactions · 32 comments
- Nov 24, 2023Deprecate `setRequestLocale` in favor of `next/root-params` — amannn/next-intl95 reactions · 45 comments
- Feb 8, 2024📈 Tracking: Flat Config support — eslint/eslint91 reactions · 100 comments
- Jan 22, 2024add next.js app router example — mswjs/examples53 reactions · 61 comments
- May 11, 2023feat(client): esm support draft — prisma/orm35 reactions · 5 comments
- Apr 24, 2023RFC: The Next.js "App Router", React Server Component & "SSR with Suspense" story — apollographql/apollo-client-integrations28 reactions · 8 comments
- Jan 9, 2025feat: Key isolation — 47ng/nuqs24 reactions · 6 comments
- Jan 27, 2022fix(nextjs): TypeError: res.once is not a function — getsentry/sentry-javascript22 reactions · 1 comment
- May 2, 2024fix(next-auth): Add support for Next.js basePath configuration — nextauthjs/next-auth18 reactions · 27 comments
- Mar 9, 2024[labs/nextjs, labs/ssr-react, lit/react] Add support for Next.js v14 and App Router — lit/lit18 reactions · 3 comments
- Apr 16, 2021update Next.js example — bugsnag/bugsnag-js18 reactions · 3 comments
- Mar 20, 2026feat(next): prevent admin panel errors when cacheComponents is enabled — payloadcms/payload17 reactions · 11 comments
- Sep 7, 2020Modernize example for nextjs. Adds support for fast refresh, native p… — tailwindlabs/tailwindcss-setup-examples17 reactions · 4 comments
- Jun 24, 2022fix: don't fallback on rendering the html when the page is not found — serverless-nextjs/serverless-next.js15 reactions · 2 comments
- Mar 6, 2025Fix for next 15.2 and renderHTML should not be called in minimal mode — opennextjs/opennextjs-cloudflare12 reactions · 2 comments
- Dec 20, 2024fix: Deprecate `setRequestLocale` and add blog post on `next/root-params` — amannn/next-intl12 reactions · 13 comments
- Jan 28, 2022fix(nextjs): Unwrap `req` and `res` if necessary when instrumenting server — getsentry/sentry-javascript12 reactions · 5 comments
- Aug 12, 2021fix(nextjs): Next 11.1.0 compatibility — nrwl/nx12 reactions · 13 comments
- Oct 4, 2024Update auth.ts to await `params` in NextJS 15 — auth0/nextjs-auth010 reactions · 2 comments
- Mar 16, 2024Turbopack support for Blitz — blitz-js/blitz10 reactions · 12 comments
- Jan 27, 2023feat: bring action up to date — github/issue-labeler10 reactions
On Hacker News · 16
- Dec 3, 2025RCE Vulnerability in React and Next.js628 points · 259 comments
- May 31, 2025Next.js: The "Versatile" React Framework That Can't Handle Dynamic Routes17 points · 20 comments
- Mar 21, 2025Authorization Bypass in Next.js Middleware8 points
- May 7, 2026Six New High Severity CVEs for Next.js and 1 for React4 points · 2 comments
- May 15, 2026Next.js – Server-side request forgery in applications using WebSocket upgrades3 points
11 more on Hacker News
- May 7, 2026New security vulnerabilities disclosed in Next.js (patches released)3 points
- Apr 2, 2025RFC: Deployment Adapters API for Next.js3 points
- Aug 7, 2024Vercel/Next.js memory leak in Fetch API3 points
- Dec 29, 2025Next.js makes many tiny serverless requests for all visible links2 points · 1 comment
- Sep 17, 2025Next.js GET Cache Bypass via Multipart POST – Reproduces on Vercel.com2 points · 1 comment
- May 26, 2025How hardware identifiers work on a PC2 points
- Apr 9, 2025Next.js with Rspack1 point
- Jul 3, 2023Is server component default always a performance win? Or should it be opt-in?1 point
- Mar 29, 2022Next.js: Support SSG (one-time SSR) during runtime1 point
- Nov 3, 2021What libraries do you recommend for a Node.js CRUD web app?1 point · 1 comment
- Jan 19, 2021Unconfigured next.js application with TypeScript does not work in IE111 point
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apps/bundle-analyzer/AGENTS.mdAGENTS.md
- crates/AGENTS.mdAGENTS.md
- evals/AGENTS.mdAGENTS.md
- evals/evals/agent-062-pokedex-dev-loop/AGENTS.mdAGENTS.md
- evals/next-upgrade/apps/member-dashboard/next-13/AGENTS.mdAGENTS.md
- evals/next-upgrade/apps/member-dashboard/next-15/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- packages/next/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- turbopack/AGENTS.mdAGENTS.md
- evals/next-upgrade/apps/member-dashboard/next-13/CLAUDE.mdCLAUDE.md
- evals/next-upgrade/apps/member-dashboard/next-15/CLAUDE.mdCLAUDE.md
- authoring-skillsSkill
- backport-prSkill
- create-prSkill
- dce-edgeSkill
- deploy-release-testSkill
- docs-diagramsSkill
- flagsSkill
- gate-testsSkill
- gh-stackSkill
- insight-error-pageSkill
- pr-status-triageSkill
- react-syncSkill
- react-vendoringSkill
- rebase-prSkill
- router-actSkill
- run-testsSkill
- runtime-debugSkill
- rust-turbopackSkill
- sandbox-benchSkill
- update-docsSkill
- v8-jitSkill
- write-api-referenceSkill
- write-guideSkill
- next-bundle-optimizerSkill
- next-cache-components-adoptionSkill
- next-cache-components-optimizerSkill
- next-dev-loopSkill
- next-partial-prefetching-adoptionSkill
- next-partial-prefetching-optimizerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use this skill when you need to:
- Very specific: line 182
Before running pnpm test-rspack, you must build and link @next/rspack-core:
- Very specific: line 220
All test commands set environment variables via with-rspack:
- Very specific: line 230
Use the NEXT_RSPACK environment variable to differentiate compilers in packages/next/ code:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Next.js with Rspack
When to Use
Use this skill when you need to:
- Upgrade
@rspack/corenpm package version - Upgrade rspack crate dependency versions
- Upgrade Rust version in
rspack/rust-toolchain.toml(rspack directory only) - Fix Rspack-related compilation issues
- Develop Rspack-specific features in Next.js
⚠️ Scope Limitation: This skill only applies to code and configuration under the
rspack/directory. Therust-toolchain.tomlin the repository root is for Turbopack and is outside the scope of this skill.
Architecture Overview
Package Structure
rspack/ # Independent workspace (separate rust toolchain and npm releases)
├── Cargo.toml # Rust workspace configuration
├── rust-toolchain.toml # Rust version configuration
├── package.json # @next/rspack-core package definition
├── lib/
│ ├── index.js # Exports @rspack/core + custom plugins
│ └── index.d.ts # Type definitions
└── crates/
└── binding/
├── Cargo.toml # Rust crate dependencies (rspack_* crates)
└── package.json # @next/rspack-binding package definition
packages/
└── next-rspack/
└── package.json # References @next/rspack-coreDependency Graph
packages/next-rspack
└── @next/rspack-core (rspack/package.json)
├── @rspack/core (npm dependency)
└── @next/rspack-binding (rspack/crates/binding)
└── rspack_* crates (Cargo.toml dependencies)Version Mapping Rules
| @rspack/core npm version | rspack crate version | Notes |
2.0.0-rc.0 | 0.100.0-rc.0 | npm major.minor maps to crate 0.(major*50+minor) |
1.3.x | 0.53.x | e.g., 1.3 → 0.53 |
1.2.x | 0.52.x | e.g., 1.2 → 0.52 |
Upgrade Process
Step 1: Get Upstream Version Information
Query https://github.com/web-infra-dev/rspack to obtain:
- Target
@rspack/corenpm version - Corresponding rspack crate version
- Rust channel version from
rust-toolchain.toml
Step 2: Update npm Dependencies
Edit rspack/package.json:
{
"dependencies": {
"@rspack/core": "<new version>",
"@next/rspack-binding": "workspace:*"
}
}Step 3: Update Cargo.toml
Edit rspack/crates/binding/Cargo.toml, update all rspack crate versions:
[dependencies]
rspack_binding_builder = { version = "=<new crate version>" }
rspack_binding_builder_macros = { version = "=<new crate version>" }
rspack_core = { version = "=<new crate version>" }
rspack_error = { version = "=<new crate version>" }
rspack_hook = { version = "=<new crate version>" }
rspack_plugin_externals = { version = "=<new crate version>" }
rspack_regex = { version = "=<new crate version>" }
# rspack_sources version is managed separately, may not follow the main version
[target.'cfg(...)'.dependencies]
rspack_binding_builder = { version = "=<new crate version>", features = ["plugin"] }
[build-dependencies]
rspack_binding_build = { version = "=<new crate version>" }Step 4: Update Rust Toolchain
Edit rspack/rust-toolchain.toml:
[toolchain]
profile = "default"
components = ["rust-src"]
channel = "<nightly version matching upstream rspack>"Step 5: Verify Build
# Execute in rspack directory
cd rspack
# Check Rust code
cargo check
# Build binding (requires Rust installed)
pnpm buildStep 6: Link to packages/next-rspack
rspack/ is an independent workspace not included in the root pnpm-workspace, manual linking is required:
# Execute from repository root
cd packages/next-rspack
# Link locally built @next/rspack-core
pnpm link ../../rspackOr modify packages/next-rspack/package.json to use local path (for local testing only, do not commit):
{
"dependencies": {
"@next/rspack-core": "link:../../rspack"
}
}Important: After linking, run
pnpm installin the root directory to update dependency relationships.
Step 7: Run Tests
# Execute from repository root
pnpm test-rspackKey Files Checklist
Files to check/modify during upgrade:
| File Path | Modification |
rspack/package.json | @rspack/core version, package version |
rspack/crates/binding/Cargo.toml | rspack_* crate versions |
rspack/crates/binding/package.json | binding package version |
rspack/rust-toolchain.toml | Rust nightly version |
packages/next-rspack/package.json | @next/rspack-core version reference (update on release, use link for local testing) |
Pre-requisites for Local Testing
Before running pnpm test-rspack, you must build and link @next/rspack-core:
# 1. Build @next/rspack-core
cd rspack
pnpm install
pnpm build
# 2. Link to packages/next-rspack
cd ../packages/next-rspack
pnpm link ../../rspack
# 3. Return to root and update dependencies
cd ../..
pnpm install
# 4. Run tests
pnpm test-rspackNote: After modifying Rust code under
rspack/, you need to re-runpnpm buildfrom step 1.
Test Commands
# Full test suite (using Rspack compiler)
pnpm test-rspack
# Development mode tests
pnpm test-dev-rspack
# Production mode tests
pnpm test-start-rspack
# Run specific tests only
pnpm run with-rspack pnpm testonly -- <test-pattern>All test commands set environment variables via with-rspack:
cross-env NEXT_RSPACK=1 NEXT_TEST_USE_RSPACK=1Development Notes
Environment Variable Differentiation
Use the NEXT_RSPACK environment variable to differentiate compilers in packages/next/ code:
// Check if using Rspack
const isRspack = Boolean(process.env.NEXT_RSPACK)
if (process.env.NEXT_RSPACK) {
// Rspack-specific logic
} else {
// Webpack logic
}Common Code Locations
- Compiler selection logic:
packages/next/src/lib/bundler.ts - Webpack configuration:
packages/next/src/build/webpack-config.ts - Loader adaptations:
packages/next/src/build/webpack/loaders/
Custom Plugins
@next/rspack-core exports = @rspack/core + custom plugins:
NextExternalsPlugin- externals handling plugin implemented in Rust
Release Process
Release via GitHub Actions workflow:
- Workflow:
.github/workflows/release-next-rspack.yml - Supports dry-run mode
- Supports multiple npm tags (latest, alpha, beta, canary)
References
- Upstream Rspack repository: https://github.com/web-infra-dev/rspack
- Rspack documentation: https://rspack.rs
- Next.js with Rspack example:
examples/with-rspack/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

