Skip to content

web-infra-dev/modern.js

This branch is 7 commits ahead of main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2557ff9 ยท Mar 28, 2025
Mar 28, 2025
Feb 25, 2025
Sep 6, 2023
Feb 28, 2025
Mar 28, 2025
Mar 27, 2025
Mar 27, 2025
Nov 21, 2022
Feb 7, 2025
Oct 11, 2023
Sep 27, 2024
Feb 20, 2024
Feb 2, 2024
Mar 4, 2022
Apr 17, 2023
May 23, 2023
Aug 23, 2023
Feb 25, 2025
Nov 5, 2024
Sep 11, 2023
Feb 7, 2025
Jun 21, 2023
Mar 12, 2024
Feb 18, 2025
Mar 27, 2025
Oct 24, 2023

Repository files navigation

Modern.js Logo

Modern.js

Inspire creativity in modern web development.

npm version downloads License

English | ็ฎ€ไฝ“ไธญๆ–‡

Introduction

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.

When developing React applications, developers usually need to design implementation plans for certain features or use other libraries and frameworks to solve these problems. Modern.js supports all configurations and tools needed by React applications, and has built-in additional features and optimizations. Developers can use React to build the UI of the application, and then gradually adopt the features of Modern.js to solve common application requirements, such as routing, data acquisition, and state management.

Getting Started

See Quick Start.

Ecosystem

The following solutions and libraries are available within the Modern.js ecosystem:

  • ๐Ÿฆ€ Rspack: A fast Rust-based web bundler.
  • ๐Ÿฌ Rsbuild: An Rspack-based build tool for the web, rebranded from Modern.js Builder.
  • ๐Ÿน Rspress: A fast Rspack-based static site generator.
  • ๐Ÿฆ„ Rslib: An Rspack-based library development tool.
  • ๐ŸŸ Garfish: A powerful micro front-end framework.
  • ๐Ÿฆ† Reduck: An redux-based state management library.
  • ๐Ÿด SWC Plugins: Built-in SWC plugins for Modern.js.

Benchmark

We use Modern.js Benchmark to observe the trend of key metrics, such as bundle size, compile speed and install size.

Roadmap

Please refer to the Modern.js Roadmap. We will update the Roadmap content regularly. Please stay tuned.

Examples

Modern.js provides a collection of ready-to-use examples that you can find and use in the modern-js-examples repository.

Contributing

New contributors welcome!

Please read the Contributing Guide.

Code of Conduct

This repo has adopted the Bytedance Open Source Code of Conduct. Please check Code of Conduct for more details.

All Contributors

Thanks to the following friends for their contributions to Modern.js:

contributors

Credits

Some implementations of Modern.js are modified from existing projects, such as create-react-app, remix, jest and bundle-require. Thanks for them.

  • @modern-js/bundle-require: is modified from bundle-require.
  • @modern-js/plugin: the hooks API is referenced from farrow-pipeline.
  • @modern-js/plugin-testing: the jest runner is referenced from jest-cli.
  • @modern-js/plugin-data-loader: some code is referenced from remix.
  • @modern-js/babel-plugin-module-resolver: is modified from babel-plugin-module-resolver.

License

Modern.js is MIT licensed.

Third party licenses are listed in THIRD-PARTY-LICENSE.