{"id":13472094,"url":"https://github.com/gravityblast/fresh","last_synced_at":"2025-12-15T16:19:54.524Z","repository":{"id":13252248,"uuid":"15937203","full_name":"gravityblast/fresh","owner":"gravityblast","description":"Build and (re)start go web apps after saving/creating/deleting source files.","archived":false,"fork":false,"pushed_at":"2024-06-21T17:16:17.000Z","size":44,"stargazers_count":3820,"open_issues_count":59,"forks_count":377,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-04-04T23:01:42.422Z","etag":null,"topics":[],"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/gravityblast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"gravityblast"}},"created_at":"2014-01-15T14:22:25.000Z","updated_at":"2025-04-03T11:37:39.000Z","dependencies_parsed_at":"2024-10-30T02:51:40.774Z","dependency_job_id":null,"html_url":"https://github.com/gravityblast/fresh","commit_stats":{"total_commits":26,"total_committers":12,"mean_commits":"2.1666666666666665","dds":0.7692307692307692,"last_synced_commit":"0fa698148017fa2234856bdc881d9cc62517f62b"},"previous_names":["pilu/fresh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Ffresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Ffresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Ffresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Ffresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gravityblast","download_url":"https://codeload.github.com/gravityblast/fresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505871,"owners_count":21115354,"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":[],"created_at":"2024-07-31T16:00:51.863Z","updated_at":"2025-12-15T16:19:49.469Z","avatar_url":"https://github.com/gravityblast.png","language":"Go","funding_links":["https://github.com/sponsors/gravityblast"],"categories":["开源类库","Go","Open source library"],"sub_categories":["构建编译","Build And Compile"],"readme":"# Fresh\n\n[![Join the chat at https://gitter.im/pilu/fresh](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pilu/fresh?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Build Status](https://travis-ci.org/pilu/fresh.svg?branch=master)](https://travis-ci.org/pilu/fresh)\n\nFresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file.\n\nIf the web framework you are using supports the Fresh runner, it will show build errors on your browser.\n\nIt currently works with [Traffic](https://github.com/pilu/traffic), [Martini](https://github.com/codegangsta/martini) and [gocraft/web](https://github.com/gocraft/web).\n\n## Installation\n\n    go install github.com/gravityblast/fresh@latest\n\n## Usage\n\n    cd /path/to/myapp\n\nStart fresh:\n\n    fresh\n\nFresh will watch for file events, and every time you create/modify/delete a file it will build and restart the application.\nIf `go build` returns an error, it will log it in the tmp folder.\n\n[Traffic](https://github.com/pilu/traffic) already has a middleware that shows the content of that file if it is present. This middleware is automatically added if you run a Traffic web app in dev mode with Fresh.\nCheck the `_examples` folder if you want to use it with Martini or Gocraft Web.\n\n`fresh` uses `./runner.conf` for configuration by default, but you may specify an alternative config filepath using `-c`:\n\n    fresh -c other_runner.conf\n\nHere is a sample config file with the default settings:\n\n    root:              .\n    tmp_path:          ./tmp\n    build_name:        runner-build\n    build_log:         runner-build-errors.log\n    valid_ext:         .go, .tpl, .tmpl, .html\n    no_rebuild_ext:    .tpl, .tmpl, .html\n    ignored:           assets, tmp\n    build_delay:       600\n    colors:            1\n    log_color_main:    cyan\n    log_color_build:   yellow\n    log_color_runner:  green\n    log_color_watcher: magenta\n    log_color_app:\n\n\n## Author\n\n* [Andrea Franz](http://gravityblast.com)\n\n## More\n\n* [Mailing List](https://groups.google.com/d/forum/golang-fresh)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravityblast%2Ffresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgravityblast%2Ffresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravityblast%2Ffresh/lists"}