{"id":15107566,"url":"https://github.com/opensmock/bloc-serialization","last_synced_at":"2026-01-26T18:02:37.451Z","repository":{"id":130589232,"uuid":"592244470","full_name":"OpenSmock/Bloc-Serialization","owner":"OpenSmock","description":"Bloc serialization features to store/unstore BlElements.","archived":false,"fork":false,"pushed_at":"2025-08-13T14:50:03.000Z","size":156,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T16:36:02.891Z","etag":null,"topics":["bloc","graphics","graphics-library","hmi","ihm","open-smock","pharo","pharo-smalltalk","serialization","serialization-library","serialize","serializer","smalltalk","smock","ston","ui","ux"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","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/OpenSmock.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,"zenodo":null}},"created_at":"2023-01-23T09:54:05.000Z","updated_at":"2025-08-11T14:23:17.000Z","dependencies_parsed_at":"2023-12-02T12:31:43.314Z","dependency_job_id":"1b655b2c-210e-4818-aff4-b2304952e74d","html_url":"https://github.com/OpenSmock/Bloc-Serialization","commit_stats":{"total_commits":85,"total_committers":7,"mean_commits":"12.142857142857142","dds":0.6941176470588235,"last_synced_commit":"0effcdc6ec1173b7310da9be829400ee47e00ad3"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/OpenSmock/Bloc-Serialization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FBloc-Serialization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FBloc-Serialization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FBloc-Serialization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FBloc-Serialization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSmock","download_url":"https://codeload.github.com/OpenSmock/Bloc-Serialization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FBloc-Serialization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28784093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: 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":["bloc","graphics","graphics-library","hmi","ihm","open-smock","pharo","pharo-smalltalk","serialization","serialization-library","serialize","serializer","smalltalk","smock","ston","ui","ux"],"created_at":"2024-09-25T21:25:31.678Z","updated_at":"2026-01-26T18:02:37.420Z","avatar_url":"https://github.com/OpenSmock.png","language":"Smalltalk","readme":"[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 13](https://img.shields.io/badge/Pharo-13-%23aac9ff.svg)](https://pharo.org/download)\n\n[![License](https://img.shields.io/github/license/OpenSmock/Bloc-Serialization.svg)](./LICENSE)\n[![Unit tests](https://github.com/OpenSmock/Bloc-Serialization/actions/workflows/CI.yml/badge.svg)](https://github.com/OpenSmock/Bloc-Serialization/actions/workflows/CI.yml)\n\n# Bloc-Serialization\n\nBloc serialization features to store/unstore BlElements.\n\n## Getting Started\n\n### Installation\n\nTo install Bloc-Serialization on your Pharo image you can just execute the following script:\n\n```smalltalk\nMetacello new\n\tbaseline: 'BlocSerialization';\n\trepository: 'github://OpenSmock/Bloc-Serialization:main/src';\n\tload.\n```\n\n## How to use\n\n### Serialization\n\nUse this method to serialize any BlElement into a String.\n\n```smalltalk\nblElement := BlElement new.\n\nstring := blElement serialize.\n```\n\nUse same method to serialize a list of BlElement into a String.\n\n```smalltalk\noc := OrderedCollection new.\noc add: BlElement new.\noc add: BlElement new.\noc add: BlElement new.\n\nstring := oc serialize.\n```\n\n### Materialization (Deserialization)\n\nUse this method to materialize any serialized String into a BlElement.\nOf course, you need to know that the string is a serialized BlElement.\n\n```smalltalk\nblElement := string materializeAsBlElement.\n```\n\nUse this method to materialize any serialized String into a BlElement collection.\nOf course, you need to know that the string is a serialized Collection.\n\n```smalltalk\noc := string materializeAsBlElement.\n```\n\nTips : you can quickly copy a `BlElement` using `BlElement\u003e\u003eserializeThenMaterialize`.\n```smalltalk\nelement := BlElement new.\ncopy := element serializeThenMaterialize.\n```\n\n### Exception / Error\n\nSerialization or Materialization process return some exceptions in case of problems : \n- `BlocSerializerError`\n\u003e  `BlocSerializationError`\n\u003e `BlocMaterializationError`\n\n## Serialization backends\n\nActually `STON` is the only backend used for serialization. The project architecture allow to add anothers serialization backends if needed.\n\n## Dependencies\n\n- [Bloc](https://github.com/pharo-graphics/Bloc)\n- [STON](https://github.com/svenvc/ston)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensmock%2Fbloc-serialization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensmock%2Fbloc-serialization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensmock%2Fbloc-serialization/lists"}