
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
feature-form
Advanced tools
Status: Experimental
feature-form is a straightforward, typesafe, and feature-based form library.
Create a typesafe, straightforward, and lightweight form library designed to be modular and extendable with features.
import { createForm } from 'feature-form';
import { useForm } from 'feature-react/form';
import * as v from 'valibot';
import { vValidator } from 'validation-adapters/valibot';
import { zValidator } from 'validation-adapters/zod';
import * as z from 'zod';
interface TFormData {
name: string;
email: string;
}
const $form = createForm<TFormData>({
fields: {
name: {
validator: zValidator(z.string().min(2).max(10)),
defaultValue: ''
},
email: {
validator: vValidator(v.pipe(v.string(), v.email())),
defaultValue: ''
}
},
onValidSubmit: (data) => console.log('ValidSubmit', data),
onInvalidSubmit: (errors) => console.log('InvalidSubmit', errors)
});
export const MyFormComponent: React.FC = () => {
const { handleSubmit, register, status } = useForm($form);
return (
<form onSubmit={handleSubmit()}>
<div>
<label>Name</label>
<input {...register('name')} />
{status('name').error && <span>{status('name').error}</span>}
</div>
<div>
<label>Email</label>
<input {...register('email')} />
{status('email').error && <span>{status('email').error}</span>}
</div>
<button type="submit">Submit</button>
</form>
);
};
validation-adapters)feature-form supports various validators such as Zod, Yup, Valibot and more.
import * as v from 'valibot';
import { vValidator } from 'validation-adapters/valibot';
import { zValidator } from 'validation-adapters/zod';
import * as z from 'zod';
const zodNameValidator = zValidator(
z
.string()
.min(2)
.max(10)
.regex(/^([^0-9]*)$/)
);
const valibotNameValidator = vValidator(
v.pipe(v.string(), v.minLength(2), v.maxLength(10), v.regex(/^([^0-9]*)$/))
);
FAQs
Straightforward, typesafe, and feature-based form library for ReactJs
The npm package feature-form receives a total of 333 weekly downloads. As such, feature-form popularity was classified as not popular.
We found that feature-form demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.