{"id":13483820,"url":"https://github.com/obsidian/orion","last_synced_at":"2025-04-14T21:45:56.449Z","repository":{"id":25237179,"uuid":"101847871","full_name":"obsidian/orion","owner":"obsidian","description":"A Crystal router","archived":false,"fork":false,"pushed_at":"2022-04-05T23:24:40.000Z","size":538,"stargazers_count":124,"open_issues_count":4,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T09:51:30.323Z","etag":null,"topics":["crystal","crystal-language","router"],"latest_commit_sha":null,"homepage":"https://obsidian.github.io/orion","language":"Crystal","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/obsidian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-30T06:52:01.000Z","updated_at":"2025-03-12T01:38:52.000Z","dependencies_parsed_at":"2022-08-07T11:15:28.204Z","dependency_job_id":null,"html_url":"https://github.com/obsidian/orion","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian%2Forion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian%2Forion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian%2Forion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian%2Forion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsidian","download_url":"https://codeload.github.com/obsidian/orion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248966933,"owners_count":21190871,"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":["crystal","crystal-language","router"],"created_at":"2024-07-31T17:01:15.601Z","updated_at":"2025-04-14T21:45:56.426Z","avatar_url":"https://github.com/obsidian.png","language":"Crystal","funding_links":[],"categories":["Routing","Crystal"],"sub_categories":[],"readme":"![Orion](https://raw.githubusercontent.com/obsidian/orion/v3.0.0-dev/orion-banner.svg)\n\n[![Crystal CI](https://github.com/obsidian/orion/workflows/Crystal%20CI/badge.svg)](https://github.com/obsidian/orion/actions?query=workflow%3A%22Crystal+CI%22)\n[![GitHub issues](https://img.shields.io/github/issues/obsidian/orion)](https://github.com/obsidian/orion/issues)\n[![GitHub stars](https://img.shields.io/github/stars/obsidian/orion)](https://github.com/obsidian/orion/stargazers)\n[![GitHub license](https://img.shields.io/github/license/obsidian/orion)](https://github.com/obsidian/orion/blob/master/LICENSE)\n[![Documentation](https://img.shields.io/badge/Read-Documentation-%232E1052)](https://obsidian.github.io/orion)\n\n---\n\n## Introduction\n\nOrion is minimal, Omni-Conventional, declarative web framework inspired by the ruby-on-rails router and controller components. It provides, the routing, view, and controller framework of your application in a way that can be as simple or complex as you need it to fit your use case.\n\n## Simple Example\nOrion out of the box is designed to be as simple as you want it to be. A few\nlines will get you a functioning web app. Orion also ships with helpful features\nsuch as view rendering and static content delivery.\n\n```crystal\nrequire \"orion/app\"\n\nroot do\n  \"Welcome Home\"\nend\n\nget \"/posts\" do\n  \"Many posts here!\"\nend\n```\n\n## Flexible Routing\nOrion is extemely flexible, it is inspiried by the rails routing and controller framework and therefore has support for `scope`, `concerns`, `use HTTP::Handler`, `constraints` and more! See the modules in `Orion::DSL` more more detail.\n\n```crystal\nrequire \"orion/app\"\nrequire \"auth_handlers\"\n\nstatic \"/\", dir: \"./assets\"\n\nscope \"/api\" do\n  use AuthHandlers::Token\nend\n\nuse AuthHandlers::CookieSession\n\nscope constraint: UnauthenticatedUser do\n  root do\n  render \"views/home.slim\"\nend\n\nget \"/login\", helper: login do\n  render \"views/login.slim\"\nend\n\npost \"/login\" do\n  if User.authenticate(params[\"email\"], params[\"password\"])\n    redirect to: root_path\n  else\n    flash[:error] = \"Invalid login\"\n    redirect to: login_path\n  end\nend\n\nscope constraint: AuthenticatedUser do\n  root do\n    render \"views/dashboard.slim\"\n  end\nend\n```\n\n## Installation\nAdd this to your application's shard.yml:\n\n```yml\ndependencies:\n  orion:\n    github: obsidian/orion\n```\n\nSee also [Getting Started](https://github.com/obsidian/orion/wiki/Getting-Started).\n\n## Documentation\n\nView the docs at [https://obsidian.github.io/orion](https://obsidian.github.io/orion).\nView the guides at [https://github.com/obsidian/orion/wiki](https://github.com/obsidian/orion/wiki).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidian%2Forion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsidian%2Forion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidian%2Forion/lists"}