🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@firecms/data_enhancement

Package Overview
Dependencies
Maintainers
1
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

@firecms/data_enhancement

This plugin allows you to enhance data in your [FireCMS](https://firecms.co) project, using ChatGPT.

unpublished
npmnpm
Version
0.6.1
Version published
Weekly downloads
951
357.21%
Maintainers
1
Weekly downloads
 
Created
Source

FireCMS Data enhancement plugin

This plugin allows you to enhance data in your FireCMS project, using ChatGPT.

The ChatGPT plugin allows you to use the OpenAI API to generate content using the latest GPT models. This plugin is able to understand the structure of your data and generate content that fits your schema.

Data enhancement UI

In order to be able to use this plugin you need to have a valid subscription.

You can get a subscription in the FireCMS dashboard.

You need to specify the Firebase project id you would like to use the plugin with, in the website. And that's it!

No need to add any subscription key or anything like that.

import React from "react";
import { FirebaseCMSApp } from "firecms";
import "typeface-rubik";
import "@fontsource/ibm-plex-mono";

import { useDataEnhancementPlugin } from "@firecms/data_enhancement";

// TODO: Replace with your Firebase config
const firebaseConfig = {
    apiKey: "",
    authDomain: "",
    projectId: "",
    storageBucket: "",
    messagingSenderId: "",
    appId: ""
};

export default function App() {

    const dataEnhancementPlugin = useDataEnhancementPlugin({
        // Optional callback for defining which collections should be enhanced
        getConfigForPath: ({ path }) => {
            if (path === "books")
                return true;
            return false;
        }
    });

    return <FirebaseCMSApp
        name={"My Online Shop"}
        plugins={[dataEnhancementPlugin]}
        authentication={myAuthenticator}
        collections={[
            //...
        ]}
        firebaseConfig={firebaseConfig}
    />;
}

FAQs

Package last updated on 20 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts