Apps and Interfaces
Build your own prediction market products by customizing the open source Sapience app or starting fresh with the components in the SDK.
Customize the Sapience App
Fork and ship your own version of the Sapience app. If you run into trouble at any step, ask the Cursor agent in the chat panel to diagnose and fix issues.
Clone the repository using Cursor
Install Cursor and then:
- Open the Command Palette in Cursor (Cmd/Ctrl+Shift+P) and choose "Git: Clone".
- Paste the repo URL:
https://github.com/sapiencexyz/sapience.git - Choose a destination folder, then open the cloned repository in Cursor.
- If prompted, "Trust the authors" and install recommended extensions.
Run your copy of the app
Open the terminal in Cursor (Ctrl+`), then run these from the repository root:
pnpm install
pnpm dev:appPrerequisites:
- Node.js >= 20.14
- pnpm 9.x (install with
npm install -g pnpm@9)
If you need help installing these, use the Cursor agent or see the Get Started guide.
Customize the app
Use the Cursor chat panel to prompt the agent to implement your change. Describe the change in plain language and ask it to write/apply the edit, run the app, and fix any errors.
For example:
- Prompt an update such as: "If a user enters a wager amount greater than 1000, render the responsible wager warning text in aLtErNaTiNg CaSe."
- Review the code changes and ask the agent if you have questions about the implementation.
- Verify your change live at
http://localhost:3000.
Push your version to GitHub
- Create a GitHub account if you don't already have one.
- In GitHub, open
sapiencexyz/sapienceand click "Fork" to create your copy. - Point your local repo at your fork:
Open the terminal in Cursor (Ctrl+`), then run these from the repository root:
git remote rename origin upstream
git remote add origin https://github.com/<your-username>/sapience.git
git checkout -b my-customization
git add -A && git commit -m "Customize betslip warning"
git push -u origin my-customizationDeploy to Vercel
- In Vercel, create a New Project and import your fork.
- Root Directory:
packages/app. - Framework Preset: Next.js (auto).
- Install Command:
pnpm install --frozen-lockfile. - Build Command:
pnpm build. - Deploy.
Contribute a pull request
- Open a Pull Request from your fork/branch to
sapiencexyz/sapience:main. - Describe what you changed and why. Include screenshots or a brief demo if relevant.
- Respond to any review feedback; once approved, your improvements can be merged to the main Sapience app.