{"id":15452361,"url":"https://github.com/cryptix/canvasstreamtest","last_synced_at":"2025-09-02T21:50:14.924Z","repository":{"id":12041242,"uuid":"14626766","full_name":"cryptix/CanvasStreamTest","owner":"cryptix","description":"Example of sending server drawn canvases to a browser","archived":false,"fork":false,"pushed_at":"2013-11-30T15:31:41.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T10:27:21.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rcmadruga/log4c-localtime","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptix.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}},"created_at":"2013-11-22T19:04:51.000Z","updated_at":"2013-11-30T15:31:42.000Z","dependencies_parsed_at":"2022-08-24T13:46:22.332Z","dependency_job_id":null,"html_url":"https://github.com/cryptix/CanvasStreamTest","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/cryptix%2FCanvasStreamTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2FCanvasStreamTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2FCanvasStreamTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2FCanvasStreamTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptix","download_url":"https://codeload.github.com/cryptix/CanvasStreamTest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009029,"owners_count":20708880,"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":[],"created_at":"2024-10-01T21:42:11.352Z","updated_at":"2025-03-28T09:42:28.624Z","avatar_url":"https://github.com/cryptix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"CanvasStreamTest\n================\n\nAfter reading [Intro to (images in) Go](http://www.pheelicks.com/2013/10/intro-to-images-in-go/) by [@pheelicks](https://twitter.com/@pheeelicks) I started thinking about a better approach to stream the canvas to the browser.\n~~Using [data URIs](http://en.wikipedia.org/wiki/Data_URI_scheme), this is quite simple. I hammered together the Nodes example with my approach as a showcase.~~\nI don't use base64 data URIs anymore because it adds a lot of overhead. Instead I serve the image in a 2nd handler and just update the img.src attribute with a unused parameter so the browser dosn't cache it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptix%2Fcanvasstreamtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptix%2Fcanvasstreamtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptix%2Fcanvasstreamtest/lists"}