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

aw-wizard-forms

v4.10.0

Published

A lightweight, Typeform-style multi-step form web component for Webflow + HubSpot integration

Downloads

1,840

Readme

aw-wizard-forms

A lightweight, Typeform-style multi-step form wizard built with Lit Web Components.

Features

  • Lightweight: ~15KB (Brotli) / ~18KB (gzip) including Lit
  • Single Script Tag: Easy embedding with WizardForm.init()
  • Declarative Components: HTML-based composition with custom elements
  • Keyboard Navigation: A-Z badges, Enter/Escape, arrow keys
  • Validation: Debounced validation with custom validators
  • Theming: CSS Custom Properties (--wf-* prefix)
  • Adapters: HubSpot, Webhook, RevenueHero integrations

Installation

CDN (Recommended)

<!-- Pin to specific version (recommended) -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/wizard-form.min.js"></script>

<!-- Or use latest (auto-updates) -->
<script src="https://cdn.jsdelivr.net/npm/aw-wizard-forms@latest/dist/wizard-form.min.js"></script>

Replace 4.9.3 with your desired version. See npm for available versions.

Quick Start

<wizard-form id="demo-form">
  <wf-step data-step="1">
    <wf-input name="fullName" label="Full Name" required></wf-input>
    <wf-email name="email" label="Email" work-email required></wf-email>
  </wf-step>

  <wf-step data-step="2">
    <wf-options name="companySize" required>
      <wf-option value="1-10">1-10 employees</wf-option>
      <wf-option value="11-50">11-50 employees</wf-option>
      <wf-option value="51+">51+ employees</wf-option>
    </wf-options>
  </wf-step>

  <div slot="success">
    <h2>Thank you!</h2>
    <p>We'll be in touch soon.</p>
  </div>
</wizard-form>

<script>
  WizardForm.init({
    container: '#demo-form',
    adapter: 'hubspot',
    hubspot: {
      portalId: '12345',
      formId: 'abc-123',
    },
    onSubmit: (data) => console.log('Submitted:', data),
    onSuccess: () => console.log('Success!'),
    onError: (err) => console.error('Error:', err),
  });
</script>

Components

| Component | Description | |-----------|-------------| | <wizard-form> | Main container/orchestrator | | <wf-step> | Step container (use data-step="N") | | <wf-input> | Text input with validation | | <wf-number> | Number input with min/max/step | | <wf-email> | Email input with work-email validation | | <wf-textarea> | Multiline text input | | <wf-options> | Radio/checkbox option group | | <wf-option> | Individual option card |

Adapters

HubSpot

WizardForm.init({
  container: '#form',
  adapter: 'hubspot',
  hubspot: {
    portalId: '12345',
    formId: 'abc-123',
    fieldMapping: {
      fullName: 'firstname', // Map form fields to HubSpot fields
    },
  },
});

Webhook

WizardForm.init({
  container: '#form',
  adapter: 'webhook',
  webhook: {
    url: 'https://api.example.com/submit',
    method: 'POST',
    headers: {
      'X-API-Key': 'your-key',
    },
  },
});

RevenueHero

WizardForm.init({
  container: '#form',
  adapter: 'revenuehero',
  revenuehero: {
    routerId: 'your-router-id',
  },
});

Theming

Customize with CSS Custom Properties:

wizard-form {
  --wf-color-primary: #8b5cf6;
  --wf-color-surface: #f8f9fa;
  --wf-color-text: #212529;
  --wf-color-error: #dc3545;
  --wf-radius-lg: 12px;
  --wf-font-size-base: 16px;
}

Keyboard Shortcuts

| Key | Action | |-----|--------| | A-Z | Select option by badge | | Enter | Next step / Submit | | Escape | Previous step | | ↑/↓ | Navigate options | | Tab | Navigate fields |

Development

# Install dependencies
yarn

# Development server
yarn dev

# Run tests
yarn test          # Unit tests (Vitest)
yarn test:e2e      # E2E tests (Playwright)

# Build
yarn build

# Check bundle size
yarn size

Bundle Size

| Compression | Size | |-------------|------| | Raw | 78KB | | Gzip | 17.7KB | | Brotli | 15.5KB |

Browser Support

Modern browsers (ES2020+):

  • Chrome 80+
  • Firefox 78+
  • Safari 14+
  • Edge 80+

Known Issues

Step disappears intermittently with submit-on-step enabled

Status: Under investigation

When using the submit-on-step attribute for partial HubSpot submissions, the next step may occasionally disappear (blank content area while progress bar updates correctly). This is a rare, intermittent issue.

Workaround: If you encounter this, refresh the page. The issue does not affect final form submission.

Debug: Run this in console when it occurs to help diagnose:

document.querySelectorAll('wf-step').forEach((step, i) => {
  console.log(`Step ${i + 1}:`, {
    active: step.hasAttribute('active'),
    display: getComputedStyle(step).display,
    height: step.offsetHeight
  });
});

Track progress: GitHub Issue #31

License

MIT © Atomicwork