{"id":29628079,"url":"https://github.com/samualtnorman/decurse","last_synced_at":"2026-01-20T16:59:09.055Z","repository":{"id":300231287,"uuid":"1005481627","full_name":"samualtnorman/decurse","owner":"samualtnorman","description":"An abstraction over continuation-passing and trampolining to write recursive functions that don't exceed the maximum call stack size.","archived":false,"fork":false,"pushed_at":"2025-07-04T13:35:59.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T14:08:26.819Z","etag":null,"topics":["abstraction","call-stack","callstack","continuation-passing","continuation-passing-style","recursion","trampoline","uncurse"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/samualtnorman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-20T09:45:28.000Z","updated_at":"2025-07-04T13:36:02.000Z","dependencies_parsed_at":"2025-06-20T15:11:27.539Z","dependency_job_id":"ded21670-69c5-4dcd-8a00-05bd2d15728a","html_url":"https://github.com/samualtnorman/decurse","commit_stats":null,"previous_names":["samualtnorman/decurse"],"tags_count":0,"template":false,"template_full_name":"samualtnorman/typescript-template","purl":"pkg:github/samualtnorman/decurse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fdecurse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fdecurse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fdecurse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fdecurse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samualtnorman","download_url":"https://codeload.github.com/samualtnorman/decurse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fdecurse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266267523,"owners_count":23902386,"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":["abstraction","call-stack","callstack","continuation-passing","continuation-passing-style","recursion","trampoline","uncurse"],"created_at":"2025-07-21T08:35:00.739Z","updated_at":"2026-01-20T16:59:09.016Z","avatar_url":"https://github.com/samualtnorman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decurse\nAn abstraction over continuation-passing and trampolining to write recursive functions that don't exceed the maximum call stack size.\n\n## Example\n```js\nimport { makeDecurse } from \"decurse\"\n\nconst decurse = makeDecurse()\n\nconst factorial = (/** @type {bigint} */ n) =\u003e decurse(() =\u003e n\n\t? factorial(n - 1n).then(result =\u003e result * n)\n\t: 1n\n)\n\nfactorial(100_000n).then(value =\u003e console.log(value))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamualtnorman%2Fdecurse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamualtnorman%2Fdecurse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamualtnorman%2Fdecurse/lists"}