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_bundle_collection_clone

v1.0.1

Published

Clone collections in Directus

Readme

Directus Collection Clone Extension

This extension adds the ability to clone collections within your Directus instance. It provides a user-friendly interface that allows administrators to duplicate any non-system collection with all its fields and relations.

Features

  • Clean and intuitive user interface
  • Clones all collection fields and properties
  • Preserves relations between collections
  • Filters out system collections (starting with 'directus_')
  • Real-time feedback with success and error states
  • Easy access through the module sidebar

Installation

Prerequisites

  • Directus v11.0.0 or higher
  • Node.js v18 or higher
  • npm v8 or higher

Method 1: Marketplace Installation (Recommended)

  1. Log in to your Directus admin panel
  2. Navigate to Settings > Marketplace
  3. Search for "Collection Clone" in the marketplace
  4. Click "Install Extension" next to the Collection Clone extension
  5. Once installed, the extension endpoint is immediately available
  6. To get the UI for cloning collections you have to go to settings and enable the "Clone Collection" module

Method 2: Manual Installation

  1. Clone or download this repository

  2. Navigate to the extension directory

  3. Install the extension:

    npm install directus_bundle_collection_clone

. Restart your Directus instance

Usage

  1. Log in to your Directus admin panel
  2. Look for "Clone Collection" in the module sidebar
  3. Click on the module to open the collection cloning interface
  4. Browse the list of available collections
  5. Click the clone button next to the collection you want to duplicate
  6. Enter a name for the new collection
  7. Click "Clone" to start the cloning process
  8. You'll receive feedback on the success or failure of the operation

Structure

The extension consists of two main components:

  1. Module Extension: Provides the user interface for cloning collections

    • Located in src/directus_module_collection_clone/
    • Built with Vue.js
  2. Endpoint Extension: Handles the backend logic for cloning collections

    • Located in src/directus_endpoint_collection_clone/
    • Exposes the /collection_clone/:collection/:newCollection endpoint
    • Uses Directus services to clone collections

Configuration

No additional configuration is required for this extension to work.

Troubleshooting

Common Issues

  • Error: Collection already exists - You're trying to create a collection with a name that already exists
  • Error: Permission denied - Your role doesn't have permission to create collections
  • Extensions not loading - Make sure the extension is properly built and placed in the correct directory

Contributing

Interested in contributing? Check out our CONTRIBUTING.md file for development setup, workflow guidelines, and coding standards.

License

MIT License


Note: This extension is not an official Directus extension. Use at your own risk.