@firecms/data_enhancement
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-beta.10 • Public • Published

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/core";
import "typeface-rubik";
import "@fontsource/jetbrains-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}
    />;
}

How does it work?

This plugin uses 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.

Some tips in order to get the best results:

  • Make sure you select the right data type for your fields.
  • The field names are used to generate the content and are usually enough to generate good results. If you want to get even better results, you can add a description to your fields. This will help the plugin understand the context of your data and generate better results.
  • The collection name is important as well.
  • You can establish relations between fields and the plugin will pick it up. e.g. if you have a field called author and another field called book, the plugin will understand that the author is related to the book and will generate content accordingly. You can use this for making summaries, reviews, translations, SEO content, etc.

Current limitations

  • Markdown fields work but do not get the enhanced content highlighted.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.0-canary.14377pre
3.0.0-beta.1038latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.0-canary.14377
3.0.0-canary.14261
3.0.0-canary.14176
3.0.0-canary.14089
3.0.0-canary.13912
3.0.0-canary.1388
3.0.0-canary.1375
3.0.0-beta.1038
3.0.0-canary.1362
3.0.0-canary.1351
3.0.0-canary.1341
3.0.0-canary.1331
3.0.0-canary.1320
3.0.0-canary.1310
3.0.0-canary.1300
3.0.0-canary.1290
3.0.0-canary.1284
3.0.0-canary.1270
3.0.0-beta.98
3.0.0-canary.1260
3.0.0-canary.1253
3.0.0-canary.1240
3.0.0-canary.1230
3.0.0-canary.1220
3.0.0-canary.1210
3.0.0-canary.1200
3.0.0-canary.1190
3.0.0-canary.1180
3.0.0-canary.1170
3.0.0-canary.1160
3.0.0-canary.1150
3.0.0-canary.1140
3.0.0-canary.1130
3.0.0-canary.1120
3.0.0-canary.1110
3.0.0-canary.1100
3.0.0-canary.1090
3.0.0-canary.1080
3.0.0-canary.1070
3.0.0-canary.1060
3.0.0-canary.1050
3.0.0-canary.1040
3.0.0-canary.1030
3.0.0-canary.1020
3.0.0-canary.1010
3.0.0-canary.1000
3.0.0-canary.990
3.0.0-canary.980
3.0.0-canary.970
3.0.0-canary.960
3.0.0-canary.950
3.0.0-canary.948
3.0.0-canary.930
3.0.0-canary.920
3.0.0-canary.910
3.0.0-canary.900
3.0.0-canary.890
3.0.0-canary.880
3.0.0-canary.870
3.0.0-canary.860
3.0.0-canary.850
3.0.0-canary.840
3.0.0-canary.830
3.0.0-canary.820
3.0.0-beta.813
3.0.0-canary.810
3.0.0-canary.800
3.0.0-canary.790
3.0.0-canary.780
3.0.0-canary.770
3.0.0-canary.760
3.0.0-canary.750
3.0.0-canary.740
3.0.0-canary.730
3.0.0-canary.720
3.0.0-canary.710
3.0.0-canary.700
3.0.0-canary.690
3.0.0-canary.680
3.0.0-canary.670
3.0.0-canary.660
3.0.0-canary.650
3.0.0-canary.640
3.0.0-canary.630
3.0.0-canary.620
3.0.0-canary.610
3.0.0-canary.600
3.0.0-canary.590
3.0.0-beta.70
3.0.0-canary.580
3.0.0-canary.570
3.0.0-canary.560
3.0.0-canary.550
3.0.0-canary.540
3.0.0-canary.530
3.0.0-canary.520
3.0.0-canary.510
3.0.0-canary.500
3.0.0-canary.490
3.0.0-canary.480
3.0.0-canary.470
3.0.0-canary.460
3.0.0-canary.450
3.0.0-canary.440
3.0.0-3.0.0-canary.44.00
3.0.0-beta.62
3.0.0-canary.430
3.0.0-canary.420
3.0.0-canary.410
3.0.0-canary.400
3.0.0-canary.390
3.0.0-beta.50
3.0.0-canary.380
3.0.0-canary.370
3.0.0-canary.360
3.0.0-canary.350
3.0.0-canary.340
3.0.0-canary.330
3.0.0-canary.320
3.0.0-canary.310
3.0.0-canary.300
3.0.0-canary.290
3.0.0-canary.280
3.0.0-canary.270
3.0.0-3.0.0-canary.27.00
3.0.0-beta.40
3.0.0-canary.260
3.0.0-canary.250
3.0.0-canary.240
3.0.0-canary.230
3.0.0-canary.220
3.0.0-canary.210
3.0.0-canary.200
3.0.0-canary.190
3.0.0-canary.180
3.0.0-canary.170
3.0.0-canary.160
3.0.0-canary.150
3.0.0-canary.140
3.0.0-canary.130
3.0.0-canary.120
3.0.0-canary.110
3.0.0-canary.100
3.0.0-canary.90
3.0.0-canary.80
3.0.0-3.0.0-canary.8.00
3.0.0-beta.4.pre.20
3.0.0-beta.4.pre.10
3.0.0-3.0.0-beta.4.pre.1.00
3.0.0-beta.30
3.0.0-canary.70
3.0.0-canary.60
3.0.0-canary.50
3.0.0-canary.40
3.0.0-canary.30
3.0.0-canary.20
3.0.0-canary.10
3.0.0-canary.00
3.0.0-beta.20
3.0.0-beta.2-pre.50
3.0.0-beta.2-pre.40
3.0.0-beta.2-pre.30
3.0.0-beta.2-pre.20
3.0.0-beta.2-pre.10
3.0.0-beta.10
3.0.0-alpha.840
3.0.0-alpha.830
3.0.0-alpha.820
3.0.0-alpha.810
3.0.0-alpha.800
3.0.0-alpha.790
3.0.0-alpha.780
3.0.0-alpha.770
3.0.0-alpha.760
3.0.0-alpha.750
3.0.0-alpha.740
3.0.0-alpha.730
3.0.0-alpha.720
3.0.0-alpha.710
3.0.0-alpha.700
3.0.0-alpha.690
3.0.0-alpha.680
3.0.0-alpha.670
3.0.0-alpha.660
3.0.0-alpha.650
3.0.0-alpha.640
3.0.0-alpha.630
3.0.0-alpha.620
3.0.0-alpha.610
3.0.0-alpha.600
3.0.0-alpha.590
3.0.0-alpha.580
3.0.0-alpha.570
3.0.0-alpha.560
3.0.0-alpha.550
3.0.0-alpha.540
3.0.0-alpha.530
3.0.0-alpha.520
3.0.0-alpha.510
3.0.0-alpha.500
3.0.0-alpha.490
3.0.0-alpha.480
3.0.0-alpha.470
3.0.0-alpha.460
3.0.0-alpha.450
3.0.0-alpha.440
3.0.0-alpha.430
3.0.0-alpha.420
3.0.0-alpha.410
3.0.0-alpha.400
3.0.0-alpha.390
3.0.0-alpha.380
3.0.0-alpha.370
3.0.0-alpha.360
3.0.0-alpha.350
3.0.0-alpha.340
3.0.0-alpha.330
3.0.0-alpha.320
3.0.0-alpha.310
3.0.0-alpha.300
3.0.0-alpha.290
3.0.0-alpha.280
3.0.0-alpha.270
3.0.0-alpha.260
3.0.0-alpha.250
3.0.0-alpha.240
3.0.0-alpha.210
3.0.0-alpha.200
1.2.167
3.0.0-alpha.190
3.0.0-alpha.180
3.0.0-alpha.170
3.0.0-alpha.160
3.0.0-alpha.150
3.0.0-alpha.140
3.0.0-alpha.130
3.0.0-alpha.120
3.0.0-alpha.110
3.0.0-alpha.100
3.0.0-alpha.90
3.0.0-alpha.80
3.0.0-alpha.70
3.0.0-alpha.50
3.0.0-alpha.40
1.2.00
1.1.50
1.1.40
1.1.340
1.1.20
1.1.10
1.1.00
1.0.03
0.9.20

Package Sidebar

Install

npm i @firecms/data_enhancement

Weekly Downloads

519

Version

3.0.0-beta.10

License

none

Unpacked Size

422 kB

Total Files

52

Last publish

Collaborators

  • gatti675