{"id":22248309,"url":"https://github.com/claudiuhbann/streamable","last_synced_at":"2025-08-01T05:15:40.448Z","repository":{"id":196277972,"uuid":"695314982","full_name":"ClaudiuHBann/Streamable","owner":"ClaudiuHBann","description":"Fastest, Smallest and Simplest (De)Serializer for C++20 and newer.","archived":false,"fork":false,"pushed_at":"2025-06-22T19:03:49.000Z","size":1076,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T12:00:01.674Z","etag":null,"topics":["cpp20","easy-to-use","fast","format","no-dependencies","parser","simple","single-header"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Streamable","language":"C++","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/ClaudiuHBann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-09-22T20:51:20.000Z","updated_at":"2025-06-23T16:10:11.000Z","dependencies_parsed_at":"2024-03-14T13:37:35.111Z","dependency_job_id":"678a7c8c-94d8-4717-bc8e-6a3311d9e499","html_url":"https://github.com/ClaudiuHBann/Streamable","commit_stats":null,"previous_names":["claudiuhbann/streamable_v2"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ClaudiuHBann/Streamable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClaudiuHBann%2FStreamable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClaudiuHBann%2FStreamable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClaudiuHBann%2FStreamable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClaudiuHBann%2FStreamable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClaudiuHBann","download_url":"https://codeload.github.com/ClaudiuHBann/Streamable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClaudiuHBann%2FStreamable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267463939,"owners_count":24091491,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpp20","easy-to-use","fast","format","no-dependencies","parser","simple","single-header"],"created_at":"2024-12-03T06:14:59.830Z","updated_at":"2025-08-01T05:15:40.419Z","avatar_url":"https://github.com/ClaudiuHBann.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Streamable\n\nFastest, Smallest and Simplest (De)Serializer for C++20 or newer.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Features](#features)\n- [Usage](#usage)\n- [Benchmark](#benchmark)\n- [Backwards And Forwards Compatibility](#backwards-and-forwards-compatibility)\n- [Downsides and Limitations](#downsides-and-limitations)\n- [Examples](#examples)\n\n## Installation\n\nTo use this library, simply download and include the header file `Streamable.hpp` into your project or use NuGet to install it.\n\n## Features\n\n- **fast** - fast^2, memory-- and easy++ compared to [MsgPack](https://msgpack.org/)\n- **easy-to-use** - inherit a class and use a macro :D\n- **single-header** - just copy paste the file into your project\n- **has no dependencies** - uses the `C++20` standard library and OS native API for best performance\n- **cross-platform** -\n\n| Platform      | Support      | Details                        |\n|---------------|--------------|--------------------------------|\n| Windows       | Yes          |                                |\n| macOS         | Partial      | No UTF16 encoding for memory-- |\n| Linux         | Partial      | No UTF16 encoding for memory-- |\n\n- **supports every data type** - beside **itself** (so called \"streamables\"), **raw/smart pointers** (ex:. `std::unique_ptr`, `std::shared_ptr` etc...), **most STL classes** (`std::tuple`, `std::optional`, `std::variant` etc...), **any nested range** (ex.: `std::wstring`, `std::map`, std::vector\u0026lt;std::list\u0026gt; etc...), **PODs** (ex.: POD structs and classes, enums, etc...), **primitive types** (ex.: `bool`, `unsigned int`, `double` etc...)\n\n## Usage\n\n1. Inherit from the `IStreamable` class or any class that implements it.\n2. Use the macro **STREAMABLE_DEFINE** and pass your class and the objects you want to parse\n3. **OPTIONAL** For (de)serialization of inherited classes use **STREAMABLE_DEFINE_BASE** and pass the classes\n4. **OPTIONAL** If \"streamables\" pointers are (de)serialized you MUST implement **FindDerivedStreamable** (if you forget this, don't worry, a `static_assert` will scream :O )\n\n## Benchmark\n\nThis benchmark contains anything from trivial types to maps of strings to STL containers to vectors of derived classes as base class pointers etc...\n\n| Library           | Time (ms) | Memory Usage (KB) |\n|-------------------|-----------|-------------------|\n| Streamable        | 0.379     | 85                |\n| nlohmann::json    | 2.9       | 187               |\n| MsgPack           | 0.755     | 87                |\n\n## Backwards And Forwards Compatibility\n\nThis library supports forwards and backwards compatibility across different versions.\n\n## Downsides and Limitations\n\nWhile **Streamable** offers many benefits, it's essential to consider its limitations as well:\n-  **Custom Format** - it has a custom but simple format for storing the data\n- **Programming Language** - supports only C++ \u003e= 20\n\n## Examples\n\n- [Examples](https://github.com/ClaudiuHBann/Streamable/blob/master/Tests/Main.cpp) - Mixed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaudiuhbann%2Fstreamable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaudiuhbann%2Fstreamable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaudiuhbann%2Fstreamable/lists"}