{"id":16179756,"url":"https://github.com/bep/twittercard-proxy","last_synced_at":"2025-09-20T11:21:09.820Z","repository":{"id":148330387,"uuid":"94968936","full_name":"bep/twittercard-proxy","owner":"bep","description":"Create pretty Twitter Cards for your GitHub releases etc.","archived":false,"fork":false,"pushed_at":"2017-06-22T22:25:57.000Z","size":23,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T21:08:12.889Z","etag":null,"topics":["go","golang","twitter-cards"],"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/bep.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}},"created_at":"2017-06-21T06:07:37.000Z","updated_at":"2023-01-14T20:36:27.000Z","dependencies_parsed_at":"2023-05-19T19:30:25.325Z","dependency_job_id":null,"html_url":"https://github.com/bep/twittercard-proxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bep/twittercard-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftwittercard-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftwittercard-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftwittercard-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftwittercard-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bep","download_url":"https://codeload.github.com/bep/twittercard-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftwittercard-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276085318,"owners_count":25582530,"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-09-20T02:00:10.207Z","response_time":63,"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":["go","golang","twitter-cards"],"created_at":"2024-10-10T05:43:58.030Z","updated_at":"2025-09-20T11:21:09.793Z","avatar_url":"https://github.com/bep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Card Proxy\n\n[![*Nix Build Status](https://travis-ci.org/bep/twittercard-proxy.svg)](https://travis-ci.org/bep/twittercard-proxy)\n[![CircleCI](https://circleci.com/gh/bep/twittercard-proxy.svg?style=svg)](https://circleci.com/gh/bep/twittercard-proxy)\n[![Windows Build status](https://ci.appveyor.com/api/projects/status/v9bbybn1n6y2k5xc?svg=true)](https://ci.appveyor.com/project/bep/twittercard-proxy)\n[![GoDoc](https://godoc.org/github.com/bep/twittercard-proxy?status.svg)](https://godoc.org/github.com/bep/twittercard-proxy)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bep/twittercard-proxy)](https://goreportcard.com/report/github.com/bep/twittercard-proxy)\n\n![Hugo 0.24 Tweet](https://s9.postimg.org/hvepyc1vz/hugo-024-tweet.png \"Hugo 0.24 Tweet\")\n\nThe above screenshot is the single motivation behind this tool: To get [nicer looking](https://twitter.com/GoHugoIO/status/877500564405444608) Twitter cards when announcing GitHub-releases. GitHub provides some Twitter metadata, but it is for your account only, and just linking to the release page gets you a [rather blend](https://twitter.com/GoHugoIO/status/875629224228306944) Twitter card.\n\n## Install\n\nDownload a binary from [releases](https://github.com/bep/twittercard-proxy/releases).\n\n**twittercard-proxy** is a Go application, so you can also easiliy compile it yourself or intall it is via `go get`:\n\n```bash\n go get -v github.com/bep/twittercard-proxy\n```\n \n## Use\n\n```bash\n▶ ./twittercard-proxy -h\nUsage of ./twittercard-proxy:\n  -f string\n    \tThe JSON filename with twitter cards (default \"./twittercards.json\")\n  -http string\n    \tThe HTTP listen address (default \"0.0.0.0:1414\"\n```\n\nTo add or modify Twitter cards, just edit the `JSON` file and send a `SIGHUP` signal to the server process:\n\n```bash\nkill -s SIGHUP \u003cprocess-id\u003e\n```\n\n## File format\n\nThe `id` below will become the path and `target` is the proxy target. \n\nThe rest are Twitter Card properties, see [https://dev.twitter.com/cards/types/summary-large-image](https://dev.twitter.com/cards/types/summary-large-image).\n\n```json\n[\n\t{\n\t\t\"id\": \"hugo-0.24\",\n\t\t\"site\": \"@GoHugoIO\",\n\t\t\"creator\": \"@bepsays\",\n\t\t\"image\": \"https://s11.postimg.org/jsd2aq1er/hugo-24-poster.png\",\n\t\t\"title\": \"The Revival of the Archetypes!\",\n\t\t\"description\": \"In the new Hugo 0.24, archetype files are Go templates with all funcs and the full .Site available, for all content formats.\",\n\t\t\"target\": \"https://github.com/gohugoio/hugo/releases/tag/v0.24\"\n\t}\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Ftwittercard-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbep%2Ftwittercard-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Ftwittercard-proxy/lists"}