Web-based touch typing app for software developers
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Rules tests run against the Firestore emulator. You need Java 11 or newer (Java 21 for firebase-tools 15 and newer).
yarn test:rules
Each exercise has a contentHash in exercise_details. Each hash has a record in content_hashes/{hash} that holds the slug. Run the backfill once to add these to existing exercises.
FIREBASE_SERVICE_ACCOUNT_JSON for a non-production Firebase project.node scripts/backfill-content-hashes.ts
--apply to write the data.node scripts/backfill-content-hashes.ts --apply
You can run the script more than once. It never overwrites an existing hash record. It never deletes or deactivates duplicates. It only reports them.
Run checks with yarn:
yarn lint
yarn build
Only admins can add or edit topics. Admins see a Topics link in the menu.
/topics. The page lists the topics with their slugs and sample counts. It shows 10 topics on each page. Use Previous and Next to change the page.An edit can change the title, the summary and the description. The slug stays the same, so the page address and the links to samples do not change. An edit never changes the sample counts or the status. PATCH /api/topics/[slug] is admin only. It returns 404 for an unknown topic.
/api/topics/api/topics/[slug] (PATCH)/api/exercises/api/exercises/[slug]/statusfirestore.rules.exercise_details or content_hashes. Only the Admin SDK writes them, through the API routes. Users cannot change their own username.POST /api/exercises/[slug]/status needs { "isActive": true | false } and is admin only. It sets that exact state. A repeated request changes nothing. It returns HTTP 400 when isActive is not a boolean and 404 for an unknown sample.POST /api/exercises rejects a sample when its content hash already exists. It returns HTTP 409. The check ignores the title, the slug and practice links. Line endings and trailing whitespace do not change the hash.The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Verification worker and drafting agent
https://github.com/97Afolabi/devtyping/issues/72
Labels: enhancement
Supporting API: topics, validate, expectedOutput, reviewer actions
https://github.com/97Afolabi/devtyping/issues/71
Labels: enhancement
Add PATCH /api/exercises/[slug] update route
https://github.com/97Afolabi/devtyping/issues/70
Labels: enhancement
Agent identity: requireSubmitter and env vars
https://github.com/97Afolabi/devtyping/issues/68
Labels: enhancement
Write touch typing instruction
https://github.com/97Afolabi/devtyping/issues/7
Labels: documentation, enhancement, help wanted, good first issue
Add timers
https://github.com/97Afolabi/devtyping/issues/6
Labels: help wanted, good first issue
Thanks for contributing an exercise. This repo is MIT-licensed, so every exercise needs a clear, compatible licence trail — that's what this document covers.
| Source | Licence | Use |
|---|---|---|
| Your own implementation | original | Preferred. No obligations. |
| TheAlgorithms/* | MIT | Code only — not the docs (some of those repos' docs are CC BY-SA). Retain the notice. |
| Exercism track repos | MIT | Exercise names and stubs. Retain the notice. |
| Permissive OSS (MIT/Apache-2.0) | per repo | Real-world code samples. Retain the notice. |
| Algorithm names (Wikipedia list, cp-algorithms nav, CLRS TOC) | n/a — ideas | Names and taxonomy only, never the prose. |
practiceLinks (see below).Every exercise is made of three independently-safe layers:
practiceLinks to point at where a similar problem lives.Every sample must meet these rules:
Every exercise requires a source block declaring where the code came from:
kind: "original" (you wrote it), "derived" (adapted from a permissively-licensed source), or "verbatim" (copied as-is from a permissively-licensed source)origin: "self" for original work, or the upstream repo/project (e.g. "TheAlgorithms/Go", "exercism/python")url (optional): link to the upstream file, if kind isn't "original"license: "MIT", "CC-BY-SA-4.0", "Apache-2.0", or "original"attribution (optional, required when license isn't "original"): the notice text to carry overIf you're linking to an external practice problem (LeetCode/HackerRank/Codewars/etc.), use the practiceLinks field rather than pasting another site's problem statement into the exercise:
label: the problem title only — no description, difficulty rating, or acceptance rateurl: link to the problemprovider: "leetcode", "hackerrank", "codewars", or "other"free: whether the problem is free to access — prefer free problems as the primary link