Skip to content

Installation

Before installing Wire-DSL, ensure you have:

  • Node.js 20+ (LTS version recommended)
  • pnpm 8+ (fast, space-efficient package manager)

Verify your versions:

Terminal window
node --version # Should be 20 or higher
pnpm --version # Should be 8 or higher
Terminal window
git clone https://github.com/Wire-DSL/wire-dsl.git
cd wire-dsl
Terminal window
pnpm install

This command installs all dependencies for the entire monorepo including the parser, CLI, web editor, and all supporting packages.

Run the build and tests to confirm everything is working:

Terminal window
pnpm build
pnpm type-check
pnpm test

All commands should complete without errors.

The easiest way to start building wireframes is with the interactive web editor:

Terminal window
cd apps/web
pnpm dev

Then open your browser to http://localhost:3000 and you’ll see the Wire-DSL editor with live preview.

If you prefer working with command-line tools:

Terminal window
cd packages/cli
pnpm build
node dist/index.js --help

This shows all available CLI commands for rendering and validating .wire files.

The monorepo is organized into several packages:

From the root directory:

Terminal window
pnpm dev # Start all dev servers
pnpm build # Build all packages
pnpm test # Run all tests
pnpm lint # Check code style
pnpm lint:fix # Fix linting issues
pnpm format # Format all code
pnpm type-check # Validate TypeScript
pnpm clean # Remove all build artifacts

Install pnpm globally:

Terminal window
npm install -g pnpm

Ensure you’re running Node.js 20+ and pnpm 8+:

Terminal window
node --version
pnpm --version

If port 3000 is already in use, the web editor will automatically try the next available port. Check the terminal output for the actual URL.