This is ByteBrigadeAI/gamehub, adapted from
github-samples/tailspin-toys.
The upstream MIT license, authorship, and fictional sample data are preserved.
The default branch is demo-baseline; demo pull requests target that branch.
Before a session, run Actions > Prepare demo assets. It idempotently
creates missing issues and reuses review PRs. New PRs require the organization
and repository Actions permission plus create_pull_requests; otherwise the
summary provides a comparison link without attempting a forbidden API call.
Select restore_demo to restore only
curated source fixtures and reopen issues after a completed demo. Select
scan_security or scan_quality for a fresh real CodeQL scan. The run summary
links the assets. A labeled issue contains only generated, nonfunctional secret
patterns; change secret_revision for a fresh alert after resolving a prior one.
No live credentials are created or committed.
See the demo hub walkthrough for verified issue, PR, security, and quality finding links.
Upstream issue-bootstrap and agentic triage automation are removed so sessions do not unexpectedly create issues, commits, or paid agent runs. There are no scheduled workflows, recurring Dependabot updates, or automatic push/PR checks. CI and CodeQL are manual-only: Actions > select a workflow > Run workflow > choose the demo branch. Default-setup scanning is disabled to avoid duplicate or implicit recurring scans.
Start with the issues labeled demo:agent or the open PRs labeled demo:review.
CodeQL scans the source when manually requested. /security-lab/ is a separate,
intentionally vulnerable DOM XSS exercise, disabled unless ?enable=1 is passed.
It adds no server API and does not change the static catalog architecture.
src/lib/quality-lab.ts is a separate, intentionally flawed CodeQL quality
fixture, unused by the catalog and excluded from normal ESLint checks.
Do not publish the security lab on a public site or enter real data.
The organization walkthrough lives in ByteBrigadeAI/demo-hub.
Tailspin Toys is a crowdfunding platform for games with a developer theme. The project is a website for a fictional game crowd-funding company, built as a single Astro site (fully prerendered/static output) styled with Tailwind CSS. Its data lives in a local SQLite database accessed through Drizzle ORM and Node.js's built-in SQLite driver; pages query the database directly in frontmatter at build time, so there is no separate backend service.
- Astro 7 — pages, layouts, components, and routing.
output: 'static', so the whole site is prerendered to HTML at build time. - Drizzle ORM + Node SQLite — the data layer. The schema lives in
db/schema.ts; data is seeded fromdb/games.csv. Migrations are managed withdrizzle-kit. - Tailwind CSS v4 — styling via utility classes (dark theme).
- Vitest — unit tests for the data layer and pure transforms.
- Playwright — end-to-end tests run against the built static site.
Development commands are defined in package.json: npm runs Astro for the dev server, static build, and preview. The predev and prebuild npm hooks run the TypeScript database migration and seed tasks in db/, writing to the gitignored tailspin.db file.
The upstream is a GitHub template. This demo edition instead has curated GitHub
issues and PRs maintained independently in ByteBrigadeAI. Files retained in
.github/bootstrap-issues/ are upstream exercise references, not active automation.
Install dependencies once with Node.js 22.13 or later:
npm ci
npx playwright install chromium # only needed to run the E2E testsnpm run devpredev migrates and seeds the local database first. Then navigate to the website to see the site!
To preview a production build instead:
npm run build # prebuild migrates + seeds, then builds the static site
npm run previewThe SQLite database is built from db/games.csv — there is no live data to migrate.
npm run db:generate # generate a migration after editing db/schema.ts
npm run db:migrate # apply migrations
npm run db:seed # seed from games.csv (idempotent)
npm run db:setup # migrate + seed (run automatically by predev/prebuild)
npm run db:export # write the seeded catalog to db/catalog.jsonNote
Seeding is idempotent — it skips games that already exist (matched by title) rather than reconciling changed rows. CI always starts from a clean database, so it reflects games.csv exactly. Locally, if you edit or remove rows in games.csv, delete tailspin.db and re-run npm run db:setup to fully regenerate.
npm run test:unit # Vitest unit tests (transforms + data-access helpers)
npm run test:e2e # Playwright E2E tests (builds + previews the static site first)CI runs the E2E suite in the official Playwright container, with its image tag derived from the exact @playwright/test version in package-lock.json so the preinstalled browsers match the test runner.
The frontend uses ESLint to enforce code quality across TypeScript and Astro files. Run it with:
npm run lintESLint also runs in the manually dispatched Run tests workflow.
The project runs on TypeScript 7 (the native Go compiler, tsgo) for type checking, adopted side-by-side via the @typescript/native-preview package. The classic typescript package is intentionally kept at v6 so ESLint + typescript-eslint and astro check keep working unchanged — TypeScript 7's programmatic API isn't ready for those tools yet.
npm run typecheck # tsgo (TS 7) type-checks the pure TypeScript (db/, src/lib/, src/types/, configs, tests)
npm run typecheck:astro # astro sync + astro check type-check .astro files (on the classic TypeScript package)
npm run typecheck:all # both of the abovetsgo runs against tsconfig.tsgo.json, a scoped config that excludes .astro files (which the native compiler doesn't understand). Type checking also runs in the manually dispatched Run tests workflow.
Note
The native compiler is used only for type checking (--noEmit); the site is still built by astro build (Vite/esbuild). Keep the classic typescript package on v6 until typescript-eslint and @astrojs/check support the native API. Recurring Dependabot updates are disabled in this demo edition.
This project is licensed under the terms of the MIT open source license. Please refer to the LICENSE for the full terms.
You can find the list of maintainers in CODEOWNERS.
This project is provided as-is, and may be updated over time. If you have questions, please open an issue.
This app is not intended for use in a production environment, nor is it built as an example of what a production app should look like.