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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@team-apollo-forms/core

v0.23.0

Published

Fully customizable forms in your React app, using your favorite UI component library, built on top of Formik and Yup.

Readme

Team Apollo Forms

Fully customizable forms in your React app, using your favorite UI component library, built on top of Formik and Yup.

Features

  • Online WYSIWYG form builder
  • Supports Material UI, Chakra UI, Ant Design or your own components
  • Customizable locales

Quickstart

Use the online form builder at https://doender.github.io/team-apollo-forms/ to create your form and export it as JSON.

Install the core library and one of the UI control libraries (material-ui, chakra-ui, antd):

npm i @team-apollo-forms/core @team-apollo-forms/material-ui

and use the exported form definition file:

import React from 'react';

import { MaterialUiControls } from '@team-apollo-forms/material-ui';
import { DynamicForm, FormDefinition } from '@team-apollo-forms/core';

import formDef from './forms/form.json';

function App() {
    const onSubmit = async (values) => {
        try {
            // Do something with form values
        } catch (err) {
            throw new Error('This will be displayed as an error message');
        }
    };

    return (
        <DynamicForm
            formDefinition={formDef}
            controls={MaterialUiControls}
            onSubmit={onSubmit}
            showAfterSubmit={() => <div>Thank you!</div>}
        />
    );
}

export default App;

DynamicForm props

formDefinition: FormDefinition

The JSON file exported from the Form Builder.

controls: FormControls

The form control components to be displayed. Typically, you'd use one of the available packages @team-apollo-forms/material-ui, @team-apollo-forms/chakra-ui and @team-apollo-forms/antd, but you can also use your own. See this file for the Material UI example.

Note: Please leave a PR when you've implemented another UI library!

onSubmit: (values: { [key: string]: any }) => Promise<void>

Callback to handle the submitted form values, e.g. sending them to your API. Any error thrown here will be shown as an error message.

showAfterSubmit: (form: FormikProps<any>) => React.ReactChild

The component to be displayed after a successful form submission

locale?: FormLocale

Right now both en and nl are supported. If no locale is passed en is used by default. You can also use your own: see this file for an example.

Note: Please leave a PR when you've implemented another locale!

placeholders?: { [key: string]: (form: FormikProps<any>) => React.ReactChild; }

In the Form Builder you can add placeholders, which you can fill with any component you'd like. This is handy for displaying things like images and video between questions. You can also let these depend on the form state and its values:

<DynamicForm
    formDefinition={formDef}
    controls={MaterialUiControls}
    onSubmit={onSubmit}
    placeholders={{
        placeholder1: () => <img src="path/to/1.jpg" />,
        placeholder2: form => form.values.field1 === 'X' ? <div>Displayed when field1 is X</div> : null

            }
        }
    }
/>

Runing the form builder locally

Run nx serve builder for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.