{"id":37985675,"url":"https://github.com/jacksonzamorano/pilot","last_synced_at":"2026-01-16T18:38:47.572Z","repository":{"id":263911379,"uuid":"877564850","full_name":"jacksonzamorano/pilot","owner":"jacksonzamorano","description":"Batteries-included, high-performance HTTP framework for quickly building applications.","archived":false,"fork":false,"pushed_at":"2025-08-15T18:40:03.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T20:39:43.152Z","etag":null,"topics":["database","go","http","postgres"],"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/jacksonzamorano.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-23T21:45:57.000Z","updated_at":"2025-08-15T18:40:06.000Z","dependencies_parsed_at":"2025-04-10T00:27:05.289Z","dependency_job_id":"95bca37f-66a9-4529-b6e8-a002927f3db8","html_url":"https://github.com/jacksonzamorano/pilot","commit_stats":null,"previous_names":["jacksonzamorano/pilot"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/jacksonzamorano/pilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonzamorano%2Fpilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonzamorano%2Fpilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonzamorano%2Fpilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonzamorano%2Fpilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksonzamorano","download_url":"https://codeload.github.com/jacksonzamorano/pilot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonzamorano%2Fpilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","go","http","postgres"],"created_at":"2026-01-16T18:38:47.412Z","updated_at":"2026-01-16T18:38:47.544Z","avatar_url":"https://github.com/jacksonzamorano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pilot\n\nPilot is a lightweight, high-performance HTTP framework for Go that provides essential tools for building robust web applications and APIs. The framework is designed as a single, cohesive package that combines HTTP routing, JSON processing, and database utilities with minimal boilerplate and maximum type safety.\n\n## 🚀 Key Features\n\n- **Type-Safe HTTP Server**: Generic HTTP server with middleware support and flexible routing\n- **Advanced JSON Processing**: Custom JSON parser with field-by-field validation and error tracking\n- **Database Integration**: Built-in support for database connections with context management\n- **Zero-Config Setup**: Sensible defaults that work out of the box\n- **Production Ready**: Built-in CORS, request logging, and error handling\n- **Generics Support**: Full Go generics support for type-safe route state management\n- **Worker Pool Architecture**: Configurable concurrent request processing\n- **Middleware System**: Flexible middleware chain with early termination support\n- **Comprehensive Error Handling**: Structured error responses with proper HTTP status codes\n\n## 🛠️ Installation\n\n```bash\ngo mod init your-project\ngo get github.com/jacksonzamorano/pilot\n```\n\n## 🚀 Quick Start\n\n### Basic HTTP Server\n\n```go\npackage main\n\nimport (\n    \"database/sql\"\n    \"log\"\n    \n    \"github.com/jacksonzamorano/pilot\"\n    _ \"github.com/lib/pq\" // PostgreSQL driver\n)\n\n// Define your application state\ntype AppState struct {\n    UserID        int64\n    Authenticated bool\n    IsAdmin       bool\n}\n\nfunc main() {\n    // Database connection\n    db, err := sql.Open(\"postgres\", \"postgres://user:pass@localhost/dbname?sslmode=disable\")\n    if err != nil {\n        log.Fatal(\"Failed to connect to database:\", err)\n    }\n    defer db.Close()\n    \n    // Create application with typed route state\n    app := pilot.NewApplication[AppState](\":8080\", db)\n    \n    // Configure CORS\n    app.CorsOrigin = \"*\"\n    app.CorsHeaders = \"Content-Type, Authorization\"\n    app.CorsMethods = \"GET, POST, PUT, DELETE, OPTIONS\"\n    \n    // Add routes\n    app.Routes.AddRoute(pilot.Get, \"/health\", healthCheck)\n    app.Routes.AddRoute(pilot.Get, \"/users\", getUsers)\n    app.Routes.AddRoute(pilot.Post, \"/users\", createUser)\n    app.Routes.AddRoute(pilot.Get, \"/users/:id\", getUser)\n    \n    // Start server\n    log.Println(\"Starting server on :8080\")\n    app.Start()\n}\n\nfunc healthCheck(req *pilot.RouteRequest[AppState]) *pilot.HttpResponse {\n    return pilot.StringResponse(\"OK\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksonzamorano%2Fpilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksonzamorano%2Fpilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksonzamorano%2Fpilot/lists"}