{"id":13490648,"url":"https://github.com/nsmith5/mjpeg","last_synced_at":"2025-07-18T02:39:29.967Z","repository":{"id":103593705,"uuid":"263481683","full_name":"nsmith5/mjpeg","owner":"nsmith5","description":"Motion JPEG streaming library for Golang","archived":false,"fork":false,"pushed_at":"2020-09-13T18:18:43.000Z","size":11,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-05T11:41:23.841Z","etag":null,"topics":["golang","mjpeg"],"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/nsmith5.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}},"created_at":"2020-05-13T00:09:32.000Z","updated_at":"2024-10-11T15:25:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8e98a2f-80b8-4569-98d4-8a31d7f1f57e","html_url":"https://github.com/nsmith5/mjpeg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmjpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmjpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmjpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmjpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsmith5","download_url":"https://codeload.github.com/nsmith5/mjpeg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251410151,"owners_count":21584973,"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","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":["golang","mjpeg"],"created_at":"2024-07-31T19:00:49.808Z","updated_at":"2025-04-29T00:30:28.296Z","avatar_url":"https://github.com/nsmith5.png","language":"Go","readme":"# Simple Motion JPEG Streaming\n\n| Docs   | Build |\n|:-------|:------|\n| [![GoDoc](https://godoc.org/github.com/nsmith5/mjpeg?status.svg)](https://godoc.org/github.com/nsmith5/mjpeg) | [![Build Status](https://cloud.drone.io/api/badges/nsmith5/mjpeg/status.svg)](https://cloud.drone.io/nsmith5/mjpeg) |\n\nSuper simple mjpeg streaming in Go.\n\n## Getting Started\n\nGet to package with `go get github.com/nsmith5/mjpeg`. An MJPeg stream\ncan be built using any function that takes no arguments and returns an image.\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"net/http\"\n\n    \"github.com/nsmith5/mjpeg\"\n)\n\nfunc main() {\n    stream := mjpeg.Handler{\n        Next: func()  (image.Image, error) {\n            img := image.NewGray(image.Rect(0, 0, 100, 100))\n            for i := 0; i \u003c 100; i++ {\n                for j := 0; j \u003c 100; j++ {\n                    n := rand.Intn(256)\n                    gray := color.Gray{uint8(n)}\n                    img.SetGray(i, j, gray)\n                }\n            }\n            return img, nil\n        },\n        Options: \u0026jpeg.Options{Quality: 80},\n    }\n\n    mux := http.NewServeMux()\n    mux.Handle(\"/stream\", stream)\n    log.Fatal(http.ListenAndServe(\":8080\", mux))\n}\n```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmith5%2Fmjpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsmith5%2Fmjpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmith5%2Fmjpeg/lists"}