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 🙏

© 2024 – Pkg Stats / Ryan Hefner

aformajs

v0.0.5

Published

🎉 Create dynamic and interactive forms with minimal markup and better UX.

Downloads

12

Readme

FormaJS*

Quickly and easily create dynamic and interactive forms with a better end-user experience.

FormaJS lets you customize and style your forms in numerous different ways and at the same time gives you the base and structure that will save you time and effort while building form prototypes.

There are few different ways to use and load up the script and stylesheet templates. Take a look at main website for complete documentation with usage, features and examples.

Quick Start

Download the master (or the latest release). Minified version of the script with all the stylesheet templates can be found under /dist.

  1. Copy-paste the <link> into your HTML document <head> and add the path to the startup stylesheet template you plan to use (found inside the /dist/css folder).
<link href="path/to/css/forma.css" rel="stylesheet" />
  1. Build your form anywhere inside the <body> of you document. The example below shows up the minimum required attributes for your form elements.
<form class="forma">
  <input data-label="Email Address" type="email" name="email-address" />
  <input data-label="First Name" type="text" name="first-name" />
  <input data-label="Last Name" type="text" name="last-name" />
  <textarea data-label="Message" rows="5" name="message"></textarea>
  <button type="submit">Send</button>
</form>

All you need to add are the form elements; the actual form structure will be auto-generated by the script.

  1. Place the following <script>'s near the end of your document, right before the closing </body> tag. And you are all set up.
<script src="path/to/js/forma.min.js"></script>
<script>forma();</script>

Visit our main website to learn more about customization, client-side validations, custom settings and a whole lot more.

Documentation

Contribute

Found a bug or want to propose some improvements or fixes to the documentation? Vist our website and see all the different ways you can contribute to this project.

License

(c) Krasen Slavov | Code released under the MIT License.

* This project is still in alpha; use it for live or production environments with caution.