{"id":50777989,"url":"https://github.com/arthrod/redline-endpoint","last_synced_at":"2026-06-12T01:03:49.320Z","repository":{"id":360966449,"uuid":"1135264705","full_name":"arthrod/redline-endpoint","owner":"arthrod","description":"HTTP service that produces redlined DOCX diffs between two documents.","archived":false,"fork":false,"pushed_at":"2026-06-04T20:12:54.000Z","size":2963,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T22:07:24.563Z","etag":null,"topics":["diff","document-processing","docx","http-api","legal-tech","redline"],"latest_commit_sha":null,"homepage":null,"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/arthrod.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-01-15T21:33:21.000Z","updated_at":"2026-05-28T16:54:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arthrod/redline-endpoint","commit_stats":null,"previous_names":["arthrod/redline-endpoint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arthrod/redline-endpoint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthrod%2Fredline-endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthrod%2Fredline-endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthrod%2Fredline-endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthrod%2Fredline-endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthrod","download_url":"https://codeload.github.com/arthrod/redline-endpoint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthrod%2Fredline-endpoint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34224103,"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":["diff","document-processing","docx","http-api","legal-tech","redline"],"created_at":"2026-06-12T01:03:48.515Z","updated_at":"2026-06-12T01:03:49.315Z","avatar_url":"https://github.com/arthrod.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redline API\n\nA high-performance .NET API that compares two DOCX documents and returns a redlined document with tracked changes. Built with FastEndpoints for minimal overhead and maximum throughput.\n\n## Features\n\n- Compare two Word documents and generate a redlined version with tracked changes\n- Automatic cleanup of comparison artifacts for Word compatibility\n- Converts complex move operations to simple del/ins for maximum compatibility\n- JWT Bearer authentication support (configurable)\n- Docker-ready deployment\n\n## Tech Stack\n\n- **.NET 10** - Latest LTS runtime\n- **FastEndpoints** - High-performance minimal API framework\n- **Docxodus (WmlComparer)** - Document comparison engine\n- **DocumentFormat.OpenXml** - OOXML manipulation\n\n## Quick Start\n\n### Prerequisites\n\n- [.NET 10 SDK](https://dotnet.microsoft.com/download)\n- Docker (optional, for containerized deployment)\n\n### Run Locally\n\n```bash\ndotnet run\n```\n\nThe API will start on `http://localhost:9898` by default.\n\n### API Usage\n\n```bash\ncurl -X POST http://localhost:9898/api/compare \\\n  -F \"Original=@original.docx\" \\\n  -F \"Modified=@modified.docx\" \\\n  -F \"Author=Your Name\" \\\n  --output redlined.docx\n```\n\n#### Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `Original` | File | Yes | The original document |\n| `Modified` | File | Yes | The modified document |\n| `Author` | String | No | Author name for tracked changes (default: \"User\") |\n\n#### Response\n\nReturns the redlined DOCX file with tracked changes showing all differences between the two documents.\n\n## Docker Deployment\n\n### Build\n\n```bash\ndocker build -t redline-api .\n```\n\n### Run\n\n```bash\ndocker run -p 9898:9898 redline-api\n```\n\n### With Authentication\n\n```bash\ndocker run -p 9898:9898 -e Jwt__Secret=\"your-secret-key-min-32-chars\" redline-api\n```\n\n## Configuration\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `ASPNETCORE_URLS` | Server binding URLs | `http://+:9898` |\n| `ASPNETCORE_ENVIRONMENT` | Environment (Development/Production) | `Production` |\n| `Jwt__Secret` | JWT signing secret (min 32 chars) | - |\n\n### Enable Authentication\n\n1. Set the `Jwt__Secret` environment variable\n2. Remove `AllowAnonymous()` from `CompareDocumentsEndpoint.cs`\n3. Include `Authorization: Bearer \u003ctoken\u003e` header in requests\n\n## Project Structure\n\n```\n├── Program.cs                           # Application entry point\n├── Endpoints/Compare/\n│   └── CompareDocumentsEndpoint.cs      # Document comparison endpoint\n├── appsettings.json                     # Configuration\n├── Dockerfile                           # Container definition\n├── original.docx                        # Sample original document\n└── modified.docx                        # Sample modified document\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthrod%2Fredline-endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthrod%2Fredline-endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthrod%2Fredline-endpoint/lists"}