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

rilaykit

v0.1.6

Published

All-in-one package for RilayKit — headless forms and workflows for React

Readme

rilaykit

The all-in-one package for RilayKit - headless forms and multi-step workflows for React in a single import.

rilaykit re-exports everything from @rilaykit/core, @rilaykit/forms, and @rilaykit/workflow, and provides an enhanced ril instance with .form() and .flow() convenience methods. One install, one import, zero wiring.

Installation

# pnpm (recommended)
pnpm add rilaykit

# npm
npm install rilaykit

# yarn
yarn add rilaykit

# bun
bun add rilaykit

Requirements

  • React >= 18
  • React DOM >= 18
  • TypeScript >= 5

Quick Start

1. Register Your Components

import { ril, ComponentRenderer } from 'rilaykit';

interface InputProps {
  label: string;
  type?: string;
  placeholder?: string;
}

const Input: ComponentRenderer<InputProps> = ({
  id, value, onChange, onBlur, error, props,
}) => (
  <div>
    <label htmlFor={id}>{props.label}</label>
    <input
      id={id}
      type={props.type || 'text'}
      value={value || ''}
      onChange={(e) => onChange?.(e.target.value)}
      onBlur={onBlur}
    />
    {error && <p>{error[0].message}</p>}
  </div>
);

const rilay = ril.create()
  .addComponent('input', { renderer: Input });

2. Build a Form

import { required, email } from 'rilaykit';

const loginForm = rilay
  .form('login')
  .add({
    id: 'email',
    type: 'input',
    props: { label: 'Email', type: 'email' },
    validation: { validate: [required(), email()] },
  })
  .add({
    id: 'password',
    type: 'input',
    props: { label: 'Password', type: 'password' },
    validation: { validate: [required()] },
  });

Notice .form() is called directly on the ril instance — no need to import form separately.

3. Render It

import { Form, FormField } from 'rilaykit';

function LoginForm() {
  const handleSubmit = (data: { email: string; password: string }) => {
    console.log('Login:', data);
  };

  return (
    <Form formConfig={loginForm} onSubmit={handleSubmit}>
      <FormField fieldId="email" />
      <FormField fieldId="password" />
      <button type="submit">Sign In</button>
    </Form>
  );
}

4. Add a Workflow

import {
  Workflow, WorkflowBody, WorkflowStepper,
  WorkflowNextButton, WorkflowPreviousButton,
  LocalStorageAdapter,
} from 'rilaykit';

const onboarding = rilay
  .flow('onboarding', 'User Onboarding')
  .step({ id: 'account', title: 'Create Account', formConfig: accountForm })
  .step({ id: 'profile', title: 'Your Profile', formConfig: profileForm, allowSkip: true })
  .configure({
    persistence: {
      adapter: new LocalStorageAdapter({ maxAge: 7 * 24 * 60 * 60 * 1000 }),
      options: { autoPersist: true, debounceMs: 500 },
    },
  })
  .build();

function OnboardingFlow() {
  return (
    <Workflow workflowConfig={onboarding} onComplete={handleComplete}>
      <WorkflowStepper />
      <WorkflowBody />
      <div>
        <WorkflowPreviousButton />
        <WorkflowNextButton />
      </div>
    </Workflow>
  );
}

Why the All-in-One Package?

| | rilaykit | Individual packages | |---|---|---| | Install | pnpm add rilaykit | pnpm add @rilaykit/core @rilaykit/forms @rilaykit/workflow | | Imports | import { ril, Form, Workflow } from 'rilaykit' | Multiple import sources | | API | rilay.form() / rilay.flow() | form.create(rilay) / flow.create(rilay) | | Best for | New projects, prototyping, full-featured apps | Fine-grained control, minimal bundle |

If you only need forms (no workflows), prefer @rilaykit/core + @rilaykit/forms to keep your bundle smaller.

Enhanced ril Instance

The ril exported from rilaykit extends the core ril with two convenience methods:

import { ril } from 'rilaykit';

const rilay = ril.create()
  .addComponent('input', { renderer: Input });

// Create a form directly from the ril instance
const myForm = rilay.form('my-form');

// Create a workflow directly from the ril instance
const myFlow = rilay.flow('my-flow', 'My Workflow');

All other ril methods (addComponent, configure, getComponent, clone, etc.) work exactly the same.

What's Included

Everything from all three packages:

  • From @rilaykit/coreril, when, onChange, validators (required, email, url, min, max, minLength, maxLength, pattern, number, custom, async, combine), monitoring, condition utilities
  • From @rilaykit/formsform, Form, FormField, FormBody, FormRow, FormProvider, FormSubmitButton, Zustand hooks (useFieldValue, useFieldErrors, useFieldProps, useFormValues, useFormActions, etc.)
  • From @rilaykit/workflowflow, Workflow, WorkflowBody, WorkflowStepper, WorkflowNextButton, WorkflowPreviousButton, WorkflowSkipButton, LocalStorageAdapter, persistence, analytics, plugin hooks

Documentation

Full documentation at rilay.dev:

License

MIT — see LICENSE for details.