This is a simple starter template that integrates JigsawStack's AI SDK with the NextJS 15 using the app router and more.
The template includes the following examples making it easy to get started:
- vOCR: Extracts information from images with advanced optical character recognition (OCR).
- Sentiment Analysis: Analyzes text to determine its sentiment and emotion.
- Translation: Translates text into the desired target language.
- Text-to-Speech (TTS): Converts text into high-quality speech output.
- Create an account at JigsawStack
- Add your public API key under
NEXT_PUBLIC_JIGSAWSTACK_PUBLIC_KEYand your secret key underJIGSAWSTACK_PUBLIC_KEYin your.env - Install the dependencies
npm install
# or
yarn install
# or
pnpm install Ensure to remove
yarn.lockif you are using another package manager.
- Run the application with
npm run dev
# or
yarn dev
# or
pnpm devIt will be available at http://localhost:3000.
Deploy the example using Vercel:
