{"id":31058411,"url":"https://github.com/fredericoo/sps","last_synced_at":"2025-10-14T23:59:47.829Z","repository":{"id":309428896,"uuid":"1036260396","full_name":"fredericoo/sps","owner":"fredericoo","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-12T16:07:20.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T21:06:09.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredericoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-08-11T20:00:27.000Z","updated_at":"2025-08-13T05:26:19.000Z","dependencies_parsed_at":"2025-08-11T22:07:09.969Z","dependency_job_id":"d68e9b2b-6070-4da1-b25f-bebcf7e240c9","html_url":"https://github.com/fredericoo/sps","commit_stats":null,"previous_names":["fredericoo/sps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fredericoo/sps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fsps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fsps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fsps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fsps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredericoo","download_url":"https://codeload.github.com/fredericoo/sps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fsps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225867,"owners_count":25427000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"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":[],"created_at":"2025-09-15T07:50:43.389Z","updated_at":"2025-10-14T23:59:42.779Z","avatar_url":"https://github.com/fredericoo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Salary per Second (sps)\n\nA tiny React + TypeScript app that shows how much you’ve earned so far today, updated every second, based on your salary and working hours.\n\nIt supports currency selection, monthly/yearly pay input, configurable shift start/end times, a day‑progress gauge, theme switching (system/light/dark), and persistent settings.\n\n## Quick start\n\nPrerequisites:\n\n- Node.js 18+\n- pnpm (`npm i -g pnpm`)\n\nInstall dependencies:\n\n```bash\npnpm install\n```\n\nStart the dev server:\n\n```bash\npnpm dev\n```\n\nBuild for production:\n\n```bash\npnpm build\n```\n\nPreview the production build locally:\n\n```bash\npnpm preview\n```\n\nLint the project:\n\n```bash\npnpm lint\n```\n\n## Features\n\n- Live earnings counter (updates every second)\n- Currency selector (common currencies)\n- Monthly or yearly pay\n- Configurable shift start/end time\n- Day progress gauge\n- Theme: system, light, dark\n- Settings persisted to `localStorage`\n- Updates document title with the live formatted amount\n\n## Tech stack\n\n- React 19 + TypeScript + Vite 7\n- Tailwind CSS 3 (`tailwindcss-animate`), CSS variables for theming\n- Radix UI primitives with custom wrappers in `src/components/ui`\n- Zustand (with `persist`) for settings storage\n- `@number-flow/react` for animated numeric formatting\n- `@suyalcinkaya/gauge` for the circular progress gauge\n- `lucide-react` icons\n- Path aliases via `vite-tsconfig-paths` and `tsconfig` paths (`@/*` → `src/*`)\n\n## Project structure\n\n```\nsrc/\n  App.tsx                # Main UI and logic (theme, settings, gauge, counters)\n  main.tsx               # App bootstrap\n  components/ui/*        # Button, input, sheet, select, etc. (Radix-based)\n  stores/settings.ts     # Zustand store (persisted)\n  index.css              # Tailwind base + CSS variables for themes\n```\n\n## Configuration and behavior\n\n- Theming\n  - Dark mode is toggled via the `dark` class on the root element.\n  - Preference is stored under `localStorage['theme']` as one of `system | light | dark`.\n  - CSS variables are defined in `index.css` and wired in `tailwind.config.js`.\n\n- Settings persistence\n  - Stored under `localStorage['sps-settings']` using Zustand `persist`.\n  - Defaults: `{ currency: 'USD', period: 'yearly', pay: 120000, shift: 09:00–17:00 }`.\n\n- Currency and formatting\n  - Display uses `Intl.NumberFormat` and `@number-flow/react` for smooth updates.\n\n- Path aliases\n  - Use imports like `@/components/...` and `@/stores/...`.\n\n## Deployment\n\nThis is a static site. Any static host works:\n\n1. Build: `pnpm build` → outputs to `dist/`.\n2. Deploy the `dist/` directory to your hosting provider (Vercel, Netlify, GitHub Pages, Cloudflare Pages, etc.).\n\n## Scripts\n\n- `pnpm dev` – Start Vite dev server\n- `pnpm build` – Type-check then build (`tsc -b \u0026\u0026 vite build`)\n- `pnpm preview` – Preview the production build\n- `pnpm lint` – Run ESLint\n\n## License\n\nNo license specified.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericoo%2Fsps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericoo%2Fsps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericoo%2Fsps/lists"}