MCPcopy Index your code
hub / github.com/aidenybai/reaict

github.com/aidenybai/reaict @v0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.2 ↗ · + Follow
9 symbols 14 edges 4 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

reaict

Automatically optimize React components with AI

Reaict is a Next.js / Vite / Webpack plugin that automatically analyses your React components and optimizes them for performance during build time. It uses OpenAI's gpt-3.5-turbo model to generate the optimized code.

Installation

npm install reaict-js

Usage

Next.js

// next.config.js
const withReaict = require('reaict-js');

module.exports = withReaict(
  {
    // your next.js config
  },
  { apiKey: 'YOUR_OPENAI_KEY' },
);

Create React App

const withReaict = require('reaict-js');

module.exports = {
  webpack: {
    plugins: { add: [withReaict.webpack({ auto: true })] },
  },
};

Vite

// vite.config.js
import { defineConfig } from 'vite';
import withReaict from 'reaict-js';

export default defineConfig({
  plugins: [withReaict.vite({ apiKey: 'YOUR_OPENAI_KEY' })],
});

Webpack

const withReaict = require('reaict-js');

module.exports = {
  plugins: [withReaict.webpack({ apiKey: 'YOUR_OPENAI_KEY' })],
};

Extension points exported contracts — how you extend this code

Options (Interface)
(no doc)
src/plugin.ts

Core symbols most depended-on inside this repo

isCapitalized
called by 1
src/utils.ts
transformInclude
called by 0
src/plugin.ts
transform
called by 0
src/plugin.ts
FunctionDeclaration
called by 0
src/plugin.ts
optimize
called by 0
src/plugin.ts
normalizePlugins
called by 0
src/plugin.ts
next
called by 0
src/index.ts
webpack
called by 0
src/index.ts

Shape

Function 8
Interface 1

Languages

TypeScript100%

Modules by API surface

src/plugin.ts6 symbols
src/index.ts2 symbols
src/utils.ts1 symbols

For agents

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

⬇ download graph artifact