Turn any codebase into beautiful architecture diagrams — one command, no AI, no server, runs on any laptop. Zero dependencies, pure Python, agent-friendly (Cursor, Claude Code, Codex, OpenCode).
bugdrop-portfolio
v1.5.0An interactive developer portfolio that turns real-world bugs into superpowers through a gamified vending machine. Built with HTML, CSS, JavaScript and AWS Amplify.
- Stars
- 1
- Forks
- 0
- Created
- Nov 2, 2026
- Last push
- Nov 2, 2026
- Last commit
- Nov 2, 2026
- Latest release
- v1.5.0
README
dsk-dev-ai/bugdrop-portfolioBUG DROP — The Superpower Vending Machine
A personal portfolio for the AWS Student Builder Challenge: Build Your Tech Superpower. Instead of listing skills, BUG DROP dispenses the superpowers I earned from real bugs: every capsule opens as an incident postmortem (incident → root cause → fix → lesson → the project it made possible).
- Live site: https://main.d37v5f104dujlp.amplifyapp.com
- Repo:
https://github.com/dsk-dev-ai/bugdrop-portfolio - Built with: HTML, CSS, vanilla JavaScript
- Hosted on: AWS Amplify Hosting (+ optional API Gateway / Lambda / DynamoDB counter)
The creative feature
- A blinking "PULL FOR A SUPERPOWER" hint points at the lever.
- Pulling the lever shakes the machine and drops a capsule.
- The capsule opens an incident postmortem card with a real bug, its root cause, the fix, the lesson, and the project that came out of it.
- The third pull unlocks a secret capsule.
- Opened capsules are saved to a capsule cabinet with a progress bar, so the collection can be revisited later.
- An unlocked profile turns the collection into domain bars (Debugging, APIs, Data, Deploy, Frontend, Security, Accessibility, Mindset) as capsules open.
- Every postmortem has a shareable deep link (
#capsule=c03) and a copy-link button; the cabinet can open a capsule without pulling again. - Export unlocked downloads the opened postmortems as Markdown, and Reset local progress replays the machine without touching the AWS counter.
- The lever is a real
<button>and works with mouse, touch, keyboard, and screen readers. - No camera, no permissions, no external API keys — the feature works even if the network API is down.
Core portfolio sections
- About Me — who I am and how I learn.
- Skills / Tech Superpowers — powers framed as things earned, not just listed.
- Projects / Achievements — projects with the bug stories behind them.
- Under the hood — a visible AWS architecture diagram, the service map, and links to the SAM template and deploy runbook.
Project structure
bugdrop-portfolio/
├─ index.html # single-page portfolio
├─ 404.html # branded not-found page
├─ manifest.webmanifest # installable web app metadata
├─ assets/
│ ├─ css/style.css # theme + responsive layout + animations
│ ├─ js/config.js # API base URL + GitHub link (edit this)
│ ├─ js/core.js # pure helpers: deep links, cabinet, progress
│ ├─ js/machine.js # vending machine + postmortem modal
│ ├─ js/app.js # navigation
│ ├─ js/capsules.json # ← your bug stories live here
│ └─ img/
│ ├─ og-cover.png # 1200x675 social cover (generated)
│ ├─ og-cover.svg # editable source for the cover
│ ├─ icon.svg # vector app icon
│ └─ icon-512.png # maskable app icon
├─ backend/
│ ├─ template.yaml # AWS SAM: HTTP API + Lambda + DynamoDB
│ └─ src/
│ ├─ handler.mjs # /pull /stats /daily
│ ├─ lib.mjs # pure helpers (routing, day-of-year, daily pick)
│ └─ capsules.json # mirror used by /daily
├─ docs/
│ ├─ architecture.svg # architecture diagram for the submission
│ ├─ feature-flow.svg # bug → superpower flow diagram
│ ├─ screenshots/ # put your screenshots here
│ ├─ DEPLOY.md # Amplify + SAM deployment runbook
│ ├─ PULL_REQUEST_v1.0.0.md # release PR description
│ └─ SUBMISSION.md # write-up ready to paste into Builder Center
├─ tests/ # node:test suite (33 tests)
├─ .github/
│ ├─ workflows/ci.yml # GitHub Actions: tests + lint + links + Lighthouse
│ └─ PULL_REQUEST_TEMPLATE.md
├─ amplify.yml # Amplify Hosting build config
├─ .nvmrc # Node 24 for local/CI parity
├─ package.json # dev tooling only (not needed at runtime)
└─ README.md
1. Run locally
npm install
npm run serve # http://localhost:8080
Or with no dependencies:
python3 -m http.server 8080
Open it through a server, not
file://, socapsules.jsoncan be fetched.
2. Make it yours
Edit assets/js/capsules.json:
{
"capsules": [
{
"id": "c01",
"superpower": "The 2AM Debugger",
"bug": "What actually broke.",
"cause": "Why it broke.",
"fix": "How you fixed it.",
"lesson": "What you now always do.",
"project": "What it helped you build.",
"domain": "Debugging",
"evidence": "commit / screenshot / link"
}
],
"secret": { "id": "secret", "superpower": "...", "bug": "...", "cause": "...", "fix": "...", "lesson": "...", "project": "...", "evidence": "..." }
}
Also update:
index.html— name, About text, skills, projects, GitHub links.assets/js/config.js—githubURL and, after backend deploy,apiBase.
3. Deploy to AWS Amplify Hosting (required)
The full checklist, verification steps, and troubleshooting live in
docs/DEPLOY.md.
- Push this folder to a public GitHub repository.
- AWS Console → Amplify → Create new app → Host web app.
- Connect GitHub → choose the repo and the
mainbranch. - Amplify reads
amplify.ymlautomatically → Save and deploy. - Copy the live URL (
https://main.xxxxxxxx.amplifyapp.com). - Amplify serves the branded
404.htmlfor unknown paths; no rewrite is needed for this single-page static site. - Optional: App settings → Previews to build pull requests, and Domain management for a custom domain.
Keep the app running through November 23 (judging window).
4. Optional AWS serverless counter
Adds a real serverless backend to the creative feature: a global "capsules pulled" counter and a daily superpower.
Managed Builder Center projects: the “Future Unicorn” project uses a Service Control Policy that denies CloudFormation, Lambda, API Gateway, and DynamoDB creation. SAM cannot deploy there. Submit the Amplify-only site; the counter is optional. Deploy this backend only from a standalone AWS account.
cd backend
sam build
sam deploy --guided
# Stack name: bugdrop-api
# AllowedOrigin: https://main.xxxxxxxx.amplifyapp.com
Then copy the ApiBaseUrl output into assets/js/config.js:
window.BUGDROP_CONFIG = {
apiBase: "https://abc123.execute-api.us-east-1.amazonaws.com",
github: "https://github.com/dsk-dev-ai"
};
Push again; Amplify redeploys. The machine calls:
| Method | Path | Purpose |
|---|---|---|
POST |
/pull |
Atomically increments the global counter |
GET |
/stats |
Reads the global counter |
GET |
/daily |
Returns a deterministic "superpower of the day" |
If the API is unreachable, the site silently falls back to a local count — the creative feature never breaks.
AWS services used (for the write-up)
Live:
- AWS Amplify Hosting — build + deploy from GitHub, HTTPS, live URL.
- Amazon CloudFront — global CDN delivered by Amplify.
- Amazon S3 — Amplify-managed build artifacts and site assets.
- AWS IAM — Amplify-managed service role.
- AWS Budgets — cost alarm (set this in the console).
Optional backend (in repo, not deployed in the managed project):
- Amazon API Gateway (HTTP API) — the
/pull,/stats,/dailyendpoints. - AWS Lambda (Node.js 24) — counter and daily logic.
- Amazon DynamoDB —
capsule_statstable, atomic counter item. - AWS IAM — least-privilege role generated by SAM.
- Amazon CloudWatch — Lambda logs.
5. CI/CD
- Continuous deployment: every push to
maintriggers an Amplify build and deploy. - Pull request previews: enable in Amplify → Previews.
- GitHub Actions (
.github/workflows/ci.yml):html-validate— HTML correctness and accessibility hints- ESLint — JavaScript
- Stylelint — CSS
- Linkinator — broken local links
- Lighthouse CI — performance, accessibility, best practices, SEO
Run locally:
npm run lint
npm test
npm run serve
npm run links
npm run lighthouse
6. Tests
The test suite runs on Node's built-in test runner (no extra dependencies):
npm test
It checks:
- the capsule dataset schema, unique ids, and the secret capsule (
tests/capsules.test.mjs) - the backend mirror matches the frontend data
- required sections, the visible hint, and the dialog live region exist in
index.html - every local asset referenced by
index.htmlexists - deep-link parsing, cabinet progress, domain tallies, Markdown export,
deduplication, and capsule lookup (
tests/core.test.mjs) - metadata, the raster social cover (1200×675), the manifest and its icons, the
404 page, and the deploy runbook (
tests/site.test.mjs) dayOfYear,dailyCapsule,routeOf, andreplybehave correctly (tests/lib.test.mjs)
7. Submitting
Fill the Builder Center Create a project form using docs/SUBMISSION.md.
You need:
- Live AWS URL
- Public GitHub repo URL
- Write-up + screenshots (portfolio and AWS implementation)
- Tags:
aws-amplify,javascript,serverless,aws-lambda,student-builders
License
MIT — see LICENSE.
Related projects
Free, private image-to-text (OCR). Web UI, REST API & CLI in one repo — FastAPI + RapidOCR (ONNX). No API keys, nothing stored.
Open-source AI platform for genomics & bioinformatics — 18 free public genome research tools
381 merged pull requests across 30 repositories · data generated Dec 1, 2026