{"id":27891713,"url":"https://github.com/mozzius/delphi","last_synced_at":"2025-10-10T21:42:50.799Z","repository":{"id":281682352,"uuid":"941575659","full_name":"mozzius/delphi","owner":"mozzius","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-02T18:24:32.000Z","size":1162,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T08:44:19.347Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozzius.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}},"created_at":"2025-03-02T16:09:42.000Z","updated_at":"2025-03-03T10:48:47.000Z","dependencies_parsed_at":"2025-03-10T16:02:16.716Z","dependency_job_id":"1fbc98c5-bc95-4a97-a113-3dca6ac307c1","html_url":"https://github.com/mozzius/delphi","commit_stats":null,"previous_names":["mozzius/delphi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mozzius/delphi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozzius%2Fdelphi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozzius%2Fdelphi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozzius%2Fdelphi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozzius%2Fdelphi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozzius","download_url":"https://codeload.github.com/mozzius/delphi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozzius%2Fdelphi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005421,"owners_count":26083883,"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-10-10T02:00:06.843Z","response_time":62,"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-05-05T12:11:26.796Z","updated_at":"2025-10-10T21:42:50.773Z","avatar_url":"https://github.com/mozzius.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delphi\n\nAn awards prediction game built with React and the AT Protocol.\n\nThis is a React implementation of the [example application](https://atproto.com/guides/applications) covering:\n\n- Signin via OAuth\n- Fetch information about users (profiles)\n- Listen to the network firehose for new data\n- Publish data on the user's account using a custom schema\n\n## Structure\n\n- `packages/appview` - Express.js backend that serves API endpoints\n- `packages/client` - React frontend using Vite\n\n## Development\n\n```bash\n# Install dependencies\npnpm install\n\npnpm dev\n```\n\n### Additional Commands\n\n```bash\n# Build commands\npnpm build           # Build in correct order: lexicon → client → appview\npnpm build:lexicon   # Build only the lexicon package (type definitions)\npnpm build:client    # Build only the frontend\npnpm build:appview   # Build only the backend\n\n# Start commands\npnpm start           # Start the server (serves API and frontend)\npnpm start:client    # Start frontend development server only\npnpm start:dev       # Start both backend and frontend separately (development only)\n\n# Other utilities\npnpm typecheck       # Run type checking\npnpm format          # Format all code\n```\n\n## Deployment\n\nFor production deployment:\n\n1. Build all packages in the correct order:\n\n   ```bash\n   pnpm build\n   ```\n\n   This will:\n\n   - Build the lexicon package first (shared type definitions)\n   - Build the frontend (`packages/client`) next\n   - Finally build the backend (`packages/appview`)\n\n2. Start the server:\n   ```bash\n   pnpm start\n   ```\n\nThe backend server will:\n\n- Serve the API at `/api/*` endpoints\n- Serve the frontend static files from the client's build directory\n- Handle client-side routing by serving index.html for all non-API routes\n\nThis simplifies deployment to a single process that handles both the API and serves the frontend assets.\n\n## Environment Variables\n\nCopy the `.env.template` file in the appview to `.env`:\n\n```\ncd packages/appview\ncp .env.template .env\n```\n\n## Requirements\n\n- Node.js 18+\n- pnpm 9+\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozzius%2Fdelphi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozzius%2Fdelphi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozzius%2Fdelphi/lists"}