{"id":23872807,"url":"https://github.com/troublete/go-csi","last_synced_at":"2026-06-17T04:32:13.857Z","repository":{"id":208919057,"uuid":"715807607","full_name":"troublete/go-csi","owner":"troublete","description":"client side include – include remote snippets in files","archived":false,"fork":false,"pushed_at":"2023-11-07T21:50:43.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T19:51:21.395Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/troublete.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":"2023-11-07T21:50:09.000Z","updated_at":"2023-11-09T12:08:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"12cf467c-4197-4316-9c31-c6f5923b8034","html_url":"https://github.com/troublete/go-csi","commit_stats":null,"previous_names":["troublete/go-csi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/troublete/go-csi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troublete%2Fgo-csi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troublete%2Fgo-csi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troublete%2Fgo-csi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troublete%2Fgo-csi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/troublete","download_url":"https://codeload.github.com/troublete/go-csi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troublete%2Fgo-csi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34434492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":[],"created_at":"2025-01-03T16:33:14.231Z","updated_at":"2026-06-17T04:32:13.832Z","avatar_url":"https://github.com/troublete.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSI\n\u003e Client Side Include\n\n## Introduction\n\nAs opposed to server side includes (SSI); this tooling aims to allow the include of responses (e.g. remote HTML document\npartials) in\nlocal ones. It might be generally useful for static site generation when used in conjunction with a headless/hybrid CMS.\n\n## Get Started\n\nSince it might be generally useful for `HTML` generation here an example of the usage in `HTML`, but in general the\ninterpreter reads any document regardless of extension. And includes whatever the `HTTP GET` request returns.\n\n```html\n\n\u003chtml\u003e\n    \u003cbody\u003e\n        \u003c!--{GET http://example.com}--\u003e \n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nThe `\u003c!--{GET http://example.com}--\u003e` will be replaced with whatever a `HTTP GET` request will fetch from the following\nhost.  \n\nError occurring during request or URL parsing will be output as log messages and the content will be replaced by an\nempty string.\n\n## Tooling Binaries\n\n### build\n\n```bash\ngo run ./cmd/build/ --help\nUsage of ...\n  -file string\n    \tthe file to convert\n```\n\nThis will process the input file and output the content, with processing of the CSI snippets to stdout.\n\n### watch\n\n```bash\ngo run ./cmd/watch/ --help\nUsage of ...\n  -file string\n    \tthe file to convert\n  -out string\n    \tthe target to output (default \"out.html\")\n```\n\nThis will process the input file and will on every change; process and store the processed file as defined in `out`.\n\n### serve\n\n```bash\ngo run ./cmd/serve/ --help\nUsage of ...\n  -file string\n    \tthe file to convert\n  -port string\n    \tthe target port to listen (default \"4321\")\n```\n\nThis will process the file (similar to watch) and serve it on `127.0.0.1:*port*`.\n\n## Building\n\n```bash\nmake build # will create all binaries in a ./dist directory\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroublete%2Fgo-csi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftroublete%2Fgo-csi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroublete%2Fgo-csi/lists"}