{"id":15311078,"url":"https://github.com/talentlessguy/og-service","last_synced_at":"2025-04-14T23:28:16.224Z","repository":{"id":74704108,"uuid":"267632916","full_name":"talentlessguy/og-service","owner":"talentlessguy","description":"🐹 Golang service for getting OpenGraph data from a URL","archived":false,"fork":false,"pushed_at":"2021-03-22T19:43:53.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:37:30.245Z","etag":null,"topics":["go","golang","golang-service","opengraph","opengraph-data","service","web","web-service"],"latest_commit_sha":null,"homepage":"https://og-service.herokuapp.com/","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/talentlessguy.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":"2020-05-28T15:56:27.000Z","updated_at":"2021-04-27T05:40:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bfe19b9-d342-4ecc-a89b-8d21affbeed3","html_url":"https://github.com/talentlessguy/og-service","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/talentlessguy%2Fog-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fog-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fog-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fog-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talentlessguy","download_url":"https://codeload.github.com/talentlessguy/og-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248977156,"owners_count":21192529,"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":["go","golang","golang-service","opengraph","opengraph-data","service","web","web-service"],"created_at":"2024-10-01T08:31:16.745Z","updated_at":"2025-04-14T23:28:16.200Z","avatar_url":"https://github.com/talentlessguy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# og-service\n\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/talentlessguy/og-service?style=flat-square) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/talentlessguy/og-service)\n\nGolang service for getting OpenGraph data from a URL. Useful for link previews.\n\n## Instances\n\n- [og-service.herokuapp.com](https://og-service.herokuapp.com)\n- [vercel-og-service.vercel.app](https://vercel-og-service.vercel.app)\n\n## Usage\n\nThe URL scheme looks like this:\n\n```\nhttps://og-service.herokuapp.com/?link=\u003clink\u003e\n```\n\n## Example\n\n```sh\ncurl 'https://og-service.herokuapp.com/?link=https://v1rtl.site'\n```\n\nThe endpoint will return data of the following structure:\n\n```json\n{\n  \"title\": \"v 1 r t l ✨\",\n  \"type\": \"\",\n  \"url\": \"v1rtl.site\",\n  \"website\": \"\",\n  \"description\": \"16 yo nullstack (TS/Go) developer, open sourcerer. Creator of go-web-app, react-postprocessing and tinyhttp. Author of t.me/we_use_js Telegram channel\",\n  \"images\": []\n}\n```\n\n## Installation\n\nThe service itself is a go package that you can install and deploy on your own.\n\n```shell\ngo get -u -v https://github.com/talentlessguy/og-service\n```\n\n## Using with Go\n\nAnd then use it in your Go HTTP server:\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\n\tpreview \"github.com/talentlessguy/og-service\"\n)\n\nfunc main() {\n\n\t// List of origins that can request this endpoint\n  \torigins := []string{\"*\"}\n\n\ts := preview.NewReactLinkPreviewService(origins)\n\n\tlog.Println(\"Started a service on http://localhost:8080\")\n\n\t// Launch the service on a port\n\tlog.Fatal(http.ListenAndServe(\":8080\", s))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Fog-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalentlessguy%2Fog-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Fog-service/lists"}