{"id":21107479,"url":"https://github.com/cjhdev/slow_blink","last_synced_at":"2025-10-19T08:29:14.668Z","repository":{"id":59155919,"uuid":"65825613","full_name":"cjhdev/slow_blink","owner":"cjhdev","description":"Blink Protocol in Ruby with native extensions","archived":false,"fork":false,"pushed_at":"2017-04-06T12:45:16.000Z","size":1162,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-24T17:41:21.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjhdev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-16T14:09:44.000Z","updated_at":"2020-07-23T21:05:32.000Z","dependencies_parsed_at":"2022-09-13T18:13:19.710Z","dependency_job_id":null,"html_url":"https://github.com/cjhdev/slow_blink","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cjhdev/slow_blink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fslow_blink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fslow_blink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fslow_blink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fslow_blink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjhdev","download_url":"https://codeload.github.com/cjhdev/slow_blink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fslow_blink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261875770,"owners_count":23223416,"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-11-20T00:40:09.473Z","updated_at":"2025-10-19T08:29:09.621Z","avatar_url":"https://github.com/cjhdev.png","language":"C","readme":"SlowBlink\n==========\n\nSlowBlink is a Ruby implementation of [Blink Protocol](http://www.blinkprotocol.org/ \"Blink Protocol\").\n\nThe Blink Protocol is serialisation specification that uses a schema to define the structure of\nbinary messages. The wire format is optimised for size and codec efficiency which makes it\na useful format for applications operating over constrained networks.\n\nSlowBlink is a tool to support rapid development of telemetry systems.\nIt features an integrated schema parser, a dynamic message generator, and an extensible codec\ngenerator (to generate codecs in languages other than Ruby).\n\n[![Build Status](https://travis-ci.org/cjhdev/slow_blink.svg?branch=master)](https://travis-ci.org/cjhdev/slow_blink)\n[![Gem Version](https://badge.fury.io/rb/slow_blink.svg)](https://badge.fury.io/rb/slow_blink)\n\n## Highlights\n\n- Implements Blink Specification [beta4-2013-06-14](specification/blink/BlinkSpec-beta4.pdf \"Blink Specification\").\n- Integrated schema parser\n- Dynamic message class generator (no code generation step)\n    - Produces anonymous classes derived from `SlowBlink::Message::Group`\n    - Does not generate constants\n    - Supports [blink tag specification](specification/blink/BlinkTagSpec-beta4.pdf \"Blink Tag Specification\") and compact mode serialisation    \n- Extensible ERB based codec generator\n\n## Todo\n\n- More tests\n- Support `SlowBlink::Message::DATE`\n- More debug features (error messages involving anonymous classes are confusing)\n- Annotations are parsed but ignored\n\n## Installation\n\n~~~\ngem install slow_blink\n~~~\n\nRequires Ruby 2.0 and support for building native extensions.\n\n## Examples\n\nsee [examples](examples).\n\n## Documentation\n\n- SlowBlink interface documentation can be viewed [online](http://www.rubydoc.info/gems/slow_blink \"slow_blink\")\n- Blink Specification is maintained [here](http://www.blinkprotocol.org/ \"Blink Protocol\")\n- The version of Blink Specification implemented by SlowBlink is included in this repository under `specification/blink`\n\n## Typical Performance\n\n~~~\nschema with data:\n\n    InsertOrder/1 -\u003e\n        string Symbol,  # set to \"IBM\"\n        string OrderId, # set to \"ABC123\"\n        u32 Price,      # set to 125\n        u32 Quantity    # set to 1000\n\ncompact form:\n\n    \\x0F\\x01\\x03\\x49\\x42\\x4D\\x06\\x41\\x42\\x43\\x31\\x32\\x33\\x7D\\xA8\\x0F  (16 bytes)\n\nbenchmark:\n                                                         user     system      total        real\n100000 x Schema.new                                  3.630000   0.550000   4.180000 (  4.176857)\n100000 x Message::Model.new                          3.870000   0.000000   3.870000 (  3.873298)\n100000 x Message::Model#group.new#encode_compact     1.300000   0.000000   1.300000 (  1.295605)\n100000 x Message::Model#decode_compact               1.360000   0.000000   1.360000 (  1.362102)\n\nparse                 23941 schema/s\ngenerate              25817 model/s\ninitialise and encode 77184 message/s    (1234944 Bytes/s)\ndecode                73415 message/s    (1174640 Bytes/s)\n\nrunning ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]\non Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz\n~~~\n\nRun the same test by calling `rake benchmark`.\n\n## License\n\nSlowBlink has an MIT license.\n\n\n## Thanks\n\nMany thanks to the authors of Blink Protocol.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fslow_blink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjhdev%2Fslow_blink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fslow_blink/lists"}