{"id":34125518,"url":"https://github.com/amallek/ute","last_synced_at":"2026-03-13T00:30:54.157Z","repository":{"id":297831639,"uuid":"997937682","full_name":"amallek/ute","owner":"amallek","description":"UTE (Ultra Tiny Encoding Protocol) is a compact, binary serialization protocol designed for efficient, schema-driven data interchange. It is intended for scenarios where both performance and type safety are critical, such as IoT, embedded systems, and high-performance backend services.","archived":false,"fork":false,"pushed_at":"2025-06-08T09:52:29.000Z","size":1847,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-17T09:20:04.223Z","etag":null,"topics":["binary-protocol","embedded","iot","microservice","protocol","schema","serialization","ute"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amallek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-06-07T14:17:44.000Z","updated_at":"2025-06-08T09:52:32.000Z","dependencies_parsed_at":"2025-12-14T23:05:16.043Z","dependency_job_id":null,"html_url":"https://github.com/amallek/ute","commit_stats":null,"previous_names":["amallek/ute"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amallek/ute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallek%2Fute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallek%2Fute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallek%2Fute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallek%2Fute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amallek","download_url":"https://codeload.github.com/amallek/ute/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallek%2Fute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30451518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["binary-protocol","embedded","iot","microservice","protocol","schema","serialization","ute"],"created_at":"2025-12-14T23:03:11.241Z","updated_at":"2026-03-13T00:30:54.138Z","avatar_url":"https://github.com/amallek.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# UTE: Ultra Tiny Encoding Protocol\n\n\n## Overview\n\nUltra Tiny Encoding (UTE) is a compact, schema-driven binary serialization protocol designed for high efficiency, type safety, and simplicity. UTE enables fast, space-efficient data interchange between systems, with a focus on:\n\n- **Schema-driven encoding:** All data is encoded and decoded according to a user-defined YAML schema, supporting versioning and evolution.\n- **Minimal binary overhead:** UTE omits field names and metadata from the payload, resulting in much smaller messages than JSON or similar formats.\n- **Type safety:** Supports null, bool, int, string, list, and struct types, with strict schema validation at both encode and decode time.\n- **Multi-language support:** Official bindings are available for Go and C, with more planned.\n- **No code generation required:** Unlike Protobuf, UTE does not require a codegen step or special toolchain—just load the schema and use the API.\n- **Designed for embedded, IoT, and microservices:** UTE is ideal for bandwidth- and resource-constrained environments, as well as high-performance backend services.\n\n\n\nUTE is suitable for:\n- Communication between microservices where efficiency and schema evolution matter\n- IoT and embedded devices with limited bandwidth or memory\n- Storing structured data in a compact binary form\n- Any application where JSON is too verbose and Protobuf is too heavyweight\n\nSee the `bindings/` directory for language-specific usage and API details.\n\n## Features\n\n- **Schema-driven**: Data is encoded and decoded according to a user-defined schema (YAML-based).\n- **Compact binary format**: Minimal overhead compared to text-based formats.\n- **Type safety**: Supports null, bool, int, string, list, and struct types.\n- **Simple implementation**: Easy to integrate and extend.\n\n## Intended Use Cases\n\n- Communication between microservices where efficiency matters\n- IoT and embedded devices with limited bandwidth\n- Storing structured data in a compact binary form\n- Any application where JSON is too verbose and Protobuf is too complex\n\n## Quick Start\n\n1. **Define your schema** in `schema.yaml`:\n    ```yaml\n    versions:\n      - version: 1\n        fields:\n          - name: devices\n            type: list\n            elem:\n              type: struct\n              fields:\n                - name: id\n                  type: int\n                - name: name\n                  type: string\n    ```\n\n\n\n## Advantages\n\n- Much more compact than JSON (no field names in payload)\n- Faster to encode/decode than JSON\n- Simpler and more transparent than Protobuf (no code generation, no required toolchain)\n- Schema evolution is possible by extending the YAML schema\n\n## Disadvantages\n\n- Not self-describing: requires schema for decoding\n- Fewer language bindings (currently C, Go, and JS/TS only)\n- No built-in support for advanced types (e.g., floats, enums, maps)\n\n## Comparison\n\n\n### Performance \u0026 Size Comparison\n\n#### Performance \u0026 Size: Example Input\n\nFor the following input (see Go/TS/C demos):\n\n```go\ninput := map[string]any{\n    \"devices\": []any{\n        map[string]any{\"id\": uint64(1), \"name\": \"device1\"},\n        map[string]any{\"id\": uint64(2), \"name\": \"device2\"},\n    },\n}\n```\n\n\n##### Encoding Time (ms, lower is better)\n\n```\nUTE      | █ 0.04\nProtobuf | █ 0.05\nJSON     | ██████████ 0.20\n```\n\n##### Decoding Time (ms, lower is better)\n\n```\nUTE      | █ 0.04\nProtobuf | █ 0.05\nJSON     | ███████████ 0.18\n```\n\n*Values are typical for this struct/list input. Actual results may vary by implementation and environment, but UTE will always be more compact and faster than JSON, and slightly more compact than Protobuf for this schema.*\n\n| Feature         | UTE          | Protobuf    | JSON        |\n|-----------------|--------------|-------------|-------------|\n| Binary format   | Yes          | Yes         | No          |\n| Schema required | Yes          | Yes         | No          |\n| Human readable  | No           | No          | Yes         |\n| Extensible      | Yes (YAML)   | Yes         | Yes         |\n| Codegen needed  | No           | Yes         | No          |\n| Type safety     | Yes          | Yes         | No          |\n| Size efficiency | High         | High        | Low         |\n| Language support| Go, C, JS/TS | Many        | Many        |\n\n\n\n## Contributing \u0026 License\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md) for contribution and distribution guidelines.\nSee [LICENSE](./LICENSE) for license details (MIT License).\n\nFor protocol details, see [RFC.md](./RFC.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famallek%2Fute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famallek%2Fute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famallek%2Fute/lists"}