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-ai-agent

v1.0.6

Published

Transform your Directus CMS with intelligent automation, smart data interpretation, and natural language processing.

Downloads

45

Readme

🤖 AI Agent for Directus

Transform your Directus CMS with intelligent automation, smart data interpretation, and natural language processing.

✨ Features

  • 💬 Natural Language Commands
    Interact with your Directus CMS using plain English prompts.

  • 📊 Data Insights & Querying
    Use AI to read, analyze, and summarize collections, relations, and metadata.

  • 🧠 Semantic Understanding
    AI understands schema, relationships, and context — allowing you to insert, update, and link data intelligently.

  • ⚙️ Smart Automation
    Automate workflows based on AI decision trees.

  • 🔄 Prompt-to-Action
    Instantly convert prompts into structured actions and queries within Directus.


TESTED WITH OPENAI GPT-4o MODEL

AI can make mistakes use it with your own risk.


🧩 Extension Type

This is a Bundle Extension that includes:

  • Module → Frontend UI (Chat interface, Settings, and Help)
  • Endpoint → Backend AI agent server (OpenAI / OpenRouter-based)

📦 Installation

1. Install via npm

npm install directus-extension-ai-agent

Or clone manually:

git clone https://github.com/uncw3b/directus-extension-ai-agent

⚙️ Configuration

No need for .env editing.
The extension creates a settings collection after install.

  • Enter your OpenAI / OpenRouter API key
  • Choose provider (openai, openrouter, etc.)
  • Adjust model, temperature, and stream settings

Settings panel is embedded in the UI.

your directus url here


🧪 How to Use

Open the AI Agent module in Directus. Use prompts like:

  • Show me the total sales from last month
  • Add a new user named John with role editor
  • Summarize all feedback from last 7 days
  • Create 3 product entries with dummy values
  • What is the average age of users in Germany?

AI will process the prompt and return or execute it with context awareness.


🔒 Security & Sandbox

  • 🛡️ 100% compatible with Directus Cloud sandbox
  • ✅ No direct file system access
  • ✅ All remote calls routed via sandbox-safe fetch
  • ✅ Uses openai and openrouter public endpoints only

📸 Screenshots


👨‍💻 About the Developer

This extension is built by Uncw3b Software, a boutique AI & Web3 development agency.

Looking for custom AI integrations or Directus development? Reach out to us.


📄 License

MIT License © Uncw3b Software