{"id":43223747,"url":"https://github.com/interledger-deprecated/ilp-routing","last_synced_at":"2026-02-01T09:17:48.874Z","repository":{"id":57237605,"uuid":"55307767","full_name":"interledger-deprecated/ilp-routing","owner":"interledger-deprecated","description":"Utility library for calculating routes and routing tables in Interledger","archived":false,"fork":false,"pushed_at":"2017-09-11T23:51:51.000Z","size":150,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-09T06:29:31.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interledger-deprecated.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-02T17:38:40.000Z","updated_at":"2021-06-14T02:05:47.000Z","dependencies_parsed_at":"2022-08-26T15:01:17.870Z","dependency_job_id":null,"html_url":"https://github.com/interledger-deprecated/ilp-routing","commit_stats":null,"previous_names":["interledger/five-bells-routing"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/interledger-deprecated/ilp-routing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interledger-deprecated","download_url":"https://codeload.github.com/interledger-deprecated/ilp-routing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-routing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28974588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T08:16:14.655Z","status":"ssl_error","status_checked_at":"2026-02-01T08:06:51.373Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-02-01T09:17:48.813Z","updated_at":"2026-02-01T09:17:48.862Z","avatar_url":"https://github.com/interledger-deprecated.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ilp-routing\n\n\u003e ILP routing table implementation\n\n[![npm][npm-image]][npm-url] [![circle][circle-image]][circle-url] [![codecov][codecov-image]][codecov-url]\n\n[npm-image]: https://img.shields.io/npm/v/ilp-routing.svg?style=flat\n[npm-url]: https://npmjs.org/package/ilp-routing\n[circle-image]: https://circleci.com/gh/interledgerjs/ilp-routing.svg?style=shield\n[circle-url]: https://circleci.com/gh/interledgerjs/ilp-routing\n[codecov-image]: https://codecov.io/gh/interledgerjs/ilp-routing/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/interledgerjs/ilp-routing\n\n## API Reference\n\n### Route\n\n`RouteData` refers to the [Routes schema](https://github.com/interledgerjs/five-bells-shared/blob/master/schemas/Routes.json) in five-bells-shared.\n\n#### `new Route(curve, hops, info)`\n#### `Route.fromData(routeData) ⇒ Route`\n#### `route.getPoints(y) ⇒ Point[]`\n\n#### `route.combine(alternateRoute) ⇒ Route`\n\nCombine two parallel routes, generating a new curve consisting of the best segments of each.\n\n#### `route.join(tailRoute) ⇒ Route`\n\nCompose two routes end-to-end: `A→B.join(B→C)` becomes `A→C`.\n\n#### `route.shiftX(dx) ⇒ Route`\n\nShift a route's curve left or right.\n\n#### `route.shiftY(dy) ⇒ Route`\n\nShift a route's curve up or down.\n\n#### `route.simplify(maxPoints) ⇒ Route`\n\nSimplify a route.\n\n#### `route.isExpired() ⇒ Boolean`\n\nCheck if a route has expired.\n\n#### `route.toJSON() ⇒ RouteData`\n\n### RoutingTables\n\n#### `new RoutingTables(baseURI, localRoutes, expiryDuration)`\n#### `tables.addLocalRoutes(localRouteObjects)`\n#### `tables.addRoute(routeObject) ⇒ Boolean`\n\nReturns whether or not a new route was created (updates don't count).\n\n#### `tables.removeLedger(ledger)`\n#### `tables.removeExpiredRoutes()`\n#### `tables.toJSON(maxPoints) ⇒ RouteData[]`\n#### `tables.getLocalRoute(ledgerA, ledgerB) ⇒ Route`\n#### `tables.findBestHopForDestinationAmount(ledgerA, ledgerC, finalAmount) ⇒ Hop`\n#### `tables.findBestHopForSourceAmount(ledgerA, ledgerC, sourceAmount) ⇒ Hop`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterledger-deprecated%2Filp-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterledger-deprecated%2Filp-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterledger-deprecated%2Filp-routing/lists"}