{"id":17247430,"url":"https://github.com/x1unix/demo-go-plugins","last_synced_at":"2025-07-29T16:32:13.619Z","repository":{"id":57641156,"uuid":"171186170","full_name":"x1unix/demo-go-plugins","owner":"x1unix","description":"Feed web app as Go plugins demo","archived":false,"fork":false,"pushed_at":"2019-06-11T14:58:22.000Z","size":265,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T06:37:35.174Z","etag":null,"topics":["gilbert","go","go-plugins","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x1unix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-17T23:51:31.000Z","updated_at":"2022-03-31T09:47:54.000Z","dependencies_parsed_at":"2022-09-05T07:41:16.984Z","dependency_job_id":null,"html_url":"https://github.com/x1unix/demo-go-plugins","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/x1unix%2Fdemo-go-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1unix%2Fdemo-go-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1unix%2Fdemo-go-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1unix%2Fdemo-go-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x1unix","download_url":"https://codeload.github.com/x1unix/demo-go-plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228030078,"owners_count":17858431,"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":["gilbert","go","go-plugins","golang"],"created_at":"2024-10-15T06:37:47.461Z","updated_at":"2024-12-04T01:41:42.727Z","avatar_url":"https://github.com/x1unix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FeedViewer\n\u003cp align=\"center\"\u003e\u003cimg src=\"docs/screenshot.png\"\u003e\u003c/p\u003e\n\n## About\n\nThis is a simple feed viewer project aims to demonstrate Gilbert use-case.\nThis project contains a simple single-page application and a few Go plugins.\nFeed sources are provided as separate libraries.\n\n## Installation and usage\n\n### Prerequisites\n\n- Go (1.12+)\n- UNIX system (preferable Linux)\n- [Gilbert](https://github.com/x1unix/gilbert) task runner\n\n### Compilation\n\n- Clone this project\n```bash\ngit clone https://github.com/x1unix/demo-go-plugins.git\n```\n- Build project\n```bash\ngilbert run build\n```\n\nBuild result will be located at `build` directory\n\n- Run\n\n```\ngilbert run start   # or ./build/server\n```\n\nor run in **watch** mode with `gilbert run watch`\n\n\n## Project structure\n\n- `server` - Main HTTP server with feed client\n- `sources/reddit` - Reddit plugin package\n- `sources/stackexchange` - StackExchange plugin package\n- `docs` - Misc files\n  - `actions` - Helper project actions\n\n### Data sources\n\nEach data source is provided as separate plugin library that loaded by the server.\nEach plugin should have entrypoint function and data source signature.\n\nSee `server/feed/sources` package for plugin load process information.\n\nList of loaded data sources defined in configuration file.\n\n### Configuration\n\n```js\n{\n  \"listen\": \"127.0.0.1:8080\",   // \u003c-- Interface to listen\n  \"debug\": true,                // \u003c-- Debug mode\n  \"sources\": {                  // \u003c-- Plugins to load and plugin config\n    \"./lib/reddit.so\": {\n      \n      // Configuration for specific plugin\n      \"userAgent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0\",\n      \"subReddits\": [\"all\",\"popular\", \"original\"]\n    },\n    \"./lib/stackexchange.so\": {\n      \"site\": \"stackoverflow\",\n      \"tags\": [\"go\", \"javascript\", \"php\"]\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx1unix%2Fdemo-go-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx1unix%2Fdemo-go-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx1unix%2Fdemo-go-plugins/lists"}