{"id":23128207,"url":"https://github.com/victorqueiroz/binary-transfer","last_synced_at":"2025-07-18T17:08:10.707Z","repository":{"id":75527155,"uuid":"80289151","full_name":"VictorQueiroz/binary-transfer","owner":"VictorQueiroz","description":"Travel your data very fast using binary serialization.","archived":false,"fork":false,"pushed_at":"2019-03-11T02:13:36.000Z","size":196,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T09:52:27.459Z","etag":null,"topics":["binary","javascript","schema"],"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/VictorQueiroz.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":"2017-01-28T14:35:42.000Z","updated_at":"2019-03-11T02:13:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"27604aa5-6fd4-4a02-9f72-f2d7800b859f","html_url":"https://github.com/VictorQueiroz/binary-transfer","commit_stats":{"total_commits":194,"total_committers":1,"mean_commits":194.0,"dds":0.0,"last_synced_commit":"0c80a09dcb74b098f323e4e979030086c7bf7d84"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/VictorQueiroz/binary-transfer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fbinary-transfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fbinary-transfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fbinary-transfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fbinary-transfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VictorQueiroz","download_url":"https://codeload.github.com/VictorQueiroz/binary-transfer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fbinary-transfer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265798668,"owners_count":23829981,"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","javascript","schema"],"created_at":"2024-12-17T09:17:43.803Z","updated_at":"2025-07-18T17:08:10.414Z","avatar_url":"https://github.com/VictorQueiroz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# binary-transfer (This module is deprecated in order of [message-ff](https://www.npmjs.com/package/message-ff))\n\nTravel your data very fast using binary serialization.\n\nThis project is based on [Telegram Type Language](https://core.telegram.org/).\n\n### About the project\n\nThe aim of this project is:\n\n- A very small library that can travel data very fast\n- A scheme of how your data looks like to increase productivity between teams\n- To create a data model that can be easily be understood, changed or mantained\n\n### Schema\n```\nAccount account -\u003e id: int, username: string, email: string;\n```\n\n### Usage\n```js\nimport { Schema, language } from 'binary-transfer';\n\nconst parser = new language.SchemaParser();\nconst schema = new Schema([\n    {containers: parser.parse(`\n        type Account {\n            account -\u003e id: int,\n                        username: string,\n                        email: string,\n                        posts: Vector\u003cPost\u003e\n        }\n        type Post {\n            post -\u003e id: int,\n                    title: string,\n                    body: string\n        }\n    `)}\n]);\n\nconst buffer = schema.encode('account', {\n    id: 3,\n    username: '',\n    email: '',\n    posts: []\n});\n\nassert.deepEqual(schema.decode(buffer), {\n    id: 3,\n    username: '',\n    email: '',\n    posts: [{\n        id: 100,\n        title: 'This is my first post',\n        body: 'Empty body, please edit it',\n        _name: 'post',\n        _type: 'Post',\n        _traits: []\n    }],\n    _name: 'account',\n    _type: 'Account',\n    _traits: []\n});\n```\n\n### Testing\n```\ngit clone https://github.com/VictorQueiroz/binary-transfer\ncd binary-transfer/\nnpm install\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorqueiroz%2Fbinary-transfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorqueiroz%2Fbinary-transfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorqueiroz%2Fbinary-transfer/lists"}