Modern.js llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/modern-js/llms-txt)

# Modern.js llms.txt

Browse Modern.js documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

modernjs.dev/llms.txt

[Raw llms.txt](https://modernjs.dev/llms.txt) [Raw llms-full.txt](https://modernjs.dev/llms-full.txt)

Copy Markdown [](https://modernjs.dev/llms.txt)

llms.txt

Guide

Introduction

Quick Start

Upgrading

Glossary

Tech Stack

AI Tools

Page Entry

Build Engine

Web Server

Routing

Config Routes

Data Fetching

Data Writing

Data Caching

Rendering Mode Overview

Server-Side Rendering

Streaming Server-Side Rendering

Rendering Cache

Static Site Generation

React Server Components (RSC)

Render Preprocessing

Styling

Use CSS Modules

Using CSS-in-JS

Using Tailwind CSS

HTML Template

Import Static Assets

Import JSON Files

Import SVG Assets

Import Wasm Assets

Data Mocking

Local Proxy

Using Rsdoctor

Using Storybook

Rstest

Playwright

Path Alias

Environment Variables

Output Files

Deploy Application

BFF

Basic Usage

Runtime Framework

Creating Extensible BFF Functions

Extend BFF Server

Extend Request SDK

File Upload

Cross-Project Invocation

Code Splitting

Inline Static Assets

Bundle Size Optimization

React Compiler

Improve Build Performance

Browser Compatibility

Low-Level Tools

Source Code Build Mode

Monitors

Logs Events

Metrics Events

Internationalization

Quick Start

Configuration

Locale Detection

Resource Loading

Routing Integration

API Reference

Advanced Usage

Best Practices

Custom Web Server

Introduction

Getting Started

Application-Level Modules

Server-Side Rendering

Deployment

Integrating Internationalization

Dependencies FAQ

CLI FAQ

Build FAQ

HMR FAQ

Overview

Configuration Changes

Entry Changes

Custom Web Server Changes

Tailwind Plugin Changes

Other Important Changes

Config

Configuration

assetPrefix

beforeStartUrl

client

hmr

host

https

lazyCompilation

liveReload

progressBar

server

setupMiddlewares

startUrl

watchFiles

writeToDisk

crossProject

prefix

appIcon

crossorigin

favicon

inject

meta

mountId

outputStructure

scriptLoading

tags

templateParameters

template

title

autoprefixer

bundlerChain

cssExtract

cssLoader

devServer

htmlPlugin

less

lightningcssLoader

minifyCss

postcss

rspack

sass

styleLoader

swc

tsChecker

aliasStrategy

alias

configDir

decorators

define

disableDefaultEntries

enableAsyncEntry

enableAsyncPreEntry

entriesDir

entries

exclude

globalVars

include

mainEntryName

preEntry

reactCompiler

transformImport

aliasStrategy

alias

conditionNames

dedupe

extensions

baseUrl

port

publicRoutes

routes

rsc

ssrByEntries

ssr

tsconfigPath

assetPrefix

assetsRetry

charset

cleanDistPath

convertToRem

copy

cssModules

dataUriLimit

disableCssModuleExtension

disableInlineRuntimeChunk

disableSvgr

disableTsChecker

distPath

enableAssetManifest

enableCssModuleTSDeclaration

disableInlineRouteManifests

externals

filenameHash

filename

injectStyles

inlineScripts

inlineStyles

legalComments

minify

overrideBrowserslist

polyfill

sourceMap

splitRouteChunks

ssg

ssgByEntries

svgDefaultExport

tempDir

plugins

checkSyntax

nonce

sri

Introduce

plugins

router

buildCache

chunkSplit

dnsPrefetch

preconnect

prefetch

preload

printFileSize

profile

removeConsole

removeMomentLocale

sourceBuild

builderPlugins

splitChunks

Plugin

Introduction

Plugin System

CLI Plugin API

Life Cycle

Plugin API

Life Cycle

Plugin API

Life Cycle

Overview

BFF Plugin

SSG Plugin

Styled Components Plugin

API

Commands

App.tsx

entry.ts

entry.server.tsx

modern.runtime.ts

routes/

*.[server|node].tsx

lambda/*.ts

modern.server.ts

shared/

html/

favicon.*

icon.*

mock/

public/

upload/

modern.config.ts

createRoot

render

RuntimeContext

router

NoSSR

renderStreaming

renderString

createRequestHandler

useHonoContext

CSS-In-JS API

Head

loadable

Examples

Route Authorization

Introduction

Community

Showcase

Meet the Team

Releases

Contributing Guide

Overview

Modern.js v3 Release

Modern.js v2 发布

2022 年 9 ~ 10 月更新内容

2022 年 7 ~ 8 月更新内容

## What is Modern.js's llms.txt?

Modern.js publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Modern.js offers and where to find details.

Pass

Spec

6

Sections

263

Links

97.7 KB

Size

~24.8k

Tokens

Sections: Guide · Config · Plugin · API · Examples · Community

## Add Modern.js Docs to Your AI Assistant

Select your tool to see how to add Modern.js's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://modernjs.dev/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Modern.js

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 266 notes

## Frequently Asked Questions

Where is Modern.js's llms.txt file?

Modern.js publishes its llms.txt at https://modernjs.dev/llms.txt. This file provides a structured, markdown-formatted index of Modern.js's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Modern.js's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Modern.js's documentation so it can provide better code suggestions and answers about Modern.js.

What does Modern.js's llms.txt contain?

Modern.js's llms.txt contains 6 sections and 263 documentation links in 97.7 KB (~24.8k tokens). Key sections include Guide, Config, Plugin, API, Examples, Community.

How many tokens does Modern.js's llms.txt use?

The concise llms.txt index is approximately 24.8k tokens (97.7 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Modern.js?

The Modern.js framework is a progressive web framework based on React. At ByteDance, we use Modern.js to build upper-level frameworks that have supported the development of thousands of web applications.. Modern.js's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Modern.js.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Milvus Milvus is an open-source, high-performance vector database designed for similarity search and AI applications. It supports billion-scale vector storage and search across deployment modes: Milvus Lite (embedded, for prototyping), Milvus Standalone (single-node, for small-scale production), and Milvus Distributed (Kubernetes, for enterprise scale). The primary SDK is PyMilvus for Python; Java, Go, Node.js, and RESTful SDKs are also available. Always check PyPI (`pip install --upgrade pymilvus`) or npm for the latest SDK version rather than relying on memorized version numbers.](https://mdream.dev/llms-txt/modern-js/llms-txt/milvus) [tldraw SDK very good whiteboard infinite canvas SDK](https://mdream.dev/llms-txt/modern-js/llms-txt/tldraw) [Tiger Data Documentation](https://mdream.dev/llms-txt/modern-js/llms-txt/timescale) [LimeSurvey](https://mdream.dev/llms-txt/modern-js/llms-txt/limesurvey) [Dub](https://mdream.dev/llms-txt/modern-js/llms-txt/dub) [Engineering Productivity Software for Delivery Leaders | Middleware](https://mdream.dev/llms-txt/modern-js/llms-txt/engineering-productivity-software-for-delivery-leaders-middleware) [Taiga UI - Angular Components Library Enterprise‑grade Angular UI components with 100+ building blocks, charts, and utilities.](https://mdream.dev/llms-txt/modern-js/llms-txt/taiga-ui) [New API Docs (en) LLM-friendly index for New API documentation.](https://mdream.dev/llms-txt/modern-js/llms-txt/new-api)

[View all 99 projects ](https://mdream.dev/llms-txt/modern-js/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/modern-js/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/modern-js/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)