
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@falven/formtext
Advanced tools
FormText is a pure state management library for forms in React. It uses the context API for state management and provides a set of utility hooks for form state, dispatch actions, and more.
pnpm install @falven/formtext
Here's a simple example of how to use FormText:
import { FormProvider, useFormContext, useFormValues } from '@falven/formtext';
const MyForm = () => {
const formState = useFormContext<MyFormValues>();
const formValues = useFormValues<MyFormValues>('myForm');
return (
<div>
{/* form implementation */}
</div>
);
};
const App = () => (
<FormProvider initialState={...}>
<MyForm />
</FormProvider>
);
In this example, we wrap our application with the FormProvider to provide form state to all child components. Then in our form component, we can use various hooks to access and manipulate the form state.
useFormContext: Returns the entire form state.useFormValues: Returns the values of a specific form.useFormMeta: Returns the metadata of a specific form.useFormState: Returns both the values and metadata of a specific form.useFormDispatch: Returns the dispatch function for form actions.FormProvider: A component that provides form state and dispatch function to its children.
useFormContext: Hook that returns the form state.
useFormValues: Hook that returns the values of a specific form.
useFormMeta: Hook that returns the metadata of a specific form.
useFormState: Hook that returns both the values and metadata of a specific form.
useFormDispatch: Hook that returns the dispatch function for form actions.
For more details, please refer to the source code.
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
A simple, but comprehensive, pure form state management library.
We found that @falven/formtext demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.