GenkitG
Genkitโ€ข16mo agoโ€ข
1 reply
efficient-indigo

feat: repackage genkit under `genkit` pa...

Hey all! For the next major release (0.6) we're changing the genkit packages to make it easier to install and import Genkit in nodejs. To install the Genkit library you'll just need to:

npm i --save genkit


and in the code you'll be importing everything from genkit package (instead of @genkit-ai/ai|flow|core).

import {...} from 'genkit';


The plugins are going to remain in separate packages which will still need to be installed separately.

to install the CLI:

npm i --dev genkit-cli
npx genkit start

or
npm i -g genkit-cli
genkit start


First step in that direction: https://github.com/firebase/genkit/pull/934

and later we'll be adding
npm create genkit

this will be a "shortcut" (or a replacement?) for genkit init.

Feedback welcome!
GitHub
import { configureGenkit, generate } from 'genkit';
import { gemini15Flash, googleAI } from '@genkit-ai/googleai';

configureGenkit({ plugins: [googleAI()] });

awai...
feat: repackage genkit under `genkit` package and move CLI to `genk...
Was this page helpful?