Installation

Usage Guides

Reference

Commands

Language Server

MCP Server

Getting Started

This guide will walk you through creating your first custom element project with cem.

Prerequisites

  • Node.js 24+ or Go 1.24+
  • A code editor (VS Code, Neovim, etc.)
  • Basic familiarity with custom elements / web components

Quick Start

  1. Install cem - Get the tool installed
  2. Write your component with JSDoc documentation
  3. Generate the manifest: cem generate
  4. Create a demo HTML file
  5. Serve and test: cem serve

The Development Workflow guide provides detailed examples and explanations for each step.

Enhance Your Setup

Use cem’s LSP and MCP servers to enhance your development environment.

Choose Your Starting Point

cem provides several example projects to help you get started. Choose based on your needs:

See the full Examples Overview for all options.

The Development Workflow

cem uses a manifest-driven workflow: Write → Generate → Serve → Test → Edit. You write custom elements with JSDoc documentation, generate a manifest file, and use the dev server to view and test your components with live reload. The manifest powers LSP features in your editor and enables the dev server’s automatic documentation and interactive controls.

For a complete walkthrough of each phase, see the Development Workflow guide.

Features

The dev server provides:

Next Steps

Reference Documentation

Need help? See Troubleshooting for common issues and solutions.