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 🙏

© 2024 – Pkg Stats / Ryan Hefner

directus-extension-assistant

v1.0.0

Published

A powerful Directus extension leveraging GPT-4 AI to simplify CMS management and automate complex tasks with intuitive AI commands.

Downloads

1

Readme

Directus Chat Assistant Extension

Overview

Directus Assistant revolutionizes the way you manage your CMS, harnessing the power of OpenAI's GPT-4 to expand beyond traditional capabilities. This innovative tool empowers users with the ability to execute complex functions seamlessly, even those not natively supported by the CMS.

Imagine effortlessly instructing the Assistant to identify and merge duplicate items, and then to remove any redundancies – tasks that typically require intricate manual processes or advanced programming skills. With Directus Assistant, these actions are simplified into intuitive commands, making CMS management more efficient and user-friendly.

By leveraging the cutting-edge AI of GPT-4, Directus Assistant not only enhances your productivity but also unlocks new possibilities for content management, offering a glimpse into the future of AI-assisted digital administration.

Features

  • ItemsService: The main functionalities of ItemsService have been mapped to be able to manage the content of the collections.

Screenshots

  • Chat Assistant Interface: Chat Assistant Interface
  • Collection Items List:  Collection Items List
  • Execution Logs:  Collection Items List

Setup and Configuration

As package npm setup

See this "how to" provided by Directus: https://docs.directus.io/extensions/installing-extensions.html#installing-through-npm

Package name: directus-extension-assistant

Local setup

To get started with this extension, follow the steps below:

  1. Clone the Repository:
git clone https://github.com/bernatvadell/directus-assistant.git
cd directus-assistant/
  1. Create .env File: This project requires an API key from OpenAI. Create a .env file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
  1. Install Dependencies & Build:
pnpm install
pnpm dev
  1. Running Directus: After setting up the environment and dependencies, you can start the Directus:
docker compose up

Usage

Once the extension is up and running, you can interact with the Chat Assistant through the Directus UI. Just type in your queries like you would in a normal conversation, and the assistant will fetch the relevant data from your Directus collections.

Disclaimer

Response Accuracy

While this Directus Chat Assistant Extension leverages the advanced capabilities of OpenAI's GPT-4-1106-preview model, it's important to note that the accuracy of responses may vary. The assistant strives to provide relevant and contextually appropriate information based on the input queries and the underlying data schema. However, users should be aware that the responses might not always be entirely precise or exhaustive, and should verify critical information independently.

Token Consumption

The integration of GPT-4-1106-preview model in this extension involves significant token consumption, primarily due to the comprehensive nature of data schema analysis and query processing. Users should be mindful of the potentially high usage of OpenAI tokens, which could lead to elevated API costs. It's recommended to monitor the token usage regularly and consider optimizing queries for efficiency.

By using this extension, you acknowledge and agree to these limitations and conditions.