{"id":38939252,"url":"https://github.com/sonastea/misorter","last_synced_at":"2026-01-17T15:51:16.031Z","repository":{"id":53764090,"uuid":"521485549","full_name":"sonastea/misorter","owner":"sonastea","description":"Sort a list of items.","archived":false,"fork":false,"pushed_at":"2025-12-30T12:30:24.000Z","size":2576,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T03:54:32.482Z","etag":null,"topics":["css","kpop","list","modules","nextjs","prisma","sort","supabase","tailwindcss","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://misorter.com","language":"TypeScript","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/sonastea.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":"2022-08-05T03:06:46.000Z","updated_at":"2025-12-30T12:30:28.000Z","dependencies_parsed_at":"2023-12-01T03:27:38.468Z","dependency_job_id":"2245db86-ffa4-4cbe-a7ef-152cd8a63fc5","html_url":"https://github.com/sonastea/misorter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sonastea/misorter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonastea%2Fmisorter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonastea%2Fmisorter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonastea%2Fmisorter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonastea%2Fmisorter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonastea","download_url":"https://codeload.github.com/sonastea/misorter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonastea%2Fmisorter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["css","kpop","list","modules","nextjs","prisma","sort","supabase","tailwindcss","typescript","vercel"],"created_at":"2026-01-17T15:51:15.951Z","updated_at":"2026-01-17T15:51:16.019Z","avatar_url":"https://github.com/sonastea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# misorter\n\nA ranking and sorting application built with React, Vite, TanStack Router, and tRPC.\n\n## Tech Stack\n\n- **Frontend**: React 19, Vite, TanStack Router\n- **Backend**: tRPC, Prisma\n- **Database**: PostgreSQL\n- **Styling**: TailwindCSS\n- **State Management**: TanStack Query (React Query)\n\n## Getting Started\n\nFirst, install dependencies:\n\n```bash\nnpm install\n```\n\n### Development Mode\n\nFor local development, you need to run both frontend and backend:\n\n```bash\nnpm run dev\n```\n\nThis will start:\n\n- **Frontend** (Vite): [http://localhost:3000](http://localhost:3000) - React app with hot reload\n- **Worker** (Wrangler): [http://localhost:8787](http://localhost:8787) - Cloudflare Worker runtime\n\nYou can also run them separately:\n\n```bash\n# Run only the frontend\nnpm run dev:client\n\n# Run only the worker\nnpm run dev:worker\n```\n\n**Note:** The development setup uses Wrangler to run your Worker locally in the edge runtime, matching production exactly. The Vite dev server proxies `/trpc` requests to the Worker.\n\nYou can start editing the page by modifying `src/routes/index.tsx`. The page auto-updates as you edit the file.\n\n## Build\n\nTo create a production build:\n\n```bash\nnpm run build\n```\n\nTo preview the production build:\n\n```bash\nnpm run preview\n```\n\n## Environment Variables\n\nCopy `.env.example` to `.env` and fill in the required values:\n\n### Frontend (Client-side)\n\n- `VITE_API_URL` - (Optional) API endpoint URL for production. If not set, uses relative URLs\n- `VITE_CLIENT_ID` - Twitch API client ID\n- `VITE_CLIENT_SECRET` - Twitch API client secret\n\n### Backend (Worker)\n\n- `DATABASE_URL` - PostgreSQL database URL\n- `REDIS_URL` - Redis connection URL\n- `UPSTASH_REDIS_REST_URL` - Upstash Redis REST URL\n- `UPSTASH_REDIS_REST_TOKEN` - Upstash Redis token\n\n## Deployment\n\n### Production Options\n\n#### Option 1: Cloudflare Workers + Pages (Recommended)\n\nThis project is configured for Cloudflare deployment.\n\n**Deploy to Cloudflare:**\n\n```bash\n# Deploy production (worker + pages)\nnpm run deploy\n\n# Deploy preview/staging\nnpm run deploy:preview\n```\n\nThis deploys:\n\n- **Worker**: Your tRPC API to `misorter.com/trpc/*` (or `preview.misorter.com/trpc/*` for preview)\n- **Pages**: Your frontend to `misorter.com`\n\n**Benefits:**\n\n- ✅ No server management\n- ✅ Global edge deployment\n- ✅ Automatic scaling\n- ✅ No CORS issues (same subdomain)\n- ✅ Pay per use\n\nSee `DEPLOYMENT.md` for detailed deployment instructions.\n\n**Note:** This project is optimized for Cloudflare deployment. For other platforms, you may need to adapt the Worker code accordingly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonastea%2Fmisorter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonastea%2Fmisorter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonastea%2Fmisorter/lists"}