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

@formdata/cli

v0.138.0

Published

CLI tool for Form-Data management

Downloads

80

Readme

@formdata/cli

A command-line interface for Form-Data management. This tool helps you create, manage, and deploy form configurations for use with the Form-Data service.

Installation

# Install globally
npm install -g @formdata/cli

# Alternatively, install locally in your project
npm install @formdata/cli

Once installed globally, you can use the fd command to manage your forms.

Features

  • 🔐 Authentication: Easy login to Form-Data service
  • 🚀 Form Management: Create, deploy, and manage form definitions
  • 🌐 Environment Support: Switch between different environments (development, staging, production)
  • 🔄 Synchronization: Sync form configurations between environments
  • 👀 Live Preview: Preview your forms locally before deployment

Quick Start

1. Authentication

Before using Form-Data CLI, you need to authenticate:

fd login

This will open a browser window allowing you to authenticate with the Form-Data service.

2. Initialize Your Project

Set up your project with Form-Data configuration:

fd init

This creates a form-data.config.json file in your project root to store configuration settings.

3. Create a Form

Create a new form from a template:

fd form create --name my-contact-form

This will create a new form descriptor file in the forms/ directory.

4. Edit Your Form

Form descriptor files use a simple text-based format with the .fd extension. Here's a basic example:

type form
name Contact form
action https://api.form-data.com/f/xxx
message Thank you for contacting us. We'll get back to you soon
design
    background #f5f5f5
    theme light

type h1
text Contact us

type text
name full_name
label Full Name
placeholder John Doe
validations required|length:1,50

type email
name email
label Email Address
placeholder [email protected]
validations required|email

type submit
label Send Message

5. Preview Your Form

You can preview your form during development:

fd preview --name my-contact-form

This starts a live preview server that automatically refreshes when you edit your form file.

6. Deploy Your Form

When you're ready to deploy:

fd deploy

This command deploys all forms to the active environment.

To deploy a specific form:

fd deploy --form-id my-contact-form

Environment Management

Switch Environments

fd use staging
fd use production

Sync Between Environments

fd sync staging production

This copies form configurations from staging to production.

Commands Reference

| Command | Description | |---------|-------------| | fd login | Authenticate with Form-Data service | | fd logout | Log out from Form-Data service | | fd init [--env <environment>] | Initialize Form-Data configuration | | fd form [options] | Manage forms | | fd preview [options] | Start a live preview server | | fd deploy [options] | Deploy form configurations | | fd use <environment> | Switch to a different environment | | fd sync <source-env> <target-env> | Sync forms between environments |

Form Command Options

fd form create --template <template> --name <name>     # Create a new form from template, and give it a name
fd form add --path <path>                 # Add existing form file to configuration

Preview Command Options

fd preview --name <name>       # Name of the form to preview
fd preview --hide-errors       # Hide errors in the preview UI

Deploy Command Options

fd deploy --env <environment>  # Environment to deploy to
fd deploy --form-id <formId>   # Specific form to deploy

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT