MCPcopy Index your code
hub / github.com/alibaba/rax

github.com/alibaba/rax @v1.2.2 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.2 ↗
1,300 symbols 2,749 edges 299 files 15 documented · 1% 21 cross-repo links
README

Rax

Rax is a progressive React framework for building universal applications.

gzip size


💌 Write Once, Run Anywhere: write one codebase, run with Web, Weex, Node.js, Alibaba MiniApp, WeChat MiniProgram and could work with more container that implements driver specification.

Fast: use better performance and tinier size(📦~6KB) alternative to React with the same API.

📤 Easy: quick start with zero configuration, all features like Progressive Web App (PWA), Server-Side Rendering (SSR) and Function as a service (FaaS) can be used out of the box.

Quick Start 🥢🍚

Start from command line

Create a new Rax project using create-rax:

$ npm init rax <YourProjectName>

npm init <initializer> is available in npm 6+

Start local server to launch project:

$ cd <YourProjectName>
$ npm install
$ npm run start

Start from VS Code

You need to install the AppWorks Pack and invoke the Create Application command from the VS Code command palette (Ctrl + Shift + P or Cmd + Shift + P on Mac):

vscode

Developer Tools 🛠

You can inspect and modify the state of your Rax components at runtime using the Rax Developer Tools browser extension, and extension not works in production mode.

  1. Install the Chrome Rax Developer Tools extension
  2. Reload and go to the 'Rax' tab in the browser's development tools

VS Code Extension

You can use AppWorks Pack to get better development experience.

Awesome Things 📝

You can find some awesome things in awesome-rax.

Contributing 🧼

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing.

Code Contributors

This project exists thanks to all the people who contribute.

Community support

For general help using Rax, please refer to the official site. For additional help, you can use one of these channels to ask a question:

  • GitHub (Bug reports, contributions)
  • Twitter (Get the news fast)
  • Medium (Get blogs and articles)
  • 知乎专栏 (Get blogs and articles in Simplified Chinese)

Core symbols most depended-on inside this repo

renderToString
called by 244
packages/rax-server-renderer/src/index.js
setState
called by 90
packages/rax/src/vdom/component.js
useState
called by 47
packages/rax/src/hooks.js
useEffect
called by 32
packages/rax/src/hooks.js
render
called by 28
packages/rax/src/render.js
createContext
called by 26
packages/rax/src/createContext.js
clickElementById
called by 23
scripts/bench/src/webdriverAccess.js
set
called by 21
packages/style-unit/src/index.js

Shape

Function 720
Method 337
Class 243

Languages

TypeScript100%

Modules by API surface

packages/rax/src/vdom/__tests__/composite.js111 symbols
scripts/bench/frameworks/vanillajs/src/Main.js37 symbols
packages/driver-webgl/src/plugin/controls/OrbitControls.js31 symbols
packages/rax/src/vdom/__tests__/fragment.js28 symbols
packages/rax/src/testing/__tests__/renderer.js25 symbols
packages/rax/src/__tests__/hooks.js24 symbols
packages/rax-server-renderer/src/index.js24 symbols
packages/rax/src/__tests__/createContext.js22 symbols
packages/rax-server-renderer/src/__tests__/elements.js22 symbols
packages/driver-dom/src/index.js22 symbols
scripts/bench/src/runner.js21 symbols
packages/driver-weex/src/index.js20 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@alib/build-scripts0.1.0 · 1×
@babel/core7.12.9 · 1×
@babel/plugin-proposal-class-properties7.2.0 · 1×
@babel/plugin-proposal-decorators7.2.0 · 1×
@babel/plugin-proposal-export-default-from7.2.0 · 1×
@babel/plugin-syntax-dynamic-import7.7.4 · 1×
@babel/plugin-transform-runtime7.14.5 · 1×
@babel/preset-env7.2.0 · 1×
@babel/preset-flow7.0.0 · 1×
@babel/preset-react7.0.0 · 1×
@babel/runtime7.14.6 · 1×
@rollup/plugin-babel5.2.1 · 1×

For agents

$ claude mcp add rax \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact