New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@modular-forms/solid

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modular-forms/solid

The modular form library for SolidJS

  • 0.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Modular Forms

Modular Forms

Modular Forms is a JavaScript library that is build on top of SolidJS to validate and handle various types of forms. It is fast by default and the bundle size is small due to a modular design. Try it out on our website!

🧪 Features

  • Small bundle size starting at 2.5 KB
  • Modular design – only use what you need
  • It's fast – DOM updates are fine-grained
  • Readable API that is similar to SolidJS
  • Validate everything from emails to files
  • No dependencies – except for SolidJS
  • Excellent editor support through TypeScript
  • Supports all native HTML form fields

💥 Motivation

Since you're using SolidJS, I assume native performance, granular reactivity, and a small bundle size is important to you. Why should that not also count for your form library? Is there really a need to opt-in to a big and slow form library to meet all your needs?

I said no, and undertook an attempt to develop a modular form library that is as powerful as big libraries like Formik, React Hook Form and Felte, that is fast by default and takes only 2.5 KB (minified + gzipped) for a small and uncomplicated login form or up to 5 KB (minified + gzipped) for a complex and dynamic form. The result of this journey is this library called Modular Forms!

Since the library itself is modular, the bundle size increases less than linear as more functionality is used. Basic functionality starts at 2.5 KB (minified + gzipped) and the most complex form you can create requires about 5 KB (minified + gzipped).

I've started implementing it with SolidJS, but I'm sure the API could also work in a similar way for React, Vue and Svelte. So if you are interested and able to support it, let me know.

✏️ Feedback

Find a bug or have an idea how to improve the library? Please fill out an issue. Together we can make the library even better!

🙌🏼 Credits

When creating Modular Forms, I took inspiration from React Hook Form and Formik. I also want to thank Ryan Carniato for his inspiring streams with exclusive and deep insights into different technologies and David Di Biase for his help via Discord.

🔑 License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 08 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc