{"id":19942976,"url":"https://github.com/piterweb/alf-router","last_synced_at":"2025-03-01T13:24:11.173Z","repository":{"id":54746054,"uuid":"522649437","full_name":"PiterWeb/Alf-Router","owner":"PiterWeb","description":" 🦌 Lightweight Router/Framework built on top of Fasthttp 📦","archived":false,"fork":false,"pushed_at":"2024-01-04T21:35:59.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T05:08:16.470Z","etag":null,"topics":["alf","alf-router","api-rest","fasthttp","fasthttpapi","fasthttprouter","flutter-api","framework","go","go-api","golang","microframework","router","template-engine"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/PiterWeb/Alf-Router","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/PiterWeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-08-08T17:42:38.000Z","updated_at":"2023-08-11T14:37:36.000Z","dependencies_parsed_at":"2024-01-04T21:31:23.270Z","dependency_job_id":"5253cabb-eef5-49ad-b08e-483b6bdab37b","html_url":"https://github.com/PiterWeb/Alf-Router","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FAlf-Router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FAlf-Router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FAlf-Router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FAlf-Router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiterWeb","download_url":"https://codeload.github.com/PiterWeb/Alf-Router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241369497,"owners_count":19951749,"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":["alf","alf-router","api-rest","fasthttp","fasthttpapi","fasthttprouter","flutter-api","framework","go","go-api","golang","microframework","router","template-engine"],"created_at":"2024-11-13T00:14:52.724Z","updated_at":"2025-03-01T13:24:11.146Z","avatar_url":"https://github.com/PiterWeb.png","language":"Go","readme":"# 🦌 ALF (API Like Flutter) Router\n\n#### 🔴 This library is actually well tested but the API may change with the time introducing breaking changes\n\n### Description \n\n👉 This is a micro-framework / router built on ⬆ top of the fasthttp package. Alf relies on scalability and his simple structure wich is  similar to Flutter projects 📴\n\n✨ Inspired by Flutter \u0026 [Fiber](https://github.com/gofiber/fiber)\n\n## Purpouse \n\n👷‍♂️ Make a router to start faster and simpler my backend projects\n\n📖 Learn \n\n - Explore the fasthttp package ⏭\n - Publish my own package 📦\n - Learn more deeply how a web server works 🌐\n\n## Technologies used 📘\n\n - Go (Golang)\n\n#### Core External Packages  📦:\n\n 1. [fasthttp](github.com/valyala/fasthttp) (http ☁)\n 2. [ffjson](github.com/pquerna/ffjson/ffjson) (parse interfaces to json fast)\n 3. [pterm](github.com/pterm/pterm) (show info, errors \u0026 warnings)\n\n## Features :\n\n- [x] Fast Router 💨\n- [x] Concurrent Route Setup ⌚\n- [x] Send JSON Responses [(docs)](/utils/json/README.md)\n- [x] HTML/Go Templates Out of the BOX ✨ [(docs)](/utils/templates/README.md)\n- [x] Plugins 🧩 : \n\t- [x] Generate Types for TS (tygo pkg) [(docs)](/plugins/ts/README.md)\n\n## Docs\n\n### Prerequisites 📌\n\n - [Go 1.18](https://go.dev/) \n\n### Set up your first project 💻\n\nDownload the package ⬇\n```shell\ngo get github.com/PiterWeb/Alf-Router\n```\n\nImport it into your code 🔠\n\n```go\n    import (\n\t    alf \"github.com/PiterWeb/Alf-Router\"\n    )\n```\n\nWrite this simple structure\n\n```go\n    err := alf.App(\u0026alf.AppConfig{\n\t\tPort: \"3000\",\n\t\tRoutes: alf.CreateRouter([]alf.Route{\n\t\t\t{\n\t\t\t\tPath: \"/\",\n\t\t\t\tHandle: func(ctx *alf.Ctx) error {\n\t\t\t\t\t_, err := ctx.WriteString(\"Hello World\")\n\t\t\t\t\treturn err\n\t\t\t\t},\n\t\t\t\tMethod: \"get\",\n\t\t\t},\n\t\t}),\n\t})\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n```\n\t\nNow you have setup 🔨 an index route\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiterweb%2Falf-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiterweb%2Falf-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiterweb%2Falf-router/lists"}