{"id":19577946,"url":"https://github.com/mihaigalos/osi-stack","last_synced_at":"2026-05-17T14:34:02.261Z","repository":{"id":47139907,"uuid":"257656746","full_name":"mihaigalos/osi-stack","owner":"mihaigalos","description":"🧩 OSI communication stack.","archived":false,"fork":false,"pushed_at":"2023-12-21T13:55:10.000Z","size":323,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T11:46:07.515Z","etag":null,"topics":["arduino","avr","cpp","embedded","library"],"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/mihaigalos.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}},"created_at":"2020-04-21T16:52:57.000Z","updated_at":"2022-10-03T11:15:43.000Z","dependencies_parsed_at":"2025-02-26T11:44:02.256Z","dependency_job_id":"07cf10e2-fd4a-454e-98c6-43fbf356842a","html_url":"https://github.com/mihaigalos/osi-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mihaigalos/osi-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaigalos%2Fosi-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaigalos%2Fosi-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaigalos%2Fosi-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaigalos%2Fosi-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mihaigalos","download_url":"https://codeload.github.com/mihaigalos/osi-stack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaigalos%2Fosi-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33142210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["arduino","avr","cpp","embedded","library"],"created_at":"2024-11-11T07:08:57.623Z","updated_at":"2026-05-17T14:33:57.251Z","avatar_url":"https://github.com/mihaigalos.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSI Stack\n\n[![codecov](https://codecov.io/gh/mihaigalos/osi-stack/branch/master/graph/badge.svg)](https://codecov.io/gh/mihaigalos/osi-stack)\n[![license](https://img.shields.io/badge/license-GPLv3-brightgreen.svg)](LICENSE)\n[![LoC](https://tokei.rs/b1/github/mihaigalos/osi-stack)](https://github.com/Aaronepower/tokei)\n\n![Last Logs](https://img.shields.io/endpoint?style=social\u0026url=https%3A%2F%2Fapi.cl1p.net%2Fosi-stack%2Fclipboard)\n\nOSI communication stack, initially written for AVR UART communication. \n\nThis implementation intentionally uses raw pointers instead of smart pointers.\n\nThe reasoning is that it will be ported to small 8-bit hardware architectures such as AVR/Arduino, with limited support for modern C++.\n\n### Layers\n\n\u003cimg src=\"http://www.plantuml.com/plantuml/proxy?cache=no\u0026src=https://raw.githubusercontent.com/mihaigalos/osi-stack/master/doc/sources/iso_osi_layers.puml\" alt=\"ISO/OSI Layers (Rough Model).\" /\u003e\n\n### Build and Test\n\nFirst, get the sources:\n```\ngit clone https://github.com/mihaigalos/osi-stack.git \u0026\u0026 cd osi-stack\n```\n\n#### Baremetal\n\nBuilding and testing is managed by `bazel`, including dependencies to other repos such as [containers](https://github.com/mihaigalos/containers) (transparent to the end-user).\n\n```bash\nbazel build //...\nbazel test //...\n```\n\n#### Using Docker\n\n```bash\ndocker run -it --rm --cap-add SYS_PTRACE -v $(pwd):/src -v /tmp:/tmp/bazel docker.pkg.github.com/mihaigalos/docker/bazel /bin/zsh -c \"cd /src \u0026\u0026 bazel --output_base=/tmp/bazel test //...\"\n```\n\n#### Session Layer Authentification\n\nThe Session handshake is described in the following diagram:\n\n\u003cimg src=\"http://www.plantuml.com/plantuml/proxy?cache=no\u0026src=https://raw.githubusercontent.com/mihaigalos/osi-stack/master/doc/sources/session_handshake.puml\" alt=\"ISO/OSI Layers (Rough Model).\" /\u003e\n\n#### Matter of principles\n\nThis code respects many of the Clean Code \u0026 Architecture Principles:\n\n* Composition over Inheritance\n* Dependency Injection\n* DMT\n* Docs as Code\n* DRY\n* FIRST\n* GRASP\n* KISS\n* Single Source of Truth\n* SoC\n* SOLID\n* TDD\n* Testing Pyramid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihaigalos%2Fosi-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmihaigalos%2Fosi-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihaigalos%2Fosi-stack/lists"}