{"id":50762413,"url":"https://github.com/yashdev9274/playto-engine","last_synced_at":"2026-06-11T11:02:08.037Z","repository":{"id":354115302,"uuid":"1221442766","full_name":"yashdev9274/playto-engine","owner":"yashdev9274","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-27T06:50:20.000Z","size":10241,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T08:27:32.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://playto-engine-ten.vercel.app","language":"Python","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/yashdev9274.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-26T07:59:43.000Z","updated_at":"2026-04-27T06:50:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yashdev9274/playto-engine","commit_stats":null,"previous_names":["yashdev9274/playto-engine"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/yashdev9274/playto-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashdev9274%2Fplayto-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashdev9274%2Fplayto-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashdev9274%2Fplayto-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashdev9274%2Fplayto-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashdev9274","download_url":"https://codeload.github.com/yashdev9274/playto-engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashdev9274%2Fplayto-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34195117,"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-11T02:00:06.485Z","response_time":57,"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":"2026-06-11T11:02:07.388Z","updated_at":"2026-06-11T11:02:08.031Z","avatar_url":"https://github.com/yashdev9274.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playto Payout Engine\n\nA minimal payout engine for Indian agencies and freelancers to collect international payments.\n\n## Demo Video\n\n\n\nhttps://github.com/user-attachments/assets/d27c9a0a-8117-4e21-bcaf-a0ee85294200\n\n\n\n\u003cvideo controls width=\"100%\"\u003e\n  \u003csource src=\"playto-engine-demo.mp4\" type=\"video/mp4\"\u003e\n  Your browser does not support the video tag.\n\u003c/video\u003e\n\n*[Download demo video](playto-engine-demo.mp4)*\n\n---\n\n## Quick Start\n\n### Option A: Docker (Recommended)\n\n```bash\n# Start all services\ndocker-compose up --build\n\n# Seed database (in new terminal)\ndocker exec playto-web-1 python seed.py\n```\n\n**Access:**\n- Frontend: http://localhost:3000 (not included in Docker)\n- Backend API: http://localhost:8000\n- PostgreSQL: localhost:5432 (credentials: postgres/postgres)\n- Redis: localhost:6379\n\n**Stop:**\n```bash\ndocker-compose down\n```\n\n---\n\n### Option B: Local Development\n\n```bash\ncd backend\n\n# Create virtual environment\npython3 -m venv venv\nsource venv/bin/activate\n\n# Install dependencies\npip install -r requirements.txt\n\n# Run migrations\npython manage.py migrate\n\n# Seed database with test merchants\npython seed.py\n\n# Run server\npython manage.py runserver 8000\n\n# In another terminal - run Celery worker (optional, sync mode works for demo)\ncelery -A playto worker --loglevel=info\n```\n\n### Frontend Setup\n```bash\ncd frontend\n\n# Install dependencies\nnpm install\n\n# Run development server\nnpm run dev\n```\n\n### Access\n- Frontend: http://localhost:3000\n- Backend API: http://localhost:8000\n\n### Login Credentials\n\n| Merchant | Email | API Key |\n|----------|-------|---------|\n| Acme Agency | acme@example.com | 1b5e0f08f07ff0aeba3348503730e0870bd01ae8f31c3cdc3ef53b264a4ad23a |\n| TechFreelancer | tech@example.com | aac0345ce7bb1afad00383659f49257056ef6deb668ffe3ca2ec0e2e3cd70418 |\n| Design Studio | design@example.com | 077043f1b6fdbc0edc621ac7ebac96228d0637fd334dfd33f3f7f704a5f5e47b |\n\n## API Endpoints\n\n| Method | Endpoint | Description |\n|--------|-----------|--------------|\n| GET | `/api/v1/merchants/me/balance` | Get merchant balance |\n| GET | `/api/v1/merchants/me/ledger` | Get transaction history |\n| POST | `/api/v1/merchants/me/ledger/add-funds` | Add funds (credit) |\n| GET | `/api/v1/payouts` | List payouts |\n| POST | `/api/v1/payouts` | Create payout |\n\n## Tech Stack\n\n- **Backend**: Django + DRF (Python)\n- **Frontend**: Next.js 14 + Tailwind CSS\n- **Database**: PostgreSQL (SQLite for dev)\n- **Background Jobs**: Celery\n\n## Features\n\n- Paise-based integer balance (no floats)\n- Idempotent payout requests with UUID keys\n- Concurrent payout protection with SELECT FOR UPDATE\n- Automatic fund return on payout failure\n- State machine for payout lifecycle\n\n## Tests\n\n```bash\n# Run concurrency test\npython -m pytest tests/test_concurrency.py -v\n\n# Run idempotency test\npython -m pytest tests/test_idempotency.py -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashdev9274%2Fplayto-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashdev9274%2Fplayto-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashdev9274%2Fplayto-engine/lists"}