{"id":29672618,"url":"https://github.com/penspanic/datra","last_synced_at":"2026-05-19T10:35:34.015Z","repository":{"id":305074831,"uuid":"1021820546","full_name":"penspanic/Datra","owner":"penspanic","description":"Datra is a comprehensive data management system for game development.","archived":false,"fork":false,"pushed_at":"2025-07-18T06:34:25.000Z","size":1093,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-18T07:31:06.708Z","etag":null,"topics":["data","game","game-development","gamedata","unity","unity-package","unity3d-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","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/penspanic.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}},"created_at":"2025-07-18T02:18:48.000Z","updated_at":"2025-07-18T06:34:28.000Z","dependencies_parsed_at":"2025-07-18T07:35:56.973Z","dependency_job_id":"4215b374-b5b7-4982-8c3f-5b7e23137d11","html_url":"https://github.com/penspanic/Datra","commit_stats":null,"previous_names":["penspanic/datra"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/penspanic/Datra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penspanic%2FDatra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penspanic%2FDatra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penspanic%2FDatra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penspanic%2FDatra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/penspanic","download_url":"https://codeload.github.com/penspanic/Datra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penspanic%2FDatra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266572701,"owners_count":23950074,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["data","game","game-development","gamedata","unity","unity-package","unity3d-plugin"],"created_at":"2025-07-22T21:06:41.387Z","updated_at":"2026-05-19T10:35:34.010Z","avatar_url":"https://github.com/penspanic.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datra\n\n[한국어](README.ko.md) | English\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![.NET](https://img.shields.io/badge/.NET%20Standard-2.1-blue.svg)](https://dotnet.microsoft.com/)\n[![Unity](https://img.shields.io/badge/Unity-2020.3+-black.svg)](https://unity.com/)\n\n**Datra** is a game data management system that uses C# Source Generators to automatically generate serialization code for CSV, JSON, and YAML data. Works seamlessly in both Unity and .NET environments.\n\n## Features\n\n- **Multiple Formats**: CSV, JSON, YAML with auto-detection\n- **Zero Boilerplate**: Source Generators eliminate manual serialization code\n- **Type Safety**: Compile-time validation with strong typing\n- **Data References**: Type-safe `DataRef\u003cT\u003e` for cross-table references\n- **Unity Integration**: Built-in Editor window with Table/Form views\n- **Localization**: Multi-language support with `LocaleRef`\n- **Advanced Types**: Nested structs, polymorphic JSON, arrays, enums\n\n## Quick Start\n\n### 1. Define Your Data Model\n\n```csharp\nusing Datra.Attributes;\nusing Datra.Interfaces;\n\n[TableData(\"Characters.csv\")]\npublic partial class CharacterData : ITableData\u003cstring\u003e\n{\n    public string Id { get; set; }\n    public string Name { get; set; }\n    public int Level { get; set; }\n    public int Health { get; set; }\n}\n\n[SingleData(\"GameConfig.json\")]\npublic partial class GameConfigData\n{\n    public string GameName { get; set; }\n    public int MaxLevel { get; set; }\n}\n```\n\n### 2. Configure the Data Context\n\n```csharp\n[assembly: DatraConfiguration(\"GameData\",\n    Namespace = \"MyGame.Generated\"  // Required\n)]\n```\n\n### 3. Load and Use Data\n\n```csharp\nvar provider = new FileRawDataProvider(\"path/to/data\");\nvar context = new GameDataContext(provider, new DataLoaderFactory());\n\nawait context.LoadAllAsync();\n\nvar hero = context.Character.GetById(\"hero_001\");\nvar config = context.GameConfig.Get();\n```\n\n## Installation\n\n### Unity\n\nAdd to `Packages/manifest.json`:\n```json\n{\n  \"dependencies\": {\n    \"com.penspanic.datra\": \"https://github.com/penspanic/Datra.git?path=Datra\",\n    \"com.penspanic.datra.editor\": \"https://github.com/penspanic/Datra.git?path=Datra.Editor\",\n    \"com.penspanic.datra.unity\": \"https://github.com/penspanic/Datra.git?path=Datra.Unity\"\n  }\n}\n```\n\n### .NET\n\nAdd project references:\n```xml\n\u003cProjectReference Include=\"path/to/Datra/Datra.csproj\" /\u003e\n\u003cProjectReference Include=\"path/to/Datra.Generators/Datra.Generators.csproj\"\n                  OutputItemType=\"Analyzer\"\n                  ReferenceOutputAssembly=\"false\" /\u003e\n```\n\n## Unity Editor\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/images/unity-editor-demo.gif\" alt=\"Unity Editor Demo\" width=\"100%\"\u003e\n\u003c/p\u003e\n\nThe Unity Editor window provides:\n- **Table View / Form View** for data editing\n- **Real-time change tracking** with save/revert\n- **Collection editors** for List, Dictionary, arrays\n- **DataRef selectors** with dropdown pickers\n- **Localization panel** for multi-language editing\n\nOpen via: `Window \u003e Datra \u003e Data Editor`\n\n## Project Structure\n\n```\nDatra/\n├── Datra/                  # Core runtime library\n├── Datra.Generators/       # Source Generator (compile-time)\n├── Datra.Analyzers/        # Roslyn Analyzers\n├── Datra.Editor/           # Shared editor utilities\n├── Datra.Unity/            # Unity packages (Runtime, Editor, Addressables)\n├── Datra.Tests/            # Unit tests\n└── Datra.SampleData/       # Sample data models\n```\n\n## Documentation\n\n- **[Features Guide](docs/FEATURES.md)** - Detailed feature documentation\n- **[Unity Guide](docs/UNITY.md)** - Unity integration guide\n- **[Developer Guide](CLAUDE.md)** - Internal development guide\n\n## License\n\nMIT License - see [LICENSE](LICENSE)\n\n## Links\n\n- [GitHub Repository](https://github.com/penspanic/Datra)\n- [Issues](https://github.com/penspanic/Datra/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenspanic%2Fdatra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpenspanic%2Fdatra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenspanic%2Fdatra/lists"}