SolAI is the one-stop shop for Solana product team. SolAI provides drag and drop UI to create system architect for a Solana Anchor Program, then use AI to generate deployable-code (Rust code, TS test code and TS SDK for front-end) and finally build and test it (coming soon). SolAI also generate document from the code, provide a seamless workflow for the whole team.
You can find the demo here and the pitch deck here.
This is a mono-repo project, there are 2 projects:
server/migration/schema.sql
to intialise the database.codestral
section, not the api
or else you will have an 401 Unauthorized
error..env
file in the server
folder with following variables:PORT=9999
JWT_SECRET=[a random string]
ROOT_FOLDER=[This is where you keep the built code]
DB_USER=[From step 2]
DB_HOST=[From step 2]
DB_NAME=[From step 2]
DB_PASSWORD=[From step 2]
DB_PORT=[From step 2]
MISTRAL_API_KEY=[From step 3]
server
folder, run npm i
then npm run dev
http://localhost:9999/health
(suppose it is localhost and port 9999) and it should show a success message. For further testing of the server, use this Postman collection. Pay attention to all the environment variable for the Post man collection.REACT_APP_API_URL=[endpoint of the server, e.g: http://localhost:9999]
npm i
to install all packages, then npm start
to start the project.Note: Though the server is completed, the current webapp project do not use all the endpoint yet.
Steps to reproduce the demo.
Prompt
on the top panel to generate the code structure (not every code files)Code
section on the left handside panel, click each of the code file to generate the real code; it will take sometime.Doc
section on the left handside to generate the doc. Voila!