{"id":37118393,"url":"https://github.com/roblillack/mars","last_synced_at":"2026-01-14T13:50:04.377Z","repository":{"id":53574646,"uuid":"44634217","full_name":"roblillack/mars","owner":"roblillack","description":"A lightweight web toolkit for the Go language.","archived":false,"fork":false,"pushed_at":"2025-05-06T09:29:43.000Z","size":2235,"stargazers_count":17,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T10:28:41.161Z","etag":null,"topics":["golang","golang-library","golang-package","server","toolkit","web"],"latest_commit_sha":null,"homepage":"","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/roblillack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2015-10-20T20:51:28.000Z","updated_at":"2025-05-06T09:29:44.000Z","dependencies_parsed_at":"2024-08-26T18:23:28.744Z","dependency_job_id":"e44bd4a6-7410-45a8-8a4f-49c35f94e240","html_url":"https://github.com/roblillack/mars","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/roblillack/mars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblillack%2Fmars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblillack%2Fmars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblillack%2Fmars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblillack%2Fmars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roblillack","download_url":"https://codeload.github.com/roblillack/mars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblillack%2Fmars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["golang","golang-library","golang-package","server","toolkit","web"],"created_at":"2026-01-14T13:50:03.436Z","updated_at":"2026-01-14T13:50:04.356Z","avatar_url":"https://github.com/roblillack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mars\n\nA lightweight web toolkit for the [Go language](http://www.golang.org).\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/roblillack/mars.svg)](https://pkg.go.dev/github.com/roblillack/mars)\n[![Build status](https://github.com/roblillack/mars/actions/workflows/build-and-test.yml/badge.svg?branch=master)](https://github.com/roblillack/mars/actions)\n[![Documentation Status](https://readthedocs.org/projects/mars/badge/?version=latest)](http://mars.readthedocs.org/en/latest/?badge=latest)\n[![Coverage Status](https://coveralls.io/repos/github/roblillack/mars/badge.svg?branch=master)](https://coveralls.io/github/roblillack/mars?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/roblillack/mars)](https://goreportcard.com/report/github.com/roblillack/mars)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n- Latest Mars version: 1.1.0 (released May 1, 2022)\n- Supported Go versions: 1.13 … 1.23\n\nMars is a fork of the fantastic, yet not-that-idiomatic-and-pretty-much-abandoned, [Revel framework](https://github.com/revel/revel). You might take a look at the corresponding documentation for the time being.\n\n**Have a question?** Head over to our [Discussions](https://github.com/roblillack/mars/discussions)! 💬\n\n## Quick Start\n\nGetting started with Mars is as easy as:\n\n1. Adding the package to your project\n\n   ```sh\n   $ go get github.com/roblillack/mars\n   ```\n\n2. Creating an empty routes file in `conf/routes`\n\n   ```sh\n   $ mkdir conf; echo \u003e conf/routes\n   ```\n\n3. Running the server as part of your main package\n\n   ```go\n   package main\n\n   import \"github.com/roblillack/mars\"\n\n   func main() {\n     mars.Run()\n   }\n   ```\n\nThis essentially sets up an insecure server as part of your application that listens to HTTP (only) and responds to all requests with a 404. To learn where to go from here, please see the [Mars tutorial](http://mars.readthedocs.io/en/latest/getting-started/)\n\n## Differences to Revel\n\nThe major changes since forking away from Revel are these:\n\n- More idiomatic approach to integrating the framework into your application:\n  - No need to use the `revel` command to build, run, package, or distribute your app.\n  - Code generation (for registering controllers and reverse routes) is supported using the standard `go generate` way.\n  - No runtime dependencies anymore. Apps using Mars are truly standalone and do not need access to the sources at runtime (default templates and mime config are embedded assets).\n  - You are not forced into a fixed directory layout or package names anymore.\n  - Removed most of the \"path magic\" that tried to determine where the sources of your application and revel are: No global `AppPath`, `ViewsPath`, `TemplatePaths`, `RevelPath`, and `SourcePath` variables anymore.\n- Added support for Go 1.5+ vendoring.\n- Vendor Mars' dependencies as Git submodules.\n- Added support for [HTTP dual-stack mode](https://github.com/roblillack/mars/issues/6).\n- Added support for [generating self-signed SSL certificates on-the-fly](https://github.com/roblillack/mars/issues/6).\n- Added [graceful shutdown](https://godoc.org/github.com/roblillack/mars#OnAppShutdown) functionality.\n- Added [CSRF protection](https://godoc.org/github.com/roblillack/mars#CSRFFilter).\n- Integrated `Static` controller to support hosting plain HTML files and assets.\n- Removed magic that automatically added template parameter names based on variable names in `Controller.Render()` calls using code generation and runtime introspection.\n- Removed the cache library.\n- Removed module support.\n- Removed support for configurable template delimiters.\n- Corrected case of render functions (`RenderXml` --\u003e `RenderXML`).\n- Fix generating reverse routes for some edge cases: Action parameter is called `args` or action parameter is of type `interface{}`.\n- Fixed a [XSS vulnerability](https://github.com/roblillack/mars/issues/1).\n\n## Documentation\n\n- [Getting started with Mars](http://mars.readthedocs.io/en/latest/getting-started/)\n- [Moving from Revel to Mars in 7 steps](http://mars.readthedocs.io/en/latest/migration/)\n\n## Links\n\n- [Code Coverage](http://gocover.io/github.com/roblillack/mars)\n- [Go Report Card](http://goreportcard.com/report/roblillack/mars)\n- [GoDoc](https://godoc.org/github.com/roblillack/mars)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblillack%2Fmars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froblillack%2Fmars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblillack%2Fmars/lists"}