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

el-form-core

v2.2.0

Published

Framework-agnostic form validation engine - schema-first validation core for TypeScript applications. Supports Zod, Yup, Valibot and custom validators.

Readme

el-form-core

🔧 Framework-agnostic form validation engine - TypeScript schema validation core

The foundational validation logic that powers the entire el-form ecosystem.

🧭 Choose the Right Package

| Package | Use When | Bundle Size | Dependencies | | -------------------------------------------------------------------------------------- | ----------------------------------------------------- | ----------- | ------------ | | el-form-react-hooks | You want full control over UI/styling | 11KB | None | | el-form-react-components | You want pre-built components with Tailwind | 18KB | Tailwind CSS | | el-form-react | You want both hooks + components | 29KB | Tailwind CSS | | el-form-core | Framework-agnostic validation only ← You are here | 4KB | None |

⚠️ For React users: You probably want one of the React packages above instead of this core package.

📦 Installation

npm install el-form-core zod

🎯 What's This Package For?

This package contains the framework-agnostic validation logic and utilities that power El Form. It's designed to be used as a foundation for building form libraries for different frameworks.

  • 4KB bundle size - Ultra-lightweight core
  • Framework agnostic - Works with any JavaScript framework
  • Zod-powered - Type-safe validation
  • Pure functions - Functional validation utilities

🏗️ Package Ecosystem

This is the foundation of the el-form ecosystem:

  • el-form-core - Framework-agnostic validation logic (4KB) ← You are here
  • el-form-react-hooks - React hooks only (11KB)
  • el-form-react-components - Pre-built UI components (18KB)
  • el-form-react - Everything combined (29KB)

⚠️ For React Users

If you're building a React application, you should use one of these instead:

Just Hooks (11KB)

npm install el-form-react-hooks

Pre-built Components (18KB)

npm install el-form-react-components

Everything Together (29KB)

npm install el-form-react

🚀 Usage

import { validateForm } from "el-form-core";
import { z } from "zod";

const schema = z.object({
  name: z.string().min(1, "Name is required"),
  email: z.string().email("Invalid email"),
});

const formData = {
  name: "John Doe",
  email: "[email protected]",
};

const result = validateForm(schema, formData);

if (result.success) {
  console.log("Valid data:", result.data);
} else {
  console.log("Validation errors:", result.errors);
}

📚 API Reference

validateForm(schema, data)

  • Parameters:
    • schema - Zod schema for validation
    • data - Form data to validate
  • Returns: Validation result with success, data, and errors

createValidationUtils(schema)

  • Parameters: schema - Zod schema
  • Returns: Validation utilities for the schema

⚛️ For React Users - Get Started Here

Want React Hook Form Alternative? (11KB)

npm install el-form-react-hooks
import { useForm } from "el-form-react-hooks";
// Build any UI you want with full control

Want Instant Forms? (18KB)

npm install el-form-react-components
import { AutoForm } from "el-form-react-components";
// Zero-boilerplate forms from schemas

Want Everything? (29KB)

npm install el-form-react
import { useForm, AutoForm } from "el-form-react";
// Both hooks and components

🔗 Links

📄 License

MIT