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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@unicorns/howzit-vue

v2.0.1

Published

Vue component for Howzit contact forms

Readme

howzit-vue

A Vue widget for Howzit contact forms.

Howzit

There is a standalone server component available at UnicornGlobal/howzit that you can host yourself.

You may use this to quickly create a contact form service.

You can also create your own service as long as it complies with the standards outlined below.

Alternatively you can contact Unicorn Global if you are interested in a managed cloud based solution should you not wish to set it up yourself.

Howzit Docs: https://docs.howzit.tech

Usage

Install

npm install --save @unicorns/howzit-vue

Usage

Client

App ID is if your API is based on UnicornGlobal/strong-lumen or uses an App ID header for additional security.

You can also add a debugToken to unlock additional debugging information in staging / development environments (strong-lumen feature).

The below example will:

  • GET form configuration from https://localhost:9000/public/forms/contact
  • POST to https://localhost:9000/public/forms/contact/submit

Set things up first in main.js or similar:

import Howzit from 'howzit-vue'

Vue.use(Howzit, {
  url: 'https://localhost:9000/public/forms',
  appId: 'xxx'
})

Then use it in a Vue component

<template>
  <howzit :form-id="formId" />
</template>

<script>
  import Howzit from 'howzit-vue'

  export default {
    components: {
      Howzit
    },
    data() {
      return {
        formId: 'contact'
      }
    }
  }
</script>

The configuration endpoint is created like:

GET [url]/[formId]

The submission endpoint is created like:

POST [url]/[formId]/submit

The last part of the submission route is always 'submit'

Server

If you don't want to use the UnicornGlobal/howzit self hosted service or the SaaS solution then you can roll your own server implementation using the following setup.

The server should return an object like this on the GET [url]/[formId] route.

The following example will render a form with an email input and a textbox for a message.

{
  'form': {
    'name': 'Awesome Contact Form',
    'fields': [
      {
        'name': 'email',
        'label': 'Email Address',
        'type': 'email',
        'min_length': 7,
        'max_length': 56,
        'regex': null,
        'required': 1,
        'order_index': 2
      },
      {
        'name': 'message',
        'label': 'Message',
        'type': 'text',
        'min_length': 10,
        'max_length': 512,
        'regex': null,
        'required': 1,
        'order_index': 3
      }
    ]
  },
  'token': 'c089871c-af8d-435c-98ca-41d66d116bca'
}

The token must be sent in the response from the server will be sent back to the server on form submission.

This should be used to verify the authenticity of the form submission. It is like a CSRF token.

It is recommended that this token be single-use only and that it gets invalidated after it's been used one.

Development

npm run test npm run build

Note

This is a naked component.

There are no styles and no style scoping it is 100% up to the host application to style the form that is rendered.

The component that includes the form should set the following styles:

  • div.howzit
  • p.howzit-title
  • form.howzit-form
  • label.howzit-label
  • input.howzit-input-[type] (where type is the value of field.type)
  • span.howzit-validation-error
  • button.howzit-submit
  • div.howzit-loading
  • div.howzit-error
  • div.howzit-submitted

Version History

v2.0.0 is not backwards compatible with v1.x

Upgrading to v2 requires changes to your host application.

If you are unable to make these changes then it is suggested that you remain on v1.x until you are able to do so.