{"id":30210073,"url":"https://github.com/syntaxsdev/mediaflow","last_synced_at":"2026-06-19T01:31:38.862Z","repository":{"id":308039332,"uuid":"1030678255","full_name":"syntaxsdev/mediaflow","owner":"syntaxsdev","description":"Lightweight Service for processing and serving media for CDN ready applications","archived":false,"fork":false,"pushed_at":"2026-05-10T20:14:55.000Z","size":14917,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-10T21:33:12.539Z","etag":null,"topics":["aws","cdn","image-processing","media-server","s3","webp"],"latest_commit_sha":null,"homepage":"","language":"Go","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/syntaxsdev.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-02T05:02:47.000Z","updated_at":"2026-05-10T20:14:59.000Z","dependencies_parsed_at":"2025-08-25T03:37:50.920Z","dependency_job_id":null,"html_url":"https://github.com/syntaxsdev/mediaflow","commit_stats":null,"previous_names":["syntaxsdev/mediaflow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/syntaxsdev/mediaflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxsdev%2Fmediaflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxsdev%2Fmediaflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxsdev%2Fmediaflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxsdev%2Fmediaflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntaxsdev","download_url":"https://codeload.github.com/syntaxsdev/mediaflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxsdev%2Fmediaflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34514282,"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-18T02:00:06.871Z","response_time":128,"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":["aws","cdn","image-processing","media-server","s3","webp"],"created_at":"2025-08-13T19:57:01.994Z","updated_at":"2026-06-19T01:31:38.852Z","avatar_url":"https://github.com/syntaxsdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MediaFlow\n\nA lightweight Go service that handles media uploads, validation, and serving. Backed by S3/R2 by default; can route video uploads directly to Cloudflare Stream.\n\n## What it does\n\n- **Presigned uploads** — secure direct-to-S3 (or direct-to-Stream) uploads with profile-driven validation\n- **Image processing** — on-demand thumbnails with WebP/JPEG/PNG output\n- **Video probe** — validates duration, dimensions, and codec against profile constraints (ffprobe for R2, Stream API for Stream)\n- **Cloudflare Stream delivery** — opt-in per profile, bytes go straight to Stream with no R2 round-trip\n\n## Quick start\n\n```bash\ngit clone https://github.com/syntaxsdev/mediaflow\ncd mediaflow\ncp .env.example .env  # set S3_BUCKET + AWS / R2 credentials\ngo mod download\nmake run            # or `make run-air` for hot reload\n```\n\nOr via Docker:\n\n```bash\ndocker run -p 8080:8080 \\\n  -e S3_BUCKET=your-bucket-name \\\n  -e AWS_ACCESS_KEY_ID=your-key \\\n  -e AWS_SECRET_ACCESS_KEY=your-secret \\\n  -v $(pwd)/storage-config.yaml:/app/storage-config.yaml \\\n  syntaxsdev/mediaflow:latest\n```\n\n## Documentation\n\n- [API reference](docs/api.md) — endpoints, request/response shapes, error codes\n- [Configuration](docs/configuration.md) — `storage-config.yaml` profiles, fields, env vars\n- [Cloudflare Stream delivery](docs/stream.md) — opt-in flow for video profiles\n- [Deployment](docs/deployment.md) — Docker, ECS, IAM, R2, lifecycle rules\n\n## Make targets\n\n- `make run` — build and run\n- `make run-air` — hot reload via [Air](https://github.com/cosmtrek/air)\n- `make build` — build the binary\n- `make build-image` — build the Docker image\n- `make clean` — remove artifacts\n\n## Prerequisites\n\n- Go 1.24.5+\n- ffmpeg (only if any profile is `kind: video` and `delivery` is *not* `stream` — the runtime image already includes it)\n\n## Contributing\n\n1. Fork\n2. Create a feature branch\n3. Make changes (add tests where applicable)\n4. Open a PR\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxsdev%2Fmediaflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntaxsdev%2Fmediaflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxsdev%2Fmediaflow/lists"}