{"id":23714927,"url":"https://github.com/teilomillet/gofh","last_synced_at":"2025-08-05T09:13:56.222Z","repository":{"id":251338454,"uuid":"836451698","full_name":"teilomillet/gofh","owner":"teilomillet","description":"GoFastHTML","archived":false,"fork":false,"pushed_at":"2024-08-02T07:59:13.000Z","size":18,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T20:36:05.252Z","etag":null,"topics":["fasthtml","go","gofast","gofasthtml","golang","html","htmx"],"latest_commit_sha":null,"homepage":"https://docs.gofasthtml.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/teilomillet.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":"2024-07-31T22:07:01.000Z","updated_at":"2024-11-26T12:44:24.000Z","dependencies_parsed_at":"2024-09-22T21:15:19.124Z","dependency_job_id":null,"html_url":"https://github.com/teilomillet/gofh","commit_stats":null,"previous_names":["teilomillet/gofh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teilomillet/gofh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teilomillet%2Fgofh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teilomillet%2Fgofh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teilomillet%2Fgofh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teilomillet%2Fgofh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teilomillet","download_url":"https://codeload.github.com/teilomillet/gofh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teilomillet%2Fgofh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"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":["fasthtml","go","gofast","gofasthtml","golang","html","htmx"],"created_at":"2024-12-30T20:51:39.348Z","updated_at":"2025-07-12T06:36:54.763Z","avatar_url":"https://github.com/teilomillet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gofh\n\nGofh -- GoFastHTML is a lightweight, fast web framework for Go, designed to create interactive web applications with minimal code, inspired by [FastHTML](https://github.com/AnswerDotAI/fasthtml). Gofh combines the speed of Go with the interactivity of HTMX to deliver powerful web experiences.\n\n\n## Features\n\n- Simple and expressive API\n- Built-in HTMX integration for dynamic content\n- Lightweight and fast\n- Easy to learn for Go developers\n\n## Getting Started\n\nThese instructions will get you a copy of gofh up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nTo use gofh, you need to have Go installed on your system. gofh is compatible with Go 1.16 and later.\n\n### Installation\n\nInstall gofh using `go get`:\n\n```bash\ngo get github.com/teilomillet/gofh\n```\n\n## Quick Start\n\nHere's a simple example to get you started with gofh:\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/teilomillet/gofh\"\n)\n\nfunc main() {\n\tapp := gofh.New()\n\n\tapp.Get(\"/\").Handle(func(c *gofh.Context) gofh.Element {\n\t\treturn gofh.Div(\n\t\t\tgofh.H1(\"Welcome to gofh\"),\n\t\t\tgofh.P(\"Hello World!\").HxGet(\"/greet\").HxSwap(\"outerHTML\"),\n\t\t)\n\t})\n\n\tapp.Get(\"/greet\").Handle(func(c *gofh.Context) gofh.Element {\n\t\treturn gofh.P(\"Nice to meet you!\")\n\t})\n\n\tlog.Fatal(app.Serve())\n}\n```\n\nRun this example and visit http://localhost:8080 in your browser to see it in action.\n\n## Usage\n\ngofh uses a simple, fluent API for defining routes and creating HTML elements:\n\n```go\n\napp := gofh.New()\n\napp.Get(\"/\").Handle(func(c *gofh.Context) gofh.Element {\n\treturn gofh.Div(\n\t\tgofh.H1(\"Todo List\"),\n\t\tgofh.Ul(\n\t\t\tgofh.Li(\"Item 1\"),\n\t\t\tgofh.Li(\"Item 2\"),\n\t\t),\n\t)\n})\n```\n\nFor more detailed usage instructions and examples, please refer to the documentation (Note: This link is a placeholder and may not be active yet).\n\n## Contributing\n\nWe welcome contributions to gofh! Please feel free to submit issues, fork the repository and send pull requests!\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\nAcknowledgments\n\n- Inspired by FastHTML and other modern web frameworks\n- Thanks to the Go community for their excellent tools and libraries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteilomillet%2Fgofh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteilomillet%2Fgofh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteilomillet%2Fgofh/lists"}