{"id":1732,"url":"https://github.com/mzaks/FlatBuffersSwift","last_synced_at":"2025-07-31T12:33:19.524Z","repository":{"id":138069304,"uuid":"48750111","full_name":"mzaks/FlatBuffersSwift","owner":"mzaks","description":"This project brings FlatBuffers (an efficient cross platform serialization library) to Swift.","archived":false,"fork":false,"pushed_at":"2019-03-06T17:50:12.000Z","size":42852,"stargazers_count":570,"open_issues_count":16,"forks_count":40,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-08-15T00:19:50.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","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/mzaks.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}},"created_at":"2015-12-29T14:03:33.000Z","updated_at":"2024-07-19T03:02:36.000Z","dependencies_parsed_at":"2024-01-05T20:18:11.236Z","dependency_job_id":null,"html_url":"https://github.com/mzaks/FlatBuffersSwift","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzaks%2FFlatBuffersSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzaks%2FFlatBuffersSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzaks%2FFlatBuffersSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzaks%2FFlatBuffersSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzaks","download_url":"https://codeload.github.com/mzaks/FlatBuffersSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228248380,"owners_count":17891447,"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":[],"created_at":"2024-01-05T20:15:54.486Z","updated_at":"2024-12-05T06:31:16.125Z","avatar_url":"https://github.com/mzaks.png","language":"Swift","funding_links":[],"categories":["Parsing"],"sub_categories":["JSON","Other free courses"],"readme":"# FlatBuffersSwift\n\n[![Join the chat at https://gitter.im/mzaks/FlatBuffersSwift](https://badges.gitter.im/mzaks/FlatBuffersSwift.svg)](https://gitter.im/mzaks/FlatBuffersSwift?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![Build Status](https://travis-ci.org/mzaks/FlatBuffersSwift.svg?branch=master)](https://travis-ci.org/mzaks/FlatBuffersSwift)\n\n# Motivation\nThis project brings [FlatBuffers](https://google.github.io/flatbuffers/) (an efficient cross platform serialization library) to Swift.\n\n# One minute introduction\n\nThere are three simple steps for you to use FlatBuffersSwift\n\n## 1. Write a schema file\n\n```flatbuffers\ntable List {\n  people : [Person];\n}\n\ntable Person {\n  firstName : string;\n  lastName : string;\n}\n\nroot_type List;\n```\n\n## 2. Generate Swift code\n`fbsCG` console application can be found here: https://github.com/mzaks/FlatBuffersSwiftCodeGen\nTo generate, please execute it as following:\n`fbsCG contacts.fbs contacts.swift`\n\n## 3. Use the generated API\n\nCreate objects and encode them\n```swift\nlet p1 = Person(firstName: \"Maxim\", lastName: \"Zaks\")\nlet p2 = Person(firstName: \"Alex\", lastName: \"Zaks\")\nlet list = List(people: [p1, p2])\nlet data = try?list.makeData()\n```\nDecode data very efficiently\n```swift\nlet newList = List.from(data: data)\nlet name = newList?.people[0].firstName\n```\n\n# Please check out [Wiki](https://github.com/mzaks/FlatBuffersSwift/wiki) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzaks%2FFlatBuffersSwift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzaks%2FFlatBuffersSwift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzaks%2FFlatBuffersSwift/lists"}