Skip to content

Staging Generative AI for Nuxt Content, provides components and composables, demo app running with Content Wind theme

Notifications You must be signed in to change notification settings

deniskropp/nuxt-kick-start

Repository files navigation

Nuxt Kick Start

This site demos generative AI with Nuxt Content

Intro

Testing repo and site (Kick It - Nuxt Content using generative AI)

See also (core package, submodule)

kick-it

Nuxt Module (will use this one soon)

nuxt-kick-it

Demo

Check out the deployment at kick-start.nuxt.space.

Checkout

git clone [email protected]:deniskropp/nuxt-kick-start
cd nuxt-kick-start
git submodule update --init

Setup

pnpm install

Development

pnpm dev

Then open http://localhost:3000 to see the app.

API

We are using Cohere at the moment, please put your API key in .env!

COHERE_API_KEY=xyz

Components

Chat

  • embed in any .md file (/content) using '::chat'
  • generate content from page and component input
  • allow props, e.g. 'task' or 'instruction'

Composables

useChat

  • uses useContent() for the body of the active page
  • makes messages for AI end-point with content, props etc.
  • returns generated content as markdown formatted string

Deployment

Learn more how to deploy on Nuxt docs.