# @viveksinghind/narrative-form-core

> Core logic and state machine for narrative-form — framework agnostic typewriter form engine

Latest version **1.0.9** (published 2026-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @viveksinghind/narrative-form-core
pnpm add @viveksinghind/narrative-form-core
yarn add @viveksinghind/narrative-form-core
bun add @viveksinghind/narrative-form-core
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2026-07-22 |
| First published | 2026-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 207.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vivek Singh <vivekSinghInd> |
| Maintainers | viveksinghind |
| Keywords | narrative-form, typewriter, form, onboarding, signup, typescript |

## Links

- npm: https://www.npmjs.com/package/@viveksinghind/narrative-form-core
- Repository: https://github.com/vivekSinghInd/narrative-form
- Homepage: https://github.com/vivekSinghInd/narrative-form#readme
- Issues: https://github.com/vivekSinghInd/narrative-form/issues
- npm.io page: https://npm.io/package/@viveksinghind/narrative-form-core

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2026-07-22
- 1.0.8 — 2026-07-22
- 1.0.7 — 2026-07-22
- 1.0.6 — 2026-06-30
- 1.0.5 — 2026-06-30
- 1.0.4 — 2026-06-29
- 1.0.2 — 2026-06-29
- 1.0.1 — 2026-06-29
- 1.0.0 — 2026-06-29

## README

# @viveksinghind/narrative-form-core

Core logic and state management for Narrative Form, a dynamic typewriter-style sign-up flow.

## Installation

```bash
npm install @viveksinghind/narrative-form-core
```

## Usage

This package is intended to be used as a dependency for the framework-specific packages (`react`, `vue`, `angular`, `native`). It provides the `FormStateEngine` class which manages form state, validation, and field advancement.

If you're building a custom integration for a new framework:

```ts
import { FormStateEngine } from "@viveksinghind/narrative-form-core";

const engine = new FormStateEngine(config);
engine.start();

// Subscribe to state changes
const unsubscribe = engine.subscribe((snapshot) => {
  console.log("Current state:", snapshot);
});
```

## Features
- Framework agnostic state management
- Advanced validation engine (sync & async)
- Typewriter timing engine
- Field dependency graph

---
_Source: https://npm.io/package/@viveksinghind/narrative-form-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
