{"id":16182603,"url":"https://github.com/lmantw/binarion","last_synced_at":"2025-09-02T15:04:56.537Z","repository":{"id":246731504,"uuid":"822006050","full_name":"LmanTW/Binarion","owner":"LmanTW","description":"A simple binary format for storing JavaScript objects.","archived":false,"fork":false,"pushed_at":"2024-08-06T11:50:34.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T06:43:24.258Z","etag":null,"topics":["binary","data","decoding","encoding","format","javascript"],"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/LmanTW.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}},"created_at":"2024-06-30T03:38:13.000Z","updated_at":"2024-08-06T11:50:37.000Z","dependencies_parsed_at":"2024-08-06T10:05:27.472Z","dependency_job_id":"e32595de-2f2d-42d7-835b-089f141f8777","html_url":"https://github.com/LmanTW/Binarion","commit_stats":null,"previous_names":["lmantw/binarion"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LmanTW%2FBinarion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LmanTW%2FBinarion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LmanTW%2FBinarion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LmanTW%2FBinarion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LmanTW","download_url":"https://codeload.github.com/LmanTW/Binarion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221720292,"owners_count":16869453,"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":["binary","data","decoding","encoding","format","javascript"],"created_at":"2024-10-10T06:43:21.887Z","updated_at":"2024-10-27T19:08:28.634Z","avatar_url":"https://github.com/LmanTW.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"The banner\" src=\"https://raw.githubusercontent.com/LmanTW/Binarion/main/Assets/Visuals/Banner.svg\"\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/LmanTW/Binarion/blob/main/Documents/GetStarted.md\"\u003eGet Started\u003c/a\u003e | \n  \u003ca href=\"https://github.com/LmanTW/Binarion/blob/main/Documents/API.md\"\u003eDocumentation\u003c/a\u003e | \n  \u003ca href=\"https://github.com/LmanTW/Binarion/blob/main/Documents/Specification.md\"\u003eSpecification\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e [!WARNING]\n\u003e This project is still in it's early stages of development, so we may introduce some breaking changes to the API and the data format.\n\n# Binarion\n[![Npm version](https://img.shields.io/npm/v/binarion)](https://www.npmjs.com/package/binarion) [![Npm downloads](https://img.shields.io/npm/dm/binarion)](https://www.npmjs.com/package/binarion) [![CodeFactor grade](https://img.shields.io/codefactor/grade/github/LmanTW/Binarion)](https://www.codefactor.io/repository/github/lmantw/binarion/)\n\n\u003e [!IMPORTANT]\n\u003e Binarion is not a competitor to [JSON](https://zh.wikipedia.org/wiki/JSON), it is not faster or more compact than [JSON](https://zh.wikipedia.org/wiki/JSON) most of the time.\n\nBinarion is designed to store [JavaScript](https://en.wikipedia.org/wiki/JavaScript) objects that contain large [TypedArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray). For most use cases, using [JSON](https://zh.wikipedia.org/wiki/JSON) will be faster and more compact, but for some niche use cases, Binarion can be a good choice.\n\n* Store image pixel data with other information, like width and height.\n* Store world data for 2D sandbox game. (width, height, chunks, blocks, etc...)\n* ~~Store the state of [one million checkboxes](https://onemillioncheckboxes.com)~~.\n\n[Performance](https://github.com/LmanTW/Binarion/blob/main/Documents/Performance.md)\n\n## Supported Data Formats\n| Name       | Corresponding JavaScript Object             | Implemented |\n| ---        | ---                                         | ---         |\n| None       | `null`, `undefined`                         | ✅          |\n| Boolean    | `boolean`                                   | ✅          |\n| Integer    | `number`                                    | ✅          |\n| Float      | `float`                                     | ❌          |\n| String     | `string`                                    | ✅          |\n| Array      | `Array`                                     | ✅          |\n| BoolArray  |                                             | ❌          |\n| UintArray  | `Uint8Array`, `Uint16Array`, `Uint32Array`  | ✅          |\n| FloatArray | `Float32Array`, `Float64Array`              | ❌          |\n| Object     | `Object`                                    | ✅          |\n| Map        | `Map`                                       | ✅          |\n| Set        | `Set`                                       | ✅          |\n| Function   | `Function`                                  | ❌          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmantw%2Fbinarion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmantw%2Fbinarion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmantw%2Fbinarion/lists"}