Skip to content
xizonPublic

Repository files navigation

Makelier

Makelier

Version

🇺🇸 English  |  🇨🇳 简体中文  /  繁體中文

Build AI-iterable HTML websites with native web tech. Turn components into production-ready WordPress blocks in one click.

AI can generate a website in seconds. Keeping it maintainable is the real challenge. Makelier organizes HTML, CSS, and JavaScript into structured source files, so AI-generated sites can keep evolving without starting over.

code cards

Why Makelier

  • Native and framework-free. Write Template (TSX, HTML structure), Controller (TypeScript, interaction logic), and Style (Tailwind / native CSS). The build outputs standalone HTML pages and assets without a React or Vue runtime. TSX is used only at build time as template syntax.
  • Built for AI-assisted iteration. Each component has a clear structure (template, controller, style), helping the built-in AI Agent and external tools like Cursor, Codex, Antigravity, and Claude Code make focused changes and maintain existing code.
  • Deliver beyond the website. Export reusable components as WordPress Block Plugins or as a React app with one command.
  • Yours to keep. All project files stay on your machine. Build clean, maintainable HTML pages and static assets for any hosting platform or integration into PHP, Java, Next.js, or WordPress.

How It Works

A Project contains one or more Sites. Each Site is an independent sandbox with its own pages, components, styles, and build output. Each Site builds into a standalone Website., and Sites can share components and static assets when needed.

Term Description
Project The workspace containing one or more Sites
Site An independent website project with its own source files and configuration
Page / Component A page, or a reusable UI unit, inside a Site
Website The built output of a Site, ready to deploy
Template A published Site you can download with npx makelier add

AI Agent

Makelier includes a built-in AI Agent that reads your component and page indexes to create and modify code in your Site.

Model Support

  • Cloud Models: Connect to supported AI providers using your own API keys.
  • Local Models: Connect to locally hosted models through compatible inference services, such as Ollama.

Privacy & Configuration

  • Bring Your Own API Key. Configure your own API keys for cloud models.
  • Local Execution. The Agent runs within your local development environment.
  • Data Transmission. Cloud model requests send prompts and relevant project context to the configured provider. Local model requests are processed by your local inference service without sending them to a cloud model provider.

Who It's For

A good fit if you:

  • build websites with AI and want code that's easy to customize, extend, and integrate into other systems
  • prefer native HTML/CSS/JS without a frontend framework runtime
  • build client websites or reusable WordPress blocks

Features

Development

  • CLI commands for creating Sites, components, and pages
  • Automatic component mounting and live browser preview
  • Compatible with GSAP, Three.js, anime.js, jQuery, and other JavaScript libraries
  • Per-Site Tailwind prefixes for style isolation and cross-Site sharing of components and assets
  • Site-level and page-level SEO settings with automatic meta and Open Graph tag generation

Build & Delivery

  • Visual Content Editor: Customize text and images directly in the browser. Export your edits as a standalone HTML file without modifying your Site source
  • Independent builds per Site with configurable image optimization
  • WordPress Block Plugin export for client projects or commercial distribution
  • React app export for component reuse in React projects
  • Standalone HTML output ready for CDNs, Nginx, or any static host

Table of Contents

1. Quick Start

Requirements: Node.js 22.12.0+

Focus exclusively on sites/ After cloning the repository and installing dependencies, you can do all your daily development inside the sites/ directory. Create components, pages, styles, and assets inside the Site you want to work on.

Just want a ready-made template? Download any published Site:

npx makelier list
npx makelier add product-elegant

Browse templates and live previews in the Makelier Marketplace.

1.1 Installation & Setup

npm install
npm run build
npm run dev     # http://localhost:3000

On first use, run npm run build to generate TypeScript configuration and component/page indexes for the Agent.

Run npm run build before your first dev to generate the TypeScript configuration and component/page indexes required by the AI Agent.

1.2 CLI Commands (Development & Build)

All sites are located in sites/, with each subdirectory representing an independent website.

The project includes product-elegant as an example. The directory name, name in site.json, and name in package.json must match.

