Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal

An open-source AI art director for React interfaces built with coding agents.

Node 22+ pnpm 11+ TypeScript React 19 MIT License

Star Universal · Connect to Codex · Contribute · Roadmap

Coding agents are good at producing functional React code, but they often fall back to the same visual defaults: generic heroes, repeated card grids, arbitrary gradients, and weak hierarchy. Universal adds a design-direction step before implementation and a critique step after it.

It gives a compatible coding agent:

  • a structured creative brief and art direction;
  • composition, typography, color, motion, and accessibility constraints;
  • a versioned design plan that can be carried into implementation; and
  • an implementation review that finds generic or off-direction choices.

Universal is for developers building React interfaces with coding agents who want deliberate design decisions without turning their workflow into a full visual editor.

How it works

project context
      ↓
discovery questions → approved creative brief
      ↓
art direction → selected direction → Design Plan v2
      ↓
MCP-host model authors React source
      ↓
trusted materialization → locked build → local Vite
      ↓
source and visual review → prioritized findings

Universal exposes this workflow through a local Model Context Protocol server. The Studio application provides a deterministic, credential-free way to inspect the current art-direction flow.

What is ready today

Universal is in active early development. Phase 3 provides an offline deterministic path from an approved Design Plan v2 through deterministic or MCP-host-authored React generation, immutable workspace materialization, a locked production build, and an isolated loopback preview. Studio and Preview can use versioned runtime records; hosted deployment, arbitrary packages, and a production live-provider adapter remain out of scope.

Available Still in progress
Discovery, brief approval, and direction selection Production live-provider implementation
Design Plan v2 compiler and digest-bound provenance OS or container sandboxing
Provider-neutral deterministic React generation Full macOS and Linux runtime validation
Trusted local runtime and immutable workspaces Hosted deployment and public previews
Locked production builds and isolated static previews Packaging and one-command distribution
Runtime-connected Studio and Preview applications Stable public release guarantees
Deterministic rendered benchmark and recovery tests Subjective visual quality automation

The roadmap tracks planned milestones. The architecture guide distinguishes implemented behavior from planned boundaries.

Try the local Studio

Requirements

  • Git
  • Node.js 22 or newer
  • pnpm 11 or newer

Verify versions, enable the repository-pinned pnpm, and troubleshoot PowerShell or occupied ports with the cross-platform local setup guide.

git clone https://github.com/7shep/universal.git
cd universal
pnpm install
pnpm dev

pnpm dev starts Studio, Preview, and the Axis 65 demo site. Studio uses local deterministic fixtures, so exploring the design-direction sequence does not require model credentials.

To connect the MCP server to Codex, follow the step-by-step Codex setup guide. Downstream products should use the orchestration API instead of importing MCP transport internals.

MCP workflow

The recommended Phase 2 art-director sequence is:

start_art_direction
  → get_discovery_questions
  → submit_discovery_answers
  → get_creative_brief
  → approve_creative_brief
  → develop_art_direction
  → get_selected_direction
  → create_design_plan_v2

revise_creative_brief supports review changes, and get_art_direction_session validates or inspects a serialized session. Every Phase 2 response returns the complete serialized session that must be passed to the next operation.

Compatibility and policy tools are also available:

  • create_design_plan establishes visual and compositional direction.
  • get_design_rules returns category-specific design constraints.
  • get_taste_profile returns the active taste principles and anti-pattern guidance.
  • review_implementation critiques React and CSS against the intended direction.

Build and test the MCP server independently:

pnpm --filter @universal/design-mcp build
pnpm --filter @universal/design-mcp test

See the MCP tool reference for all tool inputs and outputs.

Repository map

Path Responsibility
apps/studio Design-direction workspace
apps/preview Isolated preview surface
examples/demo-site Example React/Vite interface
packages/design-engine Design contracts and orchestration
packages/design-mcp Local MCP server
packages/composition-library Page-composition schemas
packages/design-linter Implementation critique contracts
packages/design-taste Versioned taste policy
packages/design-benchmark Deterministic quality benchmark
packages/generation Provider-neutral generation boundary
packages/local-runtime Trusted build and preview supervision
packages/prompts Versioned prompt definitions and assembly
packages/runtime-contracts Browser/runtime protocol contracts
packages/shared Cross-package domain utilities
packages/ui Shared React primitives

Read Architecture and ownership before changing cross-package contracts.

Contribute

You do not need to understand the entire monorepo to contribute. Useful entry points include:

If you enjoy… A useful starting point
Documentation Verify a setup guide on your platform and report unclear or missing steps
Testing Add a regression case around an existing MCP tool or validation boundary
React and accessibility Improve keyboard, focus, contrast, or reduced-motion behavior
Design systems Propose a focused composition rule or anti-pattern with fixtures and tests
Developer tooling Improve diagnostics, local setup, or package-level workflows
Evaluation Add a representative benchmark brief or strengthen deterministic checks

Start with the contribution guide. It explains how to choose a scoped change, where it belongs, what “done” means, and which checks to run. If you are unsure where an idea fits, open a contribution question before writing a large patch.

Validation

Run the full repository gate with:

pnpm lint
pnpm typecheck
pnpm build
pnpm format:check
pnpm test

Documentation

License

Universal is available under the MIT License.

About

Art-directed React websites as an MCP accessible to coding agents.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages