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

directus-extension-flat-tabs-interface

v1.0.6

Published

A tab group interface for Directus

Readme

Directus Flat Tabs Interface NPM Version

A tab group interface for Directus.

Features

  • Flexible Alignment: Choose from Left, Right, Center, Between, or Stretch alignment for tab positioning
  • Raw Group Support: Works with Directus raw groups to create tabbed interfaces

Installation

Install the extension from the Directus Marketplace. See the Official Guide for more information.

Or if you prefer to install manually:

npm install directus-extension-flat-tabs-interface

Usage

Creating a Tab Group

  1. Create a Group Field: In your Directus collection, create a new field with the "Flat Tabs" type. Alternatively, you can use the "Group" type and select "Flat Tabs" as the interface.
  2. Configure Alignment: Set the tab alignment option (left, right, center, or cover)
  3. Add Raw Groups: Add "Raw Group" fields as children of your Flat Tabs field - each raw group field will become a tab
  4. Add Fields to Tabs: Add your desired fields as children of each raw group field

Example Structure

My Collection
├── Tab Group (Group field with "Flat Tabs" interface)
│   ├── Tab 1 (Raw Group)
│   │   ├── Title (Input)
│   │   ├── Description (Textarea)
│   │   └── Image (File)
│   ├── Tab 2 (Raw Group)
│   │   ├── Settings (JSON)
│   │   └── Options (Checkboxes)
│   └── Tab 3 (Raw Group)
│       ├── Content (WYSIWYG)

Configuration Options

  • Align Tabs: Controls the horizontal alignment of the tab list

    • Left: Tabs aligned to the left (default)
    • Right: Tabs aligned to the right
    • Center: Tabs centered
    • Between: Tabs aligned to the left and right
    • Stretch: Tabs stretched to fill the full width

Development

Setup

  1. Load Extension volume in your project and clone the repository to it

  2. Install dependencies:

cd extensions/directus-extension-flat-tabs-interface

npm install
  1. Build the extension with auto rebuild on changes:
npm run dev

Make sure you've set EXTENSIONS_AUTO_RELOAD in your .env file.

You might need to restart your Directus instance for the extension to be loaded.

Building

npm run build

How It Works

This extension works by:

  1. Processing Raw Groups: The interface looks for children fields with the "group-raw" interface type
  2. Creating Tabs: Each raw group field becomes a tab in the interface
  3. Rendering Fields: Fields within each raw group are rendered