This is a template for building AI powered frame using ORA's AI Oracle.
The purpose of this templte is to help people get started with AI dapps development. The codebase is NOT audited. Use it at your own risk.
api - defines api endpoints, which execute actions and return frame metatags
lib - helper functions
public - directory containing frame images
- copy
.env.example
into.env
and add values to environment variables - modify frame logic as you wish, by changing files within api folder
- run the frame locally:
yarn dev
- Run the development server:
yarn dev
- Use ngrok to expose your local frame
- Test the frame with https://warpcast.com/~/developers/frames
If you don't want to use ngrok, you can test the frame using local debugger from frames.js.
- run
vercel --prod
to deploy your frame to vercel - cast a frame on Farcaster client (eg. Warpcast), using link to the production deployment
In order to develop and deploy contracts for your AI Oracle Frame application, you can use this template repository.
- Onchain AI Oracle tutorial - understand how to utilise verifiable AI in your dapps.
- Farcaster docs - Farcaster docs
- Base Onchain Kit - Base framework for building frames