Task Command
Develop a site npm run dev -- my-site
Build a site npm run build -- my-site
Preview a site npm run preview -- my-site
Check TypeScript npm run typecheck
Export a React app npm run export:react -- my-site
Build all sites npm run build -- all
Export React apps for all sites npm run export:react -- all

Notes

  • Each site outputs to its own dist/ directory.
  • dev and preview support only one site at a time and do not support all.
  • Both use port 3000 by default. Do not run them simultaneously.

1.3 CLI Commands (Quick Setup)

Task Command
Create a site npm run create:site -- my-site
Create a component npm run create:component -- "Hero" --site my-site
Create a page npm run create:page -- "Pricing" --site my-site

All creation commands support the optional --prefix flag:

npm run create:site -- my-site --prefix myprefix
npm run create:component -- "Hero" --site my-site --prefix myprefix
npm run create:page -- "Pricing" --site my-site --prefix myprefix

1.4 Workflow

Architecture

1.5 Site Development Workspace

Makelier/
│   ...
└── sites/
    ├── site-a/
    │   ├── src/
    │   │   ├── pages/              # Website pages
    │   │   ├── components/         # Reusable UI components
    │   │   └── styles/             # Global styles
    │   │
    │   ├── public/                 # Static assets
    │   └── dist/                   # Built website
    │
    ├── site-b/
    └── site-c/     

15. Browser & Device Support

15.1 Desktop Browsers

Browser Minimum version
Google Chrome v112+
Microsoft Edge v112+
Apple Safari v16.5+
Mozilla Firefox v117+
Internet Explorer ❌ Not supported

15.2 Mobile OS & Devices

OS / Device Browser / Engine Minimum supported OS version
iPhone / iPad iOS Safari / WebKit iOS 16.0.3+
Android phones / tablets Chrome for Android Android 10+

16. Contributing

We welcome developers to contribute to Makelier by sharing their creations, reporting issues, suggesting improvements, and enhancing documentation.

16.1 Share Your Creations

We welcome Sites created and shared by the community!

If you would like to contribute your own creation to Makelier, you can submit a Pull Request for a new Site (sites/{your-site-name}/).

Please follow the contribution workflow below.

16.2 Report Issues & Suggestions

If you encounter any problems or have ideas and suggestions, feel free to reach out through GitHub Issues.

  • Bug Reports: Describe the issue, steps to reproduce, and expected behavior.
  • Feature Requests: Suggest new features or improvements.
  • Other Feedback: Share your experience, observations, or any other valuable ideas.

16.3 Contribution Workflow

  1. Fork and clone the repository.
  2. Install dependencies: npm install
  3. Make the necessary changes according to the contribution type.
  4. Test your changes locally to ensure everything works as expected.
  5. Submit a Pull Request with a clear description of the changes and their purpose.

16.4 PR Checklist

General Checklist (Applies to All PRs)

  • Changes align with the project's purpose and direction.
  • Code follows the existing project structure and conventions.
  • Build and type checks pass, where applicable.
  • No unrelated changes or unnecessary generated files are included.
  • The PR description clearly explains the changes and their purpose.

Site PR Checklist

  • Changes are strictly inside sites/{your-site-name}/.
  • Directory name uses kebab-case and matches name in site.json and package.json.
  • The Site builds and passes type checks.
  • All dependencies are declared in the corresponding Site's package.json.
  • Generated files (dist/, index.json files, tsconfig.json) are excluded.

17. Development Environment

18. Support & Acknowledgements

Makelier is an open-source project dedicated to bringing an engineering-driven approach to the development of purely static, creative, and interactive websites. It aims to make website template creation, customization, reuse, sharing, and delivery simpler and more efficient — bringing static website development back to the joy of creation.

Through a tool-driven and structured development workflow, we aim to eliminate tedious processes and let developers focus on frontend creation, UI design, and interactive experiences, while enjoying the pure pleasure of building things.

If you find this project useful, your support will be a great motivation for us to keep improving and growing!

Thank you!

19. License

Licensed under the MIT License.