The fastest way to build apps with React and InsForge
Demo · Features · Quick launch · Clone and run locally · Deploy to Vercel
Check out the live demo: demoreact.insforge.site
- Works across a modern React starter stack
- React 19
- Vite
- React Router
- TypeScript
- It just works
- InsForge auth configured across the starter app
- Viewer state wired through a shared auth context for the starter routes
- Protected example route with signed-in user details and starter steps
- Optional Google and GitHub OAuth providers
- Browser-side auth actions using
@insforge/sdk - Starter homepage with environment setup guidance
- Styling with Tailwind CSS
- Ready for local development and Vercel deployment
If you want the fastest path, use the InsForge CLI and follow the prompts:
npx @insforge/cli createFrom there:
- Choose the React starter template
- Follow the prompt flow to create or connect your InsForge project
- Let the CLI handle the initial setup
- Choose to deploy with InsForge from the guided flow
Use the sections below if you want to set up the starter manually.
- Clone this repository and move into the starter directory.
git clone https://github.com/InsForge/insforge-templates.git
cd insforge-templates/react- Install dependencies.
npm install- Go to the InsForge dashboard, create a project, and click Connect → CLI to get the link command:
npx @insforge/cli link --project-id <your-project-id>- Copy
env.exampleto.env.localand update the values with your InsForge project settings (find these in the InsForge dashboard under Connect → API Keys):
cp env.example .env.localSet the following values in .env.local:
VITE_INSFORGE_BASE_URL=https://your-project.region.insforge.app
VITE_INSFORGE_ANON_KEY=your-anon-keyYou can find the project URL and anon key in your InsForge project settings.
- Start the development server.
npm run devThe starter should now be running on localhost:5173.
Click Deploy with Vercel, then fill in the required environment variables during the setup flow:
VITE_INSFORGE_BASE_URLVITE_INSFORGE_ANON_KEY
After importing into Vercel:
- In your InsForge dashboard, open
Authentication→General→Allowed Redirect URLs - Add your deployed callback URL, for example
https://your-project.vercel.app/auth/callback - If you test locally as well, also allow
http://localhost:5173/auth/callback
The above will also clone the starter kit to your GitHub, so you can clone it locally and continue development there.
