{"id":50680710,"url":"https://github.com/bkowshik/flashcards","last_synced_at":"2026-06-08T18:32:57.652Z","repository":{"id":360623681,"uuid":"1250953287","full_name":"bkowshik/flashcards","owner":"bkowshik","description":"📇 A fast, fully client-side flashcard tool. No login, no server, no analytics.","archived":false,"fork":false,"pushed_at":"2026-05-27T07:08:58.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T08:16:58.933Z","etag":null,"topics":["client-side","flashcards","svelte","webapp"],"latest_commit_sha":null,"homepage":"https://flashcards.bkowshik.in","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkowshik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-27T05:40:09.000Z","updated_at":"2026-05-27T07:09:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bkowshik/flashcards","commit_stats":null,"previous_names":["bkowshik/flashcards"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bkowshik/flashcards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkowshik%2Fflashcards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkowshik%2Fflashcards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkowshik%2Fflashcards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkowshik%2Fflashcards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkowshik","download_url":"https://codeload.github.com/bkowshik/flashcards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkowshik%2Fflashcards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34075956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-side","flashcards","svelte","webapp"],"created_at":"2026-06-08T18:32:55.193Z","updated_at":"2026-06-08T18:32:57.647Z","avatar_url":"https://github.com/bkowshik.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📇 flashcards\n\nA fast, fully client-side flashcard tool. No login, no server, no analytics. Cards live in your browser; export the whole library to JSON any time.\n\n- **Live:** \u003chttps://flashcards.bkowshik.in\u003e\n- **Source:** \u003chttps://github.com/bkowshik/flashcards\u003e\n\n## Quick start\n\nRequires Node 20+ and npm.\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpens at `http://localhost:5173` with hot module reload.\n\n## Scripts\n\n| Command | What it does |\n|---|---|\n| `npm run dev` | Vite dev server with HMR |\n| `npm run build` | Production build → `dist/` |\n| `npm run preview` | Serve the production build locally |\n| `npm run check` | `svelte-check` (types + Svelte diagnostics) |\n\n## Stack\n\n- **[Vite](https://vite.dev)** — build tool and dev server with HMR.\n- **[Svelte 5](https://svelte.dev)** — UI framework with the runes API.\n- **TypeScript** — type safety across the app.\n- **[`idb-keyval`](https://github.com/jakearchibald/idb-keyval)** — tiny IndexedDB wrapper for local card storage.\n- **[`marked`](https://marked.js.org) + [`DOMPurify`](https://github.com/cure53/DOMPurify)** — markdown rendering, sanitized.\n- **[Geist Sans + Geist Mono](https://vercel.com/font)** — self-hosted via [Fontsource](https://fontsource.org).\n\nBuilds to **~46 KB gzipped JS** + ~3.5 KB CSS, under the 50 KB target.\n\n## Project layout\n\n```\nsrc/\n├── App.svelte            ← top-level layout + view switch\n├── app.css               ← CSS tokens, shared button system, base styles\n├── main.ts               ← font imports, mount()\n├── components/\n│   └── Header.svelte     ← brand + nav tabs\n├── lib/\n│   ├── router.ts         ← hash-based router\n│   ├── storage.ts        ← IndexedDB get/save/delete\n│   ├── markdown.ts       ← marked + DOMPurify\n│   ├── theme.ts          ← light / dark / system\n│   ├── shortcuts.ts      ← global g-chord nav handler\n│   ├── keyboard-help.ts  ← shortcut reference rendered on About\n│   ├── export.ts         ← JSON backup download\n│   ├── import.ts         ← JSON merge restore\n│   ├── id.ts             ← URL-safe 8-char id generator\n│   └── types.ts          ← Card type\n└── views/\n    ├── Add.svelte        ← capture / edit a card\n    ├── Browse.svelte     ← list, export, import, delete\n    ├── Quiz.svelte       ← shuffled queue with flip animation\n    └── About.svelte      ← intro, settings, shortcuts, data location\n```\n\n## Routes\n\n- `#/add` — capture a new card (default)\n- `#/edit/:id` — edit an existing card\n- `#/browse` — list of all cards\n- `#/quiz` — flip through a shuffled queue\n- `#/about` — intro, theme picker, keyboard shortcuts, data location\n\n## Keyboard\n\nNav is Gmail-style chord shortcuts: `g a` (Add) · `g b` (Browse) · `g q` (Quiz). Quiz: `Space` to flip, `n`/`p` (or `→`/`←`) to navigate, `e` to edit. Save in Add is `⌘/Ctrl + Enter`; `Esc` clears or cancels.\n\nFull list on the [About page](https://flashcards.bkowshik.in/#/about).\n\n## Data\n\nCards live in your browser's IndexedDB under the `flashcards` database. Nothing is sent anywhere.\n\n- **Export** (Browse) — download the whole library as JSON.\n- **Import** (Browse) — merge a JSON file back in.\n- Wipe everything: DevTools → Application → IndexedDB → `flashcards` → Delete database.\n\n## Deploy\n\nHosted on [Cloudflare Pages](https://pages.cloudflare.com) with Git integration — every push to `main` rebuilds and ships.\n\n| Setting | Value |\n|---|---|\n| Build command | `npm run build` |\n| Build output | `dist/` |\n| Node version | `20` (via `NODE_VERSION` env var) |\n\n## License\n\n[MIT](LICENSE) © 2026 Bhargav Kowshik.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkowshik%2Fflashcards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkowshik%2Fflashcards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkowshik%2Fflashcards/lists"}