game-deploy
FreeNo executable scriptsNot checkedDeploy browser games to here.now (default), GitHub Pages, or other hosting. Use when deploying a game, setting up hosting, or publishing a game build. Do NOT…
by PlayableIntelligence★ 383 GitHub starsAbout this skill
Game Deployment
Deploy your browser game for public access. here.now is the default — instant static hosting with zero configuration. GitHub Pages is available as an alternative when you need git-based deploys.
here.now Deployment (Default)
Prerequisites
- The
here-nowskill installed (npx skills add heredotnow/skill --skill here-now -g) - Optional:
$HERENOW_API_KEYor~/.herenow/credentialsfor permanent hosting
Quick Deploy
npm run build
~/.agents/skills/here-now/scripts/publish.sh dist/
The script outputs a live URL like https://<slug>.here.now/.
Why here.now is the default
- Zero config — no
basepath, no git repo, no GitHub CLI required - Instant — site is live immediately (no waiting for propagation)
- No base path issues — content served from subdomain root (
base: '/'or default) - Works everywhere — only needs
curl,file, andjq
Vite base path
here.now serves from the subdomain root, so use the default base path:
export default defineConfig({
base: '/',
// ... rest of config
});
IMPORTANT: Claim your site within 24 hours
Without an API key, publishes are anonymous and expire in 24 hours. The publish script returns a claim URL — the user MUST visit this URL and create a free here.now account to keep the site permanently. The claim token is only shown once and cannot be recovered. If they don't claim it, the site disappears.
You MUST always tell the user about the 24-hour window and the claim URL after every anonymous publish. This is not optional.
| Feature | Anonymous | Authenticated |
|---|---|---|
| Expiry | 24 hours (then deleted!) | Permanent |
| Max file size | 250 MB | 5 GB |
| Rate limit | 5/hour/IP | 60/hour/account |
To set up an API key for permanent hosting (skip the 24h window entirely):
First check if the key already exists:
test -f .env && grep -q '^HERENOW_API_KEY=.' .env && echo "found"
If found, export it with set -a; . .env; set +a and skip the prompt.
Otherwise:
- Ask the user for their email
- Send a magic link:
curl -sS https://here.now/api/auth/login -H "content-type: application/json" -d '{"email": "[email protected]"}' - User clicks the link, copies their API key from the dashboard
- User pastes the key like:
HERENOW_API_KEY=their-key-here(saved to .env and redacted automatically) - Also save to credentials file:
mkdir -p ~/.herenow && grep '^HERENOW_API_KEY=' .env | cut -d= -f2- > ~/.herenow/credentials && chmod 600 ~/.herenow/credentials
Updating a deploy
npm run build
~/.agents/skills/here-now/scripts/publish.sh dist/ --slug <slug>
The slug is saved in .herenow/state.json after each publish — the script auto-loads it for updates.
Deploy script
Add to package.json:
{
"scripts": {
"deploy": "npm run build && ~/.agents/skills/here-now/scripts/publish.sh dist/"
}
}
For updates to an existing slug:
{
"scripts": {
"deploy": "npm run build && ~/.agents/skills/here-now/scripts/publish.sh dist/ --slug <slug>"
}
}
GitHub Pages Deployment (Alternative)
Use GitHub Pages when you need git-based deployment or already have a GitHub repo set up.
Prerequisites
- GitHub CLI installed (
gh) - Git repository initialized and pushed to GitHub
Quick Deploy
npm run build && npx gh-pages -d dist
Full Setup
- Build the game:
npm run build
- Ensure
vite.config.jshas the correct base path if deploying to a subdirectory:
export default defineConfig({
base: '/<repo-name>/',
// ... rest of config
});
- Deploy with GitHub CLI:
gh repo create <game-name> --public --source=. --push
npm install -D gh-pages
npx gh-pages -d dist
- Enable GitHub Pages in repo settings (should auto-detect the
gh-pagesbranch).
Your game is live at: https://<username>.github.io/<repo-name>/
Automated Deploys
Add to package.json:
{
"scripts": {
"deploy": "npm run build && npx gh-pages -d dist"
}
}
Play.fun Registration
After deploying, register your game on Play.fun for monetization. Use the /game-creator:playdotfun skill for integration details.
The deployed URL becomes your gameUrl when registering:
await client.games.register({
name: 'Your Game Name',
gameUrl: 'https://<slug>.here.now/', // or GitHub Pages URL
maxScorePerSession: 500,
maxSessionsPerDay: 20,
maxCumulativePointsPerDay: 5000
});
Other Hosting Options
- Vercel:
npx vercel --prod(auto-detects Vite) - Netlify: Connect repo, set build command to
npm run build, publish dir todist - Railway: Use the Railway skill for deployment
- itch.io: Upload the
dist/folder as an HTML5 game
Example Usage
Default (here.now)
/game-deploy
Result: Builds dist/ → publishes via here.now → game live at `https://
Install game-deploy in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the game-deploy skill do?
Deploy browser games to here.now (default), GitHub Pages, or other hosting. Use when deploying a game, setting up hosting, or publishing a game build. Do NOT use for local development servers (use npm run dev).
How do I install the game-deploy skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the game-deploy skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
ci-review
The scan that the plugin's GitHub Action runs.
by Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
by GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
by GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
by GitHub