MCPcopy
hub / github.com/premieroctet/openchakra

github.com/premieroctet/openchakra @v1.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.0 ↗
252 symbols 933 edges 159 files 0 documented · 0%
README

Openchakra: Visual editor for Chakra UI.

Visual Editor for Chakra UI

OpenChakra is a visual editor for the best component library in town: Chakra UI 🤗. Quickly draft components with the simple drag and drop UI.

👉 https://openchakra.app

Features

  • 🎨 Drag and drop Chakra UI components
  • 💅 Preset components
  • 👀 Live props editing and styling
  • ⚛️ Production-ready code
  • 🎈 CodeSandbox export
  • 🔮 Undo/redo edit
  • 💽 Localstorage sync

Screenshot

Getting started

Builder mode

The Builder mode adds extra padding/border to ease components selection (like containers).

💡Toggle the Builder mode with the b shortcut

Code panel

Toggle the code panel for viewing the JSX/React code of your components. You can even export your code directly to CodeSandbox!

💡Toggle the Code panel with the c shortcut

Components panel

Drag any component from the left hand panel into this editor. Then start interacting with them. You can drag a preset: it's a group of components (like Alert). Just drop a preset to easily setup a complex component!

Inspector

Update props & style

On the right hand-side, you can find the inspector panel. You will find the tools to edit the component's props and style.

Delete, reset and documentation

Reach the yellow bar on the top to delete, reset and access the Chakra documentation of each component.

Sort components

By clicking on a component containing children, you will see a Children panel appearing on the right. It enables sorting the children.

Editor Shortcuts

Shortcut Description
cmd+Z ctrl+Z Undo last action
cmd+Y ctrl+y Redo action
cmd+D ctrl+d Duplicate component
del Delete selected component
c Toggle Code panel
b Toggle Builder mode
p Select parent component
Esc Unselect component

Roadmap

  • More Chakra UI components integration
  • Components copy
  • Props panel improvements
  • Code generation improvements
  • Dark mode support
  • Custom presets
  • Custom theme
  • Handle PseudoBox state (hover, active…)
  • Fix bugs 🧨
  • Support other UI (Material, Reakit...)

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Extension points exported contracts — how you extend this code

IComponent (Interface)
(no doc)
src/react-app-env.d.ts
Props (Interface)
(no doc)
src/components/inspector/ActionButton.tsx
IDoc (Interface)
(no doc)
src/models/doc.ts
IComponents (Interface)
(no doc)
src/react-app-env.d.ts
Props (Interface)
(no doc)
src/components/inspector/elements-list/ElementListItem.tsx
IPreviewProps (Interface)
(no doc)
src/react-app-env.d.ts
Props (Interface)
(no doc)
src/components/inspector/elements-list/ElementsList.tsx
ComponentItemProps (Interface)
(no doc)
src/react-app-env.d.ts

Core symbols most depended-on inside this repo

usePropsSelector
called by 72
src/hooks/usePropsSelector.ts
useForm
called by 40
src/hooks/useForm.ts
useInteractive
called by 26
src/hooks/useInteractive.ts
useDropComponent
called by 20
src/hooks/useDropComponent.ts
useDispatch
called by 12
src/hooks/useDispatch.ts
generateId
called by 8
src/utils/generateId.ts
getComponents
called by 6
src/core/models/composer/composer.ts
generateCode
called by 4
src/utils/code.ts

Shape

Function 224
Interface 15
Method 7
Class 6

Languages

TypeScript100%

Modules by API surface

src/core/models/components.ts17 symbols
src/hooks/useShortcuts.ts11 symbols
src/core/selectors/components.ts11 symbols
src/utils/code.ts8 symbols
src/core/models/composer/builder.ts6 symbols
src/components/inspector/elements-list/ElementListItemDraggable.tsx5 symbols
src/components/inspector/ChildrenInspector.tsx5 symbols
src/components/errorBoundaries/EditorErrorBoundary.tsx5 symbols
src/utils/recursive.ts4 symbols
src/react-app-env.d.ts4 symbols
src/core/selectors/app.ts4 symbols
src/core/models/composer/composer.ts4 symbols

Dependencies from manifests, versioned

@bugsnag/js6.5.2 · 1×
@bugsnag/plugin-react6.5.0 · 1×
@chakra-ui/icons2.0.9 · 1×
@chakra-ui/react2.3.2 · 1×
@chakra-ui/theme2.1.11 · 1×
@emotion/react11.10.4 · 1×
@emotion/styled11.10.4 · 1×
@mdx-js/react1.5.5 · 1×
@next/bundle-analyzer9.5.1 · 1×
@reach/combobox0.7.3 · 1×
@rehooks/local-storage2.1.1 · 1×
@rematch/core1.3.0 · 1×

For agents

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

⬇ download graph artifact