Why connect GitHub?
- Run your real application — 21st clones and runs your actual repository
- Live previews — See changes in a real running environment, not mockups
- Local branches — Each variant is a local branch (not published to GitHub until you open a PR)
- Team collaboration — Non-technical team members can contribute via PRs
Setup Process
1
Open Team Settings
Navigate to Team Settings → Integrations
2
Enable GitHub
In the GitHub card, click Enable
3
Grant access
On GitHub, grant access to the app (organization or personal)
4
Select repository
Select the repository you want to connect
5
Configure application path
If you’re working with a monorepo, specify the path to your application (e.g.,
apps/web or packages/frontend). For single-repo projects, leave this empty.6
Set up build commands
Configure how to install dependencies and run your app:
- Install command: e.g.,
pnpm install,npm install, oryarn install - Dev command: e.g.,
pnpm dev,npm run dev, oryarn dev
7
Add environment variables
Add any development environment variables your app needs (API keys, feature flags, etc.)
8
Wait for setup
Wait for the repository to be cloned, dependencies installed, and the app to start. This usually takes a couple of minutes.
If You Don’t Have GitHub Access
If you don’t have access to your organization’s GitHub, you can delegate setup to a technical team member:- Go to Team Settings → Members
- Invite a technical team member and give them admin access
- They can configure the GitHub integration
- Once set up, everyone on the team can use it — you don’t need GitHub access to work in Canvas
What You Get
After the initial setup (usually a couple of minutes), you can:- Create frames immediately — Start creating variants on your canvas right away
- Local branches — Each variant in Canvas is a local branch (not published to GitHub automatically)
- Live previews — Your app runs in 21st, so you see real changes in real time
- Share previews — Quickly share branch previews with colleagues and clients to get feedback on new features or prototypes
- Reference your codebase — Use
@Codebasein chat to reference files from your repo - Create PRs — Open a pull request from the selected branch to publish it to GitHub
- Work with your design system — AI understands your components, patterns, and architecture
Sharing Previews
Since 21st runs your real application and creates a live preview for each branch, you can quickly share previews with your team and clients:- Get feedback fast — Share a preview link so stakeholders can try new features before they’re merged
- Client reviews — Let clients see and test prototypes without waiting for deployment
- Team collaboration — Get design and product feedback from non-technical team members
- No deployment needed — Preview branches instantly without setting up staging environments
Use Cases for Non-Technical Teams
21st is perfect for enabling non-technical team members to contribute to your product:Documentation Teams
Connect your documentation repository (Mintlify, Docusaurus, etc.):- Support team can edit documentation, fix typos, update content
- They create PRs directly from Canvas
- Technical team only reviews and merges — no need to write docs themselves
Marketing & Growth Teams
Connect your marketing website repository:- Growth team can create landing pages, update copy, add new sections
- They work visually in Canvas without touching code
- Engineers stay focused on product — no more “can you update the homepage copy?” requests
Product Teams
Connect your main product repository:- Product managers can prototype features, test UX changes
- Designers can implement their designs directly
- Everyone creates PRs — engineers review and merge, not implement