{"id":13727014,"url":"https://github.com/roam-garden/roam-export","last_synced_at":"2025-05-07T22:30:44.486Z","repository":{"id":128891903,"uuid":"344647929","full_name":"roam-garden/roam-export","owner":"roam-garden","description":"A set of tools to Filter/transform/render RoamResearch JSON export. Used in Roam Garden","archived":false,"fork":false,"pushed_at":"2021-04-03T04:44:25.000Z","size":200,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T11:20:49.218Z","etag":null,"topics":["json","roam","roam-export","roam-garden","roamresearch"],"latest_commit_sha":null,"homepage":"https://roam.garden/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roam-garden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Stvad","patreon":"stvad"}},"created_at":"2021-03-05T00:30:23.000Z","updated_at":"2023-04-03T11:11:53.000Z","dependencies_parsed_at":"2023-06-02T12:45:52.938Z","dependency_job_id":null,"html_url":"https://github.com/roam-garden/roam-export","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roam-garden%2Froam-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roam-garden%2Froam-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roam-garden%2Froam-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roam-garden%2Froam-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roam-garden","download_url":"https://codeload.github.com/roam-garden/roam-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965156,"owners_count":21832829,"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":["json","roam","roam-export","roam-garden","roamresearch"],"created_at":"2024-08-03T01:03:35.684Z","updated_at":"2025-05-07T22:30:43.464Z","avatar_url":"https://github.com/roam-garden.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Stvad","https://patreon.com/stvad"],"categories":["TypeScript"],"sub_categories":[],"readme":"# roam-export\n\nExport filtering and processing library for https://roam.garden/\n\n### Installation\n\n```\nnpm i roam-export\n```\n\n### Usage\n\nA basic usage is as follows:\n\n```typescript\nimport { RoamBlock, RoamJsonQuery, RoamPage } from \"roam-export\"\nimport { readFileSync } from \"fs\"\n\nconst data = readFileSync(\"path to json export\", \"utf8\")\nconst allPages = JSON.parse(data) as Array\u003cRoamPage\u003e\n  \nconst { pages, blockUids } = new RoamJsonQuery(allPages, \n  {makePagesWithTheseTagsPublic: [\"make-public\"], makeBlocksWithTheseTagsPrivate: []}).getPagesToRender()\n  \n// do something with pages\n```\n\nThere are more tools for operating on Roam JSON available internally (see https://github.com/roam-garden/roam-export/blob/master/src/roam-utils.ts and https://github.com/roam-garden/roam-export/blob/master/src/filtering.ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froam-garden%2Froam-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froam-garden%2Froam-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froam-garden%2Froam-export/lists"}