Instantly turn your GitHub repo into a live website with AI-powered design - no code needed.
A GitHub Action that automatically generates beautiful, custom landing pages from your repository data using AI analysis.
- AI-Powered Design: Analyzes your repository and generates custom designs using Claude, GPT-4, or Gemini
- Static HTML Sites: Modern, fast static sites with Tailwind CSS
- Unique Styling: Every site gets a custom color scheme and layout based on your project
- Responsive Design: Looks great on all devices
- Multi-Provider Support: Works with Anthropic, OpenAI, or Google AI
- GitHub Pages Ready: Output is ready for GitHub Pages deployment
- GitHub Statistics: Display stars, forks, watchers, and more on your site
Create .github/workflows/gitlyte.yml:
name: Generate Site with GitLyte
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate Site
uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
provider: anthropic
quality: standard
output-directory: docs
- name: Commit and Push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
git diff --staged --quiet || git commit -m "chore: update GitLyte generated site"
git push- Go to your repository Settings > Secrets and variables > Actions
- Click "New repository secret"
- Add your AI provider's API key:
- Name:
ANTHROPIC_API_KEY,OPENAI_API_KEY, orGOOGLE_API_KEY - Value: Your API key
- Name:
- Go to Settings > Pages
- Source: "Deploy from a branch"
- Branch:
main, Folder:/docs - Click "Save"
That's it! Push to main and your site will be generated automatically.
| Input | Required | Default | Description |
|---|---|---|---|
api-key |
Yes | - | API key for the AI provider |
provider |
No | anthropic |
AI provider: anthropic, openai, or google |
quality |
No | standard |
Quality mode: standard or high |
output-directory |
No | docs |
Output directory for generated files |
theme-mode |
No | dark |
Theme mode: light, dark, or auto |
theme-toggle |
No | false |
Include a light/dark mode toggle button |
site-instructions |
No | - | Custom instructions for AI generation (tone, language, style) |
logo-path |
No | - | Path to logo image file in repository (e.g., assets/logo.svg) |
favicon-path |
No | - | Path to favicon file in repository (e.g., assets/favicon.ico) |
seo-title |
No | - | Custom page title for SEO (defaults to repository name) |
seo-description |
No | - | Meta description for search engines |
og-image-path |
No | - | Path to Open Graph image file (e.g., assets/og-image.png) |
twitter-handle |
No | - | Twitter/X handle for Twitter Card (e.g., @username) |
site-url |
No | - | Site URL for canonical link and OG URL |
generate-sitemap |
No | true |
Generate sitemap.xml (requires site-url) |
generate-robots |
No | true |
Generate robots.txt (requires site-url) |
show-stats |
No | true |
Show GitHub statistics (stars, forks, etc.) on the site |
fetch-contributors |
No | false |
Fetch contributor count (requires additional API call) |
fetch-releases |
No | false |
Fetch latest release version (requires additional API call) |
generate-contributors-page |
No | false |
Generate a dedicated contributors page with avatars and stats |
max-contributors |
No | 50 |
Maximum number of contributors to display (1-500) |
github-token |
No | ${{ github.token }} |
GitHub token for API access |
| Output | Description |
|---|---|
output-directory |
Directory where the site was generated |
pages-count |
Number of pages generated |
Create a .gitlyte.json file in your repository root to customize generation:
{
"enabled": true,
"outputDirectory": "docs",
"theme": {
"mode": "dark",
"toggle": true
},
"prompts": {
"siteInstructions": "Use a friendly, approachable tone"
},
"logo": {
"path": "assets/logo.svg",
"alt": "My Project Logo"
},
"favicon": {
"path": "assets/favicon.ico"
},
"seo": {
"title": "My Awesome Project",
"description": "A powerful tool for developers",
"keywords": ["developer-tools", "productivity"],
"ogImage": { "path": "assets/og-image.png" },
"twitterHandle": "@myproject",
"siteUrl": "https://myproject.github.io/repo"
},
"sitemap": {
"enabled": true,
"changefreq": "weekly",
"priority": 0.8
},
"robots": {
"enabled": true,
"additionalRules": ["Disallow: /private/"]
},
"contributors": {
"enabled": true,
"maxContributors": 50
}
}| Option | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | true |
Enable/disable site generation |
outputDirectory |
string | "docs" |
Output directory for generated files |
theme.mode |
string | "dark" |
Theme mode: "light", "dark", or "auto" |
theme.toggle |
boolean | false |
Include a light/dark mode toggle button |
prompts.siteInstructions |
string | - | Custom instructions for AI generation (tone, language, style) |
logo.path |
string | - | Path to logo image file in repository |
logo.alt |
string | - | Alt text for the logo image |
favicon.path |
string | - | Path to favicon file in repository |
seo.title |
string | - | Custom page title (defaults to repository name) |
seo.description |
string | - | Meta description for search engines |
seo.keywords |
string[] | - | Keywords for search engines |
seo.ogImage.path |
string | - | Path to Open Graph image file |
seo.twitterHandle |
string | - | Twitter/X handle for Twitter Card |
seo.siteUrl |
string | - | Site URL for canonical link and OG URL |
sitemap.enabled |
boolean | true |
Enable/disable sitemap.xml generation |
sitemap.changefreq |
string | "weekly" |
How frequently the page changes |
sitemap.priority |
number | 0.8 |
Priority of URLs (0.0 to 1.0) |
robots.enabled |
boolean | true |
Enable/disable robots.txt generation |
robots.additionalRules |
string[] | - | Additional rules for robots.txt |
contributors.enabled |
boolean | false |
Enable/disable contributors page generation |
contributors.maxContributors |
number | 50 |
Maximum number of contributors to display (1-500) |
GitLyte supports multiple AI providers:
| Provider | Secret Name | Model |
|---|---|---|
| Anthropic (default) | ANTHROPIC_API_KEY |
Claude Sonnet 4.5 |
| OpenAI | OPENAI_API_KEY |
GPT-4.1 |
GOOGLE_API_KEY |
Gemini 3 Flash |
- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.OPENAI_API_KEY }}
provider: openai- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
output-directory: public- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
quality: high- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
seo-title: My Awesome Project
seo-description: A powerful tool that makes developers more productive
og-image-path: assets/og-image.png
twitter-handle: "@myproject"
site-url: https://myproject.github.io/repo- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
show-stats: true
fetch-contributors: true
fetch-releases: trueThis will display a statistics section on your generated site showing:
- Stars, forks, and watchers count
- Open issues count
- License information
- Latest release version (if
fetch-releasesis enabled) - Contributor count (if
fetch-contributorsis enabled) - Repository creation and last update dates
- uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
generate-contributors-page: true
max-contributors: 100This will generate a dedicated contributors page (contributors.html) showing:
- Contributor avatars and usernames
- Number of contributions per contributor
- Links to contributor GitHub profiles
- Grid layout with responsive design
name: Generate Site with GitLyte
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate Site
uses: wadakatu/gitlyte@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: "chore: update GitLyte generated site"
commit-message: "chore: update GitLyte generated site"
branch: gitlyte/update-site
delete-branch: trueGitLyte uses AI to analyze your repository and create a custom website:
- Analyzes your repository (README, tech stack, purpose, audience)
- Generates a custom design system with colors and typography
- Creates HTML pages with Tailwind CSS styling
- Outputs files to your specified directory
The AI reads your README and repository metadata to understand your project, then generates a unique landing page tailored to your project's purpose.
Anthropic (Claude) is recommended for most users. It provides excellent design quality and understands project context well. OpenAI and Google are good alternatives if you already have API keys for those services.
- Anthropic: console.anthropic.com
- OpenAI: platform.openai.com
- Google: aistudio.google.com
GitLyte itself is free. You only pay for AI API usage:
- Standard mode: ~$0.01-0.05 per generation
- High quality mode: ~$0.05-0.15 per generation
Actual costs depend on your README length and AI provider pricing.
Yes! You can:
- Use
site-instructionsto guide the AI's tone and style - Add your own logo and favicon
- Choose light/dark theme mode
- Add a theme toggle button
GitLyte only writes to the specified output-directory (default: docs). It will overwrite files within that directory but won't touch files outside of it.
Yes. Just specify the correct output-directory and configure your workflow to run in the appropriate directory.
Yes. GitLyte uses the GitHub token provided in the workflow, which has access to private repository content.
Cause: The API key secret is not set or has the wrong name.
Solution:
- Go to repository Settings > Secrets and variables > Actions
- Verify the secret name matches your provider:
- Anthropic:
ANTHROPIC_API_KEY - OpenAI:
OPENAI_API_KEY - Google:
GOOGLE_API_KEY
- Anthropic:
- Ensure the secret value is correct (no extra spaces)
Cause: The workflow may have failed or the output wasn't committed.
Solution:
- Check the Actions tab for workflow errors
- Verify
permissions: contents: writeis set in your workflow - Ensure the commit step runs after generation
Cause: GitHub Pages is not configured correctly.
Solution:
- Go to Settings > Pages
- Set Source to "Deploy from a branch"
- Select the correct branch (e.g.,
main) and folder (/docs) - Wait a few minutes for deployment
Cause: The generated HTML uses Tailwind CSS via CDN.
Solution:
- Ensure your network allows CDN access
- Check if any Content Security Policy blocks external scripts
- Try regenerating the site
Cause: The workflow lacks necessary permissions.
Solution: Add these permissions to your workflow:
permissions:
contents: write
pull-requests: write # Only if using PR workflowCause: AI API rate limits or temporary errors.
Solution:
- Wait a few minutes and retry
- Check your API key has sufficient credits
- Try a different AI provider
- Use
highquality mode (includes retry logic)
# Install dependencies
pnpm install
# Build
pnpm run build
# Lint
pnpm run lint
# Format
pnpm run formatWe'd love your help! Check out our Contributing Guide to get started.
See SECURITY.md for security policy and vulnerability reporting.
See CHANGELOG.md for version history and release notes.
ISC 2025 wadakatu