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

@tanglemedia/directus-collection-form

v0.0.3

Published

Installs the Form Collection to your Directus project.

Downloads

147

Readme

@tanglemedia/directus-collection-form

Installs the Form Collection to your Directus project.

The package will install the following collections:

  • Form Collection tngl_form
  • Form Rows tngl_form_rows
  • Form Field tngl_form_field
  • Form Repeater tngl_form_rptr
  • Form Repeater Rows tngl_form_rptr_rows
  • Form Text tngl_form_text

It automatically sets the following:

  • Creates a new role called Website. If the Website role already exist, it will not create a new one.
  • Website role will have READ permission to all the collections mentioned above
  • Sets default presets when viewing a list of forms and fields

Requirements

  • Directus >= 10.10.1
  • Node >= 18.x.x

Install

  1. npm i @tanglemedia/directus-collection-form

  2. npx directus bootstrap to update your database and restart directus

What's inside the package

FORM COLLECTION

  • Status (defaults to "Draft")
  • Title (required, unique)
  • Field Rows (can be a field, repeater, or text)
  • Is Encrypted
  • Is Recaptcha
  • NoIndex
  • Submit Button Text
  • Submission
    • Title
    • Message / Content

FORM FIELD

  • Interface which can be one of the following:
    • Regular Input
    • Number Input
    • Textarea
    • DateTime
    • Dropdown Select
    • Checkboxes
    • File Upload
    • Toggle
    • Signature
  • Sort
  • Enable (show/hide a field)
  • Required (make a field required or not)
  • Label
  • Notes

Input fields (available fields if Regular Input interface is selected)

Type:

  • Text
  • Phone Number
  • Email
  • URL

If Text is selected, the admin can enter max length of the text input


Number fields (available fields if Number Input interface is selected)

  • Minimum value
  • Maximum value
  • Step

Datetime fields (available fields if DateTime interface is selected)

Type:

  • Datetime
  • Date
  • Time

Choice-Based fields (available fields if Dropdown Select and Checkboxes interface is selected)

  • Options

Textarea fields

  • Textarea Maximum Length

Multiple fields (available fields if Dropdown Select, Checkboxes, File Upload interface is selected)

The admin can enable multiple to allow user to select multiple choices on a dropdown select and checkbox It can also allow the admin to enable multiple file uploads in the file uploads field.

FORM TEXT

For adding text inside the form (e.g. instructions, headings, etc.)

  • Sort
  • Enable
  • Text

FORM REPEATER

For allowing user to enter multiple group of the same fields

  • Sort
  • Enable
  • Label
  • Notes
  • Field Rows (can be a field, repeater, or text)
  • Add Button Text
  • Remove Button Text