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 🙏

© 2025 – Pkg Stats / Ryan Hefner

strapi-plugin-ai-generated-field

v5.0.2

Published

A Strapi plugin that provides an AI-generated field allowing automatic content generation using AI models. Ideal for filling text fields like titles, descriptions, or summaries with context-aware suggestions.

Downloads

13

Readme

Strapi AI Generated Field Plugin

This plugin adds AI-generated text suggestions to Strapi content management using Google's Gemini API.

Features

  • AI-powered text suggestions for content fields
  • Integration with Google's Gemini API
  • Custom settings page to configure API tokens
  • Dynamic prompt field that appears only when a token is configured

Installation

Version Compatibility

  • For Strapi 5:

    # Latest version works with Strapi 5
    npm i strapi-plugin-ai-generated-field
      
    # or using yarn
    yarn add strapi-plugin-ai-generated-field
  • For Strapi 4:

    # Specific version for Strapi 4 compatibility
    npm install [email protected]
      
    # or using yarn
    yarn add [email protected]

Important: Make sure to use version 4.0.0 if you're running Strapi 4. Users on Strapi 5 can use the latest version.

Configuration

  1. After installing the plugin, access the plugin settings through the main menu
  2. Add your Google Gemini API token
  3. Test the connection using the test field

How to Get a Gemini API Token

  1. Visit Google AI Studio
  2. Log in with your Google account
  3. Create a new API key
  4. Copy the key and paste it in the plugin settings

Usage

  1. Add the "Ai Generated Field" field type to your content types
  2. When editing content, click on the field to activate the AI prompt
  3. Enter a descriptive prompt about what content you need
  4. Click "Generate" to get AI suggestions
  5. Click on a suggestion to use it in your content

Field Configuration

The Ai Generated Field field works as a standard text field with additional AI capabilities.

// Example content-type configuration
{
  attributes: {
    description: {
      type: 'ai-text',
      options: {
        description: 'Enter product description or use AI to generate one'
      }
    }
  }
}

Security Notes

  • API tokens are stored in Strapi's secure configuration storage
  • Tokens are never exposed to frontend users
  • All API requests are made server-side for security

Troubleshooting

  • If the AI prompt field doesn't appear, check that you've configured a valid API token
  • If generation fails, verify your token is correct and has not expired
  • Check your network connection if requests time out
  • Make sure you're using the correct plugin version for your Strapi version (4.0.0 for Strapi 4, latest for Strapi 5)