{"id":28306174,"url":"https://github.com/blmayer/gwi","last_synced_at":"2026-05-15T08:06:15.289Z","repository":{"id":199951835,"uuid":"631074912","full_name":"blmayer/gwi","owner":"blmayer","description":"A library that let's you create a web interface for your repos.","archived":false,"fork":false,"pushed_at":"2023-10-12T17:29:10.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T13:11:56.506Z","etag":null,"topics":["git","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blmayer.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}},"created_at":"2023-04-21T21:35:31.000Z","updated_at":"2023-10-16T04:23:30.000Z","dependencies_parsed_at":"2023-10-14T18:14:44.445Z","dependency_job_id":null,"html_url":"https://github.com/blmayer/gwi","commit_stats":null,"previous_names":["blmayer/gwi"],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/blmayer/gwi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmayer%2Fgwi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmayer%2Fgwi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmayer%2Fgwi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmayer%2Fgwi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blmayer","download_url":"https://codeload.github.com/blmayer/gwi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmayer%2Fgwi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259584751,"owners_count":22880193,"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":["git","go"],"created_at":"2025-05-24T03:14:25.935Z","updated_at":"2026-05-15T08:06:15.260Z","avatar_url":"https://github.com/blmayer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"GWI stands for Git Web Interface, that is it delivers a ready to use\nvisualization and management tool atop of your git repositories.\n\nWith GWI you can easily host your own git platform customized\nto your needs. Some features are:\n\n- Easy to setup\n- Pages are templates you can customize\n- Does not depend on git or CGI scripts\n- Lightweight\n- Free\n- Under active development\n\nThis project is in early stages of development, and some features may be\nmissing. If you want to request a feature or report a bug, follow the\ninstructions at [the author's git](https://blmayer.dev/x).\n\n[![Go Report Card](https://goreportcard.com/badge/blmayer.dev/x/gwi)](https://goreportcard.com/report/blmayer.dev/x/gwi)\n[![Go Reference](https://pkg.go.dev/badge/blmayer.dev/x/gwi.svg)](https://pkg.go.dev/blmayer.dev/x/gwi)\n\nIf you like to star it on GitHub, we have a mirror repo there:\n[GitHub](https://github.com/blmayer/gwi)\n\nThank you!\n\n\n# Usage\n\nThe simplest way of using this project is the following example:\n\n```\npackage main\n\nimport (\n\t\"net/http\"\n\n\t\"blmayer.dev/gwi\"\n)\n\nfunc main() {\n\t// init user vault\n\tv, err := NewFileVault(\"users.json\", \"--salt--\")\n\t// handle error\n\t\n\t// gwi config struct\n\tc := gwi.Config{\n\t\tRoot: \"path/to/git/folder\",\n\t\tPagesRoot: \"path/to/html-templates\",\n\t\t...\n\t}\n\n\tg, _ := gwi.NewFromConfig(c, v)\n\t// handle error\n\n\terr := http.ListenAndServe(\":8080\", g.Handle())\n\t// handle err\n}\n```\n\n## Examples\n\n\n### Users\n\nTo get a list of your users is simple:\n\n```\n\u003cul\u003e\n\t{{range users}}\n\t\u003cli\u003e{{.}}\u003c/li\u003e\n\t{{end}}\n\u003c/ul\u003e\n```\n\n\n### File tree\n\nTo get the file tree for the current reference:\n\n```\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003eMode\u003c/th\u003e\n        \u003cth\u003eSize\u003c/th\u003e\n        \u003cth\u003eName\u003c/th\u003e\n    \u003c/tr\u003e\n    {{range tree .Ref}}\n    \u003ctr\u003e\n        \u003ctd\u003e{{.Mode}}\u003c/td\u003e\n        \u003ctd\u003e{{.Size}}\u003c/td\u003e\n\t\u003ctd\u003e{{.Name}}\u003c/td\u003e\n    \u003c/tr\u003e\n    {{end}}\n\u003c/table\u003e\n```\n\nWill print a nice list of your project files.\n\n\n### Commits\n\nUsing the functions `commits` and `commit` you're able to see a list of\ncommits and check details of each one:\n\n```\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003eTime\u003c/th\u003e\n        \u003cth\u003eAuthor\u003c/th\u003e\n        \u003cth\u003eMessage\u003c/th\u003e\n    \u003c/tr\u003e\n    {{range commits .Ref}}\n    \u003ctr\u003e\n        \u003ctd\u003e{{.Author.When.String}}\u003c/td\u003e\n        \u003ctd\u003e{{.Author.Name}}\u003c/td\u003e\n\t\u003ctd\u003e{{.Message}}\u003c/td\u003e\n    \u003c/tr\u003e\n    {{end}}\n\u003c/table\u003e\n```\n\nTo get the list, and the following show a commit's details:\n\n```\n{{with commit .Ref}}\n\n\u003cp\u003e\u003cb\u003eCommited at:\u003c/b\u003e {{.Committer.When.String}}\u003c/p\u003e\n\u003cp\u003e\u003cb\u003eAuthor:\u003c/b\u003e {{.Committer.Name}} ({{.Committer.Email}})\u003c/p\u003e\n\u003cp\u003e\u003cb\u003eMessage:\u003c/b\u003e\u003c/p\u003e\n\u003cp\u003e{{.Message}}\u003c/p\u003e\n{{end}}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblmayer%2Fgwi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblmayer%2Fgwi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblmayer%2Fgwi/lists"}