MCPcopy Index your code
hub / github.com/diegohaz/arc

github.com/diegohaz/arc @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
79 symbols 482 edges 136 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

arclogo

Latest release Build Status Coverage Status Gitter chat

ARc (Atomic React) is a React starter kit based on the Atomic Design methodology. It's progressive, which means that you can start with the basic boilerplate and try the other features when you are comfortable.

Branches

The basic stack with React, Webpack, react-router and Jest.

Why

I've been a web developer for the past 14 years and after dealing with IE vs. Netscape wars, <table> layouts and flash websites, I can say that we are now living in the best moment in web development. Web components are awesome and React makes it better.

React encourages you to create very small and pure components. However, as your project grows, you will have an increasingly complex components folder. At some point, this will be really huge and hard to maintain.

I had a React project with more than 100 components in the components folder. The first approach I tried to organize it was separating the components by domain (described here), but I realized that most of my components didn't belong to any domain, but were shared. This meant that my problems just moved to the commons folder.

The Atomic Design approach comes handy to solve this problem because it considers the reusability through composition, which is actually what React is. You will have your minimal/stylish components in one folder, pages in another and so on.

Setup

1. Get the source code

Just clone one of the ARc branches:

$ git clone -b master https://github.com/diegohaz/arc my-app
$ cd my-app

You will probably want to remove ARc git history and start a brand new repository:

$ rm -rf .git
$ git init

2. Install dependencies

$ npm install

3. Run the app

$ npm run dev

It will start the development server with HMR on top of it.

http://localhost:3000 — Development server

http://localhost:3001 — Webpack assets server (for redux-ssr only)

Now you can open http://localhost:3000 in browser and start developing.

Contributing

When submitting an issue, use the following patterns in the title for better understanding:

[v0.3.1-redux] Something wrong is not right # the v0.3.1 release of the redux branch
[redux] Something wrong is not right # the actual code of the redux branch
Something wrong is right # general, related to master or not directly related to any branch

PRs are very appreciated. For bugs/features consider creating an issue before sending a PR.

License

MIT © Diego Haz

Core symbols most depended-on inside this repo

perpendicular
called by 5
src-example/components/atoms/Tooltip/index.js
opposite
called by 4
src-example/components/atoms/Tooltip/index.js
perpendicularAxis
called by 4
src-example/components/atoms/Tooltip/index.js
renderApp
called by 2
src-example/index.js
renderApp
called by 2
src/index.js
babel
called by 1
webpack.config.js
App
called by 0
src-example/components/App.js
Table
called by 0
src-example/components/molecules/Table/index.js

Shape

Function 79

Languages

TypeScript100%

Modules by API surface

src-example/components/atoms/Button/index.js5 symbols
src-example/components/molecules/Slider/index.js4 symbols
src-example/components/atoms/Tooltip/index.js4 symbols
src-example/components/molecules/IconLink/index.js3 symbols
webpack.config.js1 symbols
src/index.js1 symbols
src/components/pages/HomePage/index.js1 symbols
src/components/App.js1 symbols
src-example/index.js1 symbols
src-example/components/templates/PageTemplate/index.test.js1 symbols
src-example/components/templates/PageTemplate/index.js1 symbols
src-example/components/templates/GenericTemplate/index.test.js1 symbols

For agents

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

⬇ download graph artifact