{"id":20902599,"url":"https://github.com/vnau/jsooner","last_synced_at":"2026-03-09T01:02:21.517Z","repository":{"id":259806589,"uuid":"879474233","full_name":"vnau/jsooner","owner":"vnau","description":"Parse JSON streams faster.","archived":false,"fork":false,"pushed_at":"2026-02-23T18:37:56.000Z","size":137,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-01T16:56:39.316Z","etag":null,"topics":["json","json-parser","jsooner","npm-package","parser","streaming","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vnau.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-28T01:16:27.000Z","updated_at":"2025-12-16T00:50:57.000Z","dependencies_parsed_at":"2025-02-07T00:31:48.861Z","dependency_job_id":null,"html_url":"https://github.com/vnau/jsooner","commit_stats":null,"previous_names":["vnau/jsooner","vnau/jsooon"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vnau/jsooner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2Fjsooner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2Fjsooner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2Fjsooner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2Fjsooner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnau","download_url":"https://codeload.github.com/vnau/jsooner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2Fjsooner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30276664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","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":["json","json-parser","jsooner","npm-package","parser","streaming","typescript"],"created_at":"2024-11-18T12:07:33.379Z","updated_at":"2026-03-09T01:02:21.506Z","avatar_url":"https://github.com/vnau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsooner\n\n[![npm](https://img.shields.io/npm/v/jsooner?color=brightgreen\u0026logo=npm)](https://www.npmjs.com/package/jsooner)\n![coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/vnau/7353726794cee33914eb47e39e6694c6/raw/jsooner__heads_main.json)\n[![bundle size](https://badgen.net/bundlephobia/min/jsooner)](https://bundlephobia.com/package/jsooner)\n\n`jsooner` is a lightweight, efficient library for parsing large JSON streams.\n\nIt’s specifically designed for handling long sequences of JSON objects in a fast and memory-efficient way, without aiming to be a full-featured JSON parser.\n\n## Why jsooner?\n\nParsing large JSON files or continuous streams can overwhelm standard methods like `JSON.parse`, especially in terms of memory and speed. `jsooner` addresses these challenges with:\n\n- _Efficiency:_ Parses JSON incrementally as data arrives, outperforming `JSON.parse` on streams.\n- _Memory Optimization:_ Handles streaming data with minimal memory usage\n\n## Installation\n\nYou can install `jsooner` via npm:\n\n```bash\nnpm install jsooner\n```\n\n## Usage\n\nHere's a basic example of how to use `jsooner`:\n\n```TypeScript\nimport { toJsonAsyncIterable } from \"jsooner\";\n\nconst response = await fetch(\"https://raw.githubusercontent.com/vnau/jsooner/refs/heads/main/examples/data/point-samples.geojson\");\nconst features = toJsonAsyncIterable(response, { lookup: '\"features\"' });\nfor await (const feature of features) {\n    console.log(feature);\n}\n```\n\n## Performance\n\n`jsooner` has been benchmarked against other JavaScript parsers that support streaming, as well as the native `JSON.parse` method, to demonstrate its efficiency with large JSON files.\n\nThe benchmarks were conducted on a [136 MB GeoJSON file](https://data-nces.opendata.arcgis.com/api/download/v1/items/6a4fa1b0434e4688b5d60c2e5c1dcaaa/geojson?layers=0) stored locally.\n\n```mermaid\nxychart-beta horizontal\n    title \"Parsing Time\"\n    x-axis [JSON.parse, jsooner, \"streamparser/json\", oboe, stream-json]\n    y-axis \"Time, s\" 0 --\u003e 30\n    bar [1.78, 2.86, 6.94, 8.43, 25.4]\n```\n\n```mermaid\nxychart-beta horizontal\n    title \"Parsing Memory\"\n    x-axis [\"streamparser/json\", jsooner, stream-json, oboe, JSON.parse]\n    y-axis \"Resident Set, Mb\" 0 --\u003e 750\n    bar [59, 62, 85, 625, 743]\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnau%2Fjsooner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnau%2Fjsooner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnau%2Fjsooner/lists"}