{"id":13907380,"url":"https://github.com/Project-OSRM/osrm-frontend","last_synced_at":"2025-07-18T05:31:24.445Z","repository":{"id":20775791,"uuid":"24060645","full_name":"Project-OSRM/osrm-frontend","owner":"Project-OSRM","description":"Modular rewrite of the OSRM frontend using LRM","archived":false,"fork":false,"pushed_at":"2025-03-03T13:33:10.000Z","size":24983,"stargazers_count":324,"open_issues_count":99,"forks_count":252,"subscribers_count":27,"default_branch":"gh-pages","last_synced_at":"2025-05-24T09:08:50.247Z","etag":null,"topics":["frontend","osrm","routing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Project-OSRM.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-09-15T14:57:50.000Z","updated_at":"2025-05-22T12:44:13.000Z","dependencies_parsed_at":"2025-05-24T09:08:52.983Z","dependency_job_id":"b3de5a38-ebfe-40e5-8f0e-a75cb691811e","html_url":"https://github.com/Project-OSRM/osrm-frontend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Project-OSRM/osrm-frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Project-OSRM%2Fosrm-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Project-OSRM%2Fosrm-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Project-OSRM%2Fosrm-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Project-OSRM%2Fosrm-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Project-OSRM","download_url":"https://codeload.github.com/Project-OSRM/osrm-frontend/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Project-OSRM%2Fosrm-frontend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705353,"owners_count":23814431,"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":["frontend","osrm","routing"],"created_at":"2024-08-06T23:01:54.763Z","updated_at":"2025-07-18T05:31:24.431Z","avatar_url":"https://github.com/Project-OSRM.png","language":"JavaScript","readme":"# osrm-frontend\n\nThis is the frontend served at https://map.project-osrm.org.\nThis frontend builds heavily on top of [Leaflet Routing Machine](https://github.com/perliedman/leaflet-routing-machine).\nIf you need a simple OSRM integration in your webpage, you should start from there.\n\n\n## Using Docker\n\nThe easiest and quickest way to setup your own routing engine backend is to use Docker images we provide.\nWe base [our Docker images](https://hub.docker.com/r/osrm/osrm-frontend/) on Alpine Linux and make sure they are as lightweight as possible.\n\nServes the frontend at `http://localhost:9966` running queries against the routing engine backend:\n\n```\ndocker run -p 9966:9966 ghcr.io/project-osrm/osrm-frontend:latest\n```\n\nPer default routing requests are made against the backend at `http://localhost:5000`.\nYou can change the backend by using `-e OSRM_BACKEND='http://localhost:5001'` in the `docker run` command.\n\nIn case Docker complains about not being able to connect to the Docker daemon make sure you are in the `docker` group.\n\n```\nsudo usermod -aG docker $USER\n```\n\nTo build the docker image locally:\n\n```bash\ndocker build . -f docker/Dockerfile -t osrm-frontend\ndocker run -p 9966:9966 osrm-frontend\n```\n\n## Development\n\nInstall dependencies via\n\n```bash\nnpm install\n```\n\nThen compile assets and start the local server with\n\n```bash\nnpm start\n```\n\nOn Windows with no Unix tools installed (`bash` and `cp`) the server could be started with two other commands\nexecuted by `npm start` internally:\n\n```bash\nnpm run compile\nnpm run start-index\n```\n\n## Changing Backends\n\nIn `src/leaflet_options.js` adjust:\n\n```\nservices: [{\n  label: 'Car (fastest)',\n  path: 'http://localhost:5000/route/v1'\n}],\n```\n\nFor debug tiles showing speeds and small components available at `/debug` adjust in `debug/index.html`\n\n```\n\"osrm\": {\n  \"type\": \"vector\",\n  \"tiles\" : [\"http://localhost:5000/tile/v1/car/tile({x},{y},{z}).mvt\"]\n}\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FProject-OSRM%2Fosrm-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FProject-OSRM%2Fosrm-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FProject-OSRM%2Fosrm-frontend/lists"}