{"id":13800917,"url":"https://github.com/sparsetech/trail","last_synced_at":"2025-08-24T11:20:39.442Z","repository":{"id":43212310,"uuid":"47774201","full_name":"sparsetech/trail","owner":"sparsetech","description":"Routing library for the Scala platform","archived":false,"fork":false,"pushed_at":"2022-05-04T08:26:56.000Z","size":186,"stargazers_count":82,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T18:40:34.128Z","etag":null,"topics":["router","scala","scala-native","scalajs","web-development","zero-dependency"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/sparsetech.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}},"created_at":"2015-12-10T16:35:27.000Z","updated_at":"2024-06-13T15:11:01.000Z","dependencies_parsed_at":"2022-09-09T09:23:05.622Z","dependency_job_id":null,"html_url":"https://github.com/sparsetech/trail","commit_stats":null,"previous_names":["metastack-pl/metarouter"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sparsetech/trail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Ftrail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Ftrail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Ftrail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Ftrail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparsetech","download_url":"https://codeload.github.com/sparsetech/trail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Ftrail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271852230,"owners_count":24834114,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["router","scala","scala-native","scalajs","web-development","zero-dependency"],"created_at":"2024-08-04T00:01:17.617Z","updated_at":"2025-08-24T11:20:39.392Z","avatar_url":"https://github.com/sparsetech.png","language":"Scala","readme":"# \u003cimg src=\"http://sparse.tech/icons/trail.svg\" width=\"50%\"\u003e\n[![Build Status](https://travis-ci.org/sparsetech/trail.svg)](https://travis-ci.org/sparsetech/trail)\n[![Join the chat at https://gitter.im/sparsetech/trail](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sparsetech/trail?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Maven Central](https://img.shields.io/maven-central/v/tech.sparse/trail_2.13.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22tech.sparse%22%20AND%20a%3A%22trail_2.13%22)\n\nTrail is a routing library for Scala. It is available for the JVM, Scala.js and Scala Native.\n\n## Features\n* Define type-safe routes\n* Parse and generate URLs\n* DSL to extract path elements, arguments and fragments\n* Express routing tables via pattern matching\n* Define custom codecs\n* IDE support\n* Cross-platform support (JVM, Scala.js, Scala Native)\n* Zero dependencies\n\n## Example\n```scala\nimport trail._\n\nval details  = Root / \"details\" / Arg[Int]\nval userInfo = Root / \"user\" / Arg[String] \u0026 Param[Boolean](\"show\")\n\nval result = \"/user/hello?show=false\" match {\n  case details (a)      =\u003e s\"details: $a\"\n  case userInfo((u, s)) =\u003e s\"user: $u, show: $s\"\n}\n```\n\n## Links\n* [Documentation](http://sparse.tech/docs/trail.html)\n* [ScalaDoc](https://www.javadoc.io/doc/tech.sparse/trail_2.13/)\n\n## Licence\nTrail is licensed under the terms of the Apache v2.0 licence.\n\n## Authors\n* Tim Nieradzik\n* Darren Gibson\n* Anatolii Kmetiuk\n","funding_links":[],"categories":["Web Development"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparsetech%2Ftrail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparsetech%2Ftrail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparsetech%2Ftrail/lists"}