npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2026 – Pkg Stats / Ryan Hefner

zunokit-builder

v0.2.0

Published

🎨 Figma-style drag-and-drop UI builder for React developers. Create UI visually, export clean Tailwind CSS code. Perfect for rapid prototyping and component creation.

Readme

zunokit-builder

🎨 A React library for developers that enables Figma-style drag-and-drop UI creation with clean, production-ready code generation.

Built for developers who want to create UI quickly through visual editing, then export hand-written quality code that can be edited and deployed normally.

✨ Features

  • 🎨 Figma-style visual editor - Intuitive drag & drop interface for developers
  • ⚑ Real-time code generation - Automatically generates clean JSX components as you build
  • 🧹 Clean, maintainable output - Produces hand-written quality code with proper component structure
  • 🎯 Development-only - Builder interface only appears in NODE_ENV=development
  • 🎨 Tailwind-first - Generated code uses Tailwind CSS classes exclusively (no inline styles)
  • πŸ“¦ Smart component modularization - Automatically splits complex UI into reusable components
  • πŸ”§ Auto-imports - Manages component imports automatically
  • πŸ”„ Layout persistence - Saves layouts to .zuno/layout.json for versioning and undo
  • πŸŽ›οΈ Property editing - Visual property panel for editing component props
  • πŸ“± Responsive design - Support for different viewport sizes and breakpoints

πŸ“¦ Installation

npm install zunokit-builder
# or
yarn add zunokit-builder
# or
pnpm add zunokit-builder

Peer Dependencies:

  • React >=16.8.0
  • React DOM >=16.8.0

πŸš€ Quick Start

1. Wrap your app with ZunoBuilder

import { ZunoBuilder } from 'zunokit-builder'

function App() {
  return (
    <ZunoBuilder>
      <div className="min-h-screen bg-gray-50">
        {/* Your existing app content */}
        <h1>My App</h1>
      </div>
    </ZunoBuilder>
  )
}

export default App

2. Start development

npm run dev

3. Open the builder

In development mode, you'll see an "Open Builder" button in the top-right corner. Click it to open the visual editor.

4. Build your UI

  • πŸ“ Drag components from the sidebar (Text, Button, Input, etc.)
  • 🎯 Click elements to select and edit their properties
  • πŸ“ Resize and position elements visually
  • πŸ’Ύ Changes are automatically saved to .zuno/layout.json

πŸŽ›οΈ Configuration

import { ZunoBuilder } from 'zunokit-builder'

function App() {
  return (
    <ZunoBuilder 
      config={{
        enabled: true, // Force enable (default: NODE_ENV === 'development')
        targetPath: './src/components/GeneratedUI.tsx',
        layoutPath: './.zuno/layout.json',
        theme: {
          primaryColor: '#3b82f6',
          borderRadius: '0.5rem'
        },
        ui: {
          position: 'top-right',
          showGrid: true,
          gridSize: 10
        },
        codegen: {
          componentNaming: 'PascalCase',
          generateTypes: true,
          includeComments: true
        }
      }}
    >
      <YourApp />
    </ZunoBuilder>
  )
}

🧩 Available Blocks

| Block | Description | Properties | |-------|-------------|------------| | Text | Typography elements | content, tag (h1-h6, p, span), fontSize, fontWeight, textAlign | | Button | Interactive buttons | text, variant (default, destructive, outline, etc.), size, href | | Input | Form inputs | type, placeholder, label, validation, size, variant | | Image | Responsive images | src, alt, objectFit, loading, quality, rounded | | Section | Layout containers | padding, margin, background, flexDirection, gap | | Card | Card containers | background, border, borderRadius, shadow |

πŸ”§ Advanced Usage

Custom Configuration

interface ZunoBuilderConfig {
  enabled?: boolean
  targetPath?: string
  layoutPath?: string
  theme?: {
    primaryColor?: string
    borderRadius?: string
    fontFamily?: string
  }
  ui?: {
    position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
    showGrid?: boolean
    gridSize?: number
    darkMode?: boolean
  }
  codegen?: {
    componentNaming?: 'PascalCase' | 'camelCase' | 'kebab-case'
    fileOrganization?: 'single-file' | 'component-per-file' | 'grouped-by-type'
    generateTypes?: boolean
    includeComments?: boolean
  }
}

Using with Next.js

// pages/_app.js or app/layout.js
import { ZunoBuilder } from 'zunokit-builder'

function MyApp({ Component, pageProps }) {
  return (
    <ZunoBuilder>
      <Component {...pageProps} />
    </ZunoBuilder>
  )
}

export default MyApp

TypeScript Support

Full TypeScript support with comprehensive type definitions:

import { ZunoBuilder, ZunoBuilderConfig, ZunoBlock } from 'zunokit-builder'

const config: ZunoBuilderConfig = {
  enabled: process.env.NODE_ENV === 'development',
  targetPath: './src/components/Generated.tsx'
}

πŸ—οΈ How It Works

  1. Development Mode: Builder appears only when NODE_ENV=development
  2. Visual Editing: Drag, drop, and configure UI elements visually
  3. Real-time Generation: Every change generates clean JSX code
  4. Clean Output: Generated code looks like hand-written components
  5. Production Ready: Builder disappears in production builds

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ”— Links


Made with ❀️ by the Zuno Team