3.0.0-beta.14 • Published 10 months ago

@firecms/data_import v3.0.0-beta.14

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

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.

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/ibm-plex-mono";

import { useDataImportPlugin } from "@firecms/data_import";

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

export default function App() {

    const dataImportPlugin = useDataImportPlugin({
        // 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={[dataImportPlugin]}
        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.
3.0.0-beta.11

1 year ago

3.0.0-beta.12

1 year ago

3.0.0-beta.13

12 months ago

3.0.0-beta.14

10 months ago

3.0.0-canary.237

11 months ago

3.0.0-canary.235

11 months ago

3.0.0-canary.233

11 months ago

3.0.0-canary.234

11 months ago

3.0.0-canary.231

12 months ago

3.0.0-canary.232

11 months ago

3.0.0-canary.239

11 months ago

3.0.0-canary.240

11 months ago

3.0.0-canary.241

11 months ago

3.0.0-canary.248

10 months ago

3.0.0-canary.246

10 months ago

3.0.0-canary.247

10 months ago

3.0.0-canary.244

10 months ago

3.0.0-canary.245

10 months ago

3.0.0-canary.242

11 months ago

3.0.0-beta.10

1 year ago

3.0.0-canary.130

2 years ago

3.0.0-canary.128

2 years ago

3.0.0-canary.129

2 years ago

3.0.0-canary.127

2 years ago

3.0.0-beta.9

2 years ago

3.0.0-canary.125

2 years ago

3.0.0-canary.126

2 years ago

3.0.0-canary.123

2 years ago

3.0.0-canary.124

2 years ago

3.0.0-canary.122

2 years ago

3.0.0-canary.121

2 years ago

3.0.0-canary.120

2 years ago

3.0.0-canary.116

2 years ago

3.0.0-canary.117

2 years ago

3.0.0-canary.114

2 years ago

3.0.0-canary.115

2 years ago

3.0.0-canary.118

2 years ago

3.0.0-canary.119

2 years ago

3.0.0-canary.113

2 years ago

3.0.0-canary.112

2 years ago

3.0.0-canary.110

2 years ago

3.0.0-canary.111

2 years ago

3.0.0-canary.85

2 years ago

3.0.0-canary.84

2 years ago

3.0.0-canary.87

2 years ago

3.0.0-canary.86

2 years ago

3.0.0-canary.83

2 years ago

3.0.0-canary.82

2 years ago

3.0.0-canary.105

2 years ago

3.0.0-canary.106

2 years ago

3.0.0-canary.103

2 years ago

3.0.0-canary.104

2 years ago

3.0.0-canary.101

2 years ago

3.0.0-canary.102

2 years ago

3.0.0-canary.100

2 years ago

3.0.0-canary.109

2 years ago

3.0.0-canary.107

2 years ago

3.0.0-canary.108

2 years ago

3.0.0-canary.99

2 years ago

3.0.0-canary.89

2 years ago

3.0.0-canary.88

2 years ago

3.0.0-canary.96

2 years ago

3.0.0-canary.95

2 years ago

3.0.0-canary.98

2 years ago

3.0.0-canary.97

2 years ago

3.0.0-canary.92

2 years ago

3.0.0-canary.91

2 years ago

3.0.0-canary.94

2 years ago

3.0.0-canary.93

2 years ago

3.0.0-canary.90

2 years ago

3.0.0-alpha.36

2 years ago

3.0.0-alpha.37

2 years ago

3.0.0-alpha.35

2 years ago

3.0.0-alpha.34

2 years ago

3.0.0-alpha.33

2 years ago

3.0.0-alpha.32

2 years ago

3.0.0-alpha.31

2 years ago

3.0.0-alpha.30

2 years ago

3.0.0-alpha.29

2 years ago

3.0.0-alpha.28

2 years ago

3.0.0-alpha.27

2 years ago

3.0.0-alpha.26

2 years ago

3.0.0-alpha.25

2 years ago

3.0.0-alpha.24

2 years ago

3.0.0-alpha.21

2 years ago

3.0.0-alpha.20

2 years ago

3.0.0-alpha.19

2 years ago

3.0.0-alpha.18

2 years ago

3.0.0-alpha.17

2 years ago

3.0.0-alpha.16

2 years ago

3.0.0-alpha.15

2 years ago

3.0.0-alpha.14

2 years ago

3.0.0-alpha.13

2 years ago

3.0.0-alpha.12

2 years ago

3.0.0-alpha.11

2 years ago

3.0.0-alpha.10

2 years ago

3.0.0-alpha.8

2 years ago

3.0.0-alpha.7

2 years ago

3.0.0-alpha.5

2 years ago