Template repository for entries to The Grok Hack (hackathon.grok.me), the global hackathon powered by Grok.
Click Use this template (or let the grokhack.com portal create your entry repo under github.com/Blockchains), fill in
submission.json and this README, and push. CI validates the submission, builds/tests your code and scans for secrets.
| File | What to do |
|---|---|
submission.json |
Project name, team, track/partner platform, demo links, Grok models + features used. Validated by CI against submission.schema.json. |
README.md |
Replace this text with your project write-up (sections below). |
starter/ |
Working Node 22 starter that calls the xAI API (streaming chat) with XAI_API_KEY. Keep, replace or delete. |
docs/JUDGING.md |
What judges look at. |
Problem · Solution · How Grok is used (models, tool calling, live search, structured outputs, vision, voice) · Partner platform integration · What was built during the hackathon · Run it locally · Demo video · Team · License
Never commit API keys. Use .env (git-ignored) locally and repository secrets in Actions. CI runs gitleaks on every push and fails on leaks.
python3 scripts/validate_submission.py submission.json
cd starter && npm ci && npm test && npm run e2e # e2e: live answer with XAI_API_KEY, otherwise checks api.x.ai rejects the call (needs key)License: MIT (template). Your entry may use any OSI licence; set it in submission.json and LICENSE.
For AI agents and builders: read
AGENTS.md(setup, commands, structure, rules),llms.txt(doc map) and the machine-readableblocks.json(schema). How all Blockchains blocks fit together: Build with Blocks · org catalogue: https://blockchains.github.io/blocks.json.
What it exports
| Export | Type | Install / access |
|---|---|---|
Use this template |
git | GitHub template |
submission.schema.json |
file | required: project, tagline, team, track, repo, grok, license, status |
starter/ |
file | cd starter && npm ci && npm test && npm run e2e |
Minimal example (from the README)
python3 scripts/validate_submission.py submission.json
cd starter && npm ci && npm test && npm run e2e # live answer with XAI_API_KEY, otherwise proves api.x.ai rejects the callInputs → outputs
- In:
submission.json(JSON) validated by scripts/validate_submission.py;XAI_API_KEY(secret) - Out:
validated entry repo(repo)
Composes with
- Blockchains/grokhack-forge: compose the app first, then submit with this template
- Blockchains/hackathon-entry-template: generic (non-Grok) hackathon template
- Blockchains/hackathons: tracker issues
Versioning & stability: stable. submission.schema.json changes are announced in the README; keep old fields readable.