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

@byte3-it/chantilly

v0.3.0

Published

A React landing page builder component

Readme

Chantilly

A visual drag-and-drop landing page builder for React. Drop it into your app, wire up save/load, and get a full page editor with HTML export.

Landing Page Builder

Install

npm install @byte3-it/chantilly

React 18+ is required as a peer dependency.

Quick start

import { LandingPageBuilder } from '@byte3-it/chantilly'
import type { Project } from '@byte3-it/chantilly'

export default function App() {
  return (
    <LandingPageBuilder
      onSave={(project) => {
        // persist however you like
        localStorage.setItem('project', JSON.stringify(project))
      }}
    />
  )
}

To restore a saved project on load, pass it via initialProject:

const saved = localStorage.getItem('project')

<LandingPageBuilder
  initialProject={saved ? JSON.parse(saved) : undefined}
  onSave={...}
/>

Props

| Prop | Type | Description | |---|---|---| | initialProject | Project | Project to load on mount | | onSave | (project: Project) => void \| Promise<void> | Called when the user clicks Save | | fileManager | FileManagerConfig | Enables the image library modal | | customBlocks | CustomBlockDefinition[] | Extra blocks shown at the top of the sidebar | | templates | TemplateDefinition[] | Starting-point projects shown in the Templates modal |

Exporting HTML

The builder does not include an export button — call exportToHtml yourself, for example inside onSave:

import { exportToHtml } from '@byte3-it/chantilly'

onSave={(project) => {
  const html = exportToHtml(project)
  // upload, download, or store the HTML string
}}

The output is a self-contained HTML file that loads Tailwind CSS from CDN.

File manager

Provide a FileManagerConfig to enable the image picker inside the Image block editor:

import type { FileManagerConfig } from '@byte3-it/chantilly'

const fileManager: FileManagerConfig = {
  listImages:  async ()       => [...],          // return ImageFile[]
  uploadImage: async (file)   => ({ id, url, name }),
  deleteImage: async (id)     => {},
}

<LandingPageBuilder fileManager={fileManager} />

Custom blocks

Register your own block presets — they appear in a dedicated section at the top of the sidebar:

import type { CustomBlockDefinition } from '@byte3-it/chantilly'
import { Zap } from 'lucide-react'

const customBlocks: CustomBlockDefinition[] = [
  {
    id: 'cta',
    label: 'CTA Button',
    icon: <Zap size={16} />,
    elementType: 'button',        // 'button' | 'link'
    defaults: {
      label: 'Get Started',
      href: '/signup',
      variant: 'primary',
      size: 'lg',
      textAlign: 'text-center',
      // any extra metadata you want stored on the block
      trackingId: 'hero-cta',
    },
  },
]

<LandingPageBuilder customBlocks={customBlocks} />

Templates

Supply starting-point projects that users can pick from the Templates modal:

import type { TemplateDefinition } from '@byte3-it/chantilly'

const templates: TemplateDefinition[] = [
  {
    id: 'saas',
    name: 'SaaS Landing',
    description: 'Hero, features, and CTA.',
    thumbnail: 'https://...', // optional preview image
    project: { ... },         // full Project object
  },
]

<LandingPageBuilder templates={templates} />

Reading store state

useBuilderStore is exported for cases where you need to read or react to builder state outside the component tree:

import { useBuilderStore } from '@byte3-it/chantilly'

function ProjectName() {
  const name = useBuilderStore((s) => s.project.name)
  return <span>{name}</span>
}

Storage helpers

Ready-made helpers that implement the fileManager integration for common backends:

| Helper | Package | |---|---| | Firebase Storage | packages/storage-helper-firebase |


Project structure (monorepo)

packages/
  sdk/                      → @byte3-it/chantilly   (the builder component)
  storage-helper-firebase/  → @byte3-it/@byte3-it/chantilly-storage-firebase   (Firebase Storage helper)
apps/
  demo/      → Vite demo app