{"id":41879589,"url":"https://github.com/egraba/role-play","last_synced_at":"2026-01-25T13:02:20.169Z","repository":{"id":64221639,"uuid":"547973815","full_name":"egraba/role-play","owner":"egraba","description":"Role playing game.","archived":false,"fork":false,"pushed_at":"2026-01-24T20:32:17.000Z","size":3963,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T21:40:13.494Z","etag":null,"topics":["django","game","python","role-playing-game"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egraba.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2022-10-08T17:20:43.000Z","updated_at":"2026-01-24T20:32:17.000Z","dependencies_parsed_at":"2025-11-28T10:09:09.989Z","dependency_job_id":null,"html_url":"https://github.com/egraba/role-play","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/egraba/role-play","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egraba%2Frole-play","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egraba%2Frole-play/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egraba%2Frole-play/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egraba%2Frole-play/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egraba","download_url":"https://codeload.github.com/egraba/role-play/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egraba%2Frole-play/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["django","game","python","role-playing-game"],"created_at":"2026-01-25T13:02:17.618Z","updated_at":"2026-01-25T13:02:20.156Z","avatar_url":"https://github.com/egraba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# role-play\n\n**A modern web-based platform for playing tabletop RPGs with friends — anywhere, anytime.**\n\n[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)\n[![CI status](https://github.com/egraba/role-play/actions/workflows/ci.yml/badge.svg)](https://github.com/egraba/role-play/actions)\n[![codecov](https://codecov.io/gh/egraba/role-play/graph/badge.svg?token=Z3E788461G)](https://codecov.io/gh/egraba/role-play)\n\n---\n\n## Why role-play?\n\nTired of coordinating schedules, hauling books, and losing character sheets? **role-play** brings your tabletop adventures online with real-time gameplay, so you can focus on what matters: epic stories and unforgettable moments with your party.\n\n## Features\n\n- **Character Management** — Create and customize characters with abilities, classes, races, skills, and equipment\n- **Real-time Combat** — Seamless turn-based combat with initiative tracking and dice rolls\n- **Integrated Dice Rolling** — Roll dice directly in the game with automatic modifiers\n- **Game Master Tools** — Powerful tools to run your campaigns, manage events, and guide the story\n- **AI-Enhanced Narratives** — Enrich your quests with AI-generated descriptions powered by Claude\n- **Live Updates** — WebSocket-powered real-time interactions between players and the Game Master\n\n\u003e **Note:** This project is under active development. New features are being added regularly!\n\n## How It Works\n\n### Roles\n\n**Game Master (DM)**\n- Creates and manages campaigns with synopsis, conflicts, and objectives\n- Invites players to join games\n- Controls game flow: starts the game, updates quests, initiates combat\n- Requests ability checks and saving throws from players\n- Uses AI to generate rich quest descriptions\n\n**Players**\n- Create characters with race, class, background, and equipment\n- Join games when invited by the Game Master\n- Respond to ability checks, saving throws, and initiative rolls\n- Participate in real-time chat and combat\n\n### Game Flow\n\n1. **Campaign Setup** — Game Master creates a campaign and game session\n2. **Character Creation** — Players create characters via a guided wizard\n3. **Invitations** — Game Master invites players (minimum 2 required to start)\n4. **Gameplay** — Real-time quests, rolls, and combat via WebSocket\n5. **Combat** — Initiative-based turn system with D\u0026D 5e mechanics\n\n## D\u0026D Rules Reference\n\nThis project implements tabletop RPG gameplay based on the **Dungeons \u0026 Dragons 5th Edition System Reference Document (SRD) version 5.2**, available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0) by Wizards of the Coast.\n\nThe SRD 5.2 includes content from the 2024 D\u0026D core rulebooks:\n- Updated class rules and progression\n- New species (Goliaths and Orcs)\n- Enhanced feats and backgrounds\n- Weapon Mastery mechanics\n- Updated monster statistics\n\n**Reference:** [D\u0026D Systems Reference Document 5.2](https://media.dndbeyond.com/compendium-images/srd/5.2/SRD_CC_v5.2.1.pdf)\n\n## Tech Stack\n\n| Layer | Technology |\n|-------|------------|\n| Backend | Python 3.14, Django 5.2 |\n| Real-time | Django Channels, WebSockets |\n| Background Tasks | Celery with Redis |\n| AI | Anthropic Claude API |\n| Database | PostgreSQL |\n| Task Runner | [Poe the Poet](https://github.com/nat-n/poethepoet) |\n\n## Project Structure\n\n```\nrole_play/\n├── character/    # Character creation, abilities, inventory, equipment\n├── game/         # Game engine, events, combat, WebSocket consumers\n├── master/       # Campaign management\n├── user/         # Custom user authentication\n└── ai/           # Claude AI integration for content generation\n```\n\nFor detailed architecture information, see [ARCHITECTURE.md](ARCHITECTURE.md).\n\n## Development\n\n### Prerequisites\n\n- Python 3.14+\n- PostgreSQL\n- Redis\n- [uv](https://github.com/astral-sh/uv) — Fast Python package installer\n- [Doppler](https://www.doppler.com/) — Secrets management\n\n### Getting Started\n\n```bash\n# Clone the repository\ngit clone https://github.com/egraba/role-play.git\ncd role-play\n\n# Install dependencies\nuv sync\n\n# Activate the virtual environment\nsource .venv/bin/activate\n\n# Set up database (migrate + load fixtures)\ndoppler run -- poe db-setup\n\n# Start the development server\ndoppler run -- poe run\n\n# In a separate terminal, start Celery worker\ndoppler run -- poe worker\n```\n\n### Common Tasks\n\n```bash\npoe run          # Start development server\npoe worker       # Start Celery worker\npoe test         # Run tests\npoe ci           # Run full CI locally (tests + lint + typecheck)\npoe db-setup     # Set up database (migrate + load fixtures)\n```\n\nRun `poe --help` to see all available tasks.\n\n## Contributing\n\nFor AI coding assistants working on this project, see [AGENTS.md](AGENTS.md) for guidelines and conventions.\n\n## License\n\nThis project is licensed under the [GNU Affero General Public License v3.0](LICENSE.md).\n\nGame rules and mechanics are based on the D\u0026D 5th Edition SRD 5.2, licensed under CC-BY-4.0 by Wizards of the Coast.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegraba%2Frole-play","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegraba%2Frole-play","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegraba%2Frole-play/lists"}