[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6536":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":15,"starSnapshotCount":15,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},6536,"nanopb","nanopb\u002Fnanopb","Protocol Buffers with small code size","https:\u002F\u002Fjpa.kapsi.fi\u002Fnanopb\u002F",null,"C",5433,1026,123,76,0,1,8,68,5,77.83,"zlib License",false,"master",[25,26,27,5,28],"c","embedded","embedded-c","protocol-buffers","2026-06-12 04:00:29","Nanopb - Protocol Buffers for Embedded Systems\n==============================================\n\n![Latest change](https:\u002F\u002Fgithub.com\u002Fnanopb\u002Fnanopb\u002Factions\u002Fworkflows\u002Ftrigger_on_code_change.yml\u002Fbadge.svg)\n![Weekly build](https:\u002F\u002Fgithub.com\u002Fnanopb\u002Fnanopb\u002Factions\u002Fworkflows\u002Ftrigger_on_schedule.yml\u002Fbadge.svg)\n\nNanopb is a small code-size Protocol Buffers implementation in ansi C. It is\nespecially suitable for use in microcontrollers, but fits any memory\nrestricted system.\n\n* **Homepage:** https:\u002F\u002Fjpa.kapsi.fi\u002Fnanopb\u002F\n* **Git repository:** https:\u002F\u002Fgithub.com\u002Fnanopb\u002Fnanopb\u002F\n* **Documentation:** https:\u002F\u002Fjpa.kapsi.fi\u002Fnanopb\u002Fdocs\u002F\n* **Forum:** https:\u002F\u002Fgroups.google.com\u002Fforum\u002F#!forum\u002Fnanopb\n* **Stable version downloads:** https:\u002F\u002Fjpa.kapsi.fi\u002Fnanopb\u002Fdownload\u002F\n* **Pre-release binary packages:** https:\u002F\u002Fgithub.com\u002Fnanopb\u002Fnanopb\u002Factions\u002Fworkflows\u002Fbinary_packages.yml\n\n\nUsing the nanopb library\n------------------------\nTo use the nanopb library, you need to do two things:\n\n1. Compile your .proto files for nanopb, using `protoc`.\n2. Include *pb_encode.c*, *pb_decode.c* and *pb_common.c* in your project.\n\nThe easiest way to get started is to study the project in \"examples\u002Fsimple\".\nIt contains a Makefile, which should work directly under most Linux systems.\nHowever, for any other kind of build system, see the manual steps in\nREADME.txt in that folder.\n\n\nGenerating the headers\n----------------------\nProtocol Buffers messages are defined in a `.proto` file, which follows a standard\nformat that is compatible with all Protocol Buffers libraries. To use it with nanopb,\nyou need to generate `.pb.c` and `.pb.h` files from it:\n\n    python generator\u002Fnanopb_generator.py myprotocol.proto  # For source checkout\n    generator-bin\u002Fnanopb_generator myprotocol.proto        # For binary package\n\n(Note: For instructions for nanopb-0.3.9.x and older, see the documentation\nof that particular version [here](https:\u002F\u002Fgithub.com\u002Fnanopb\u002Fnanopb\u002Fblob\u002Fmaintenance_0.3\u002FREADME.md))\n\nThe binary packages for Windows, Linux and Mac OS X should contain all necessary\ndependencies, including Python, python-protobuf library and protoc. If you are\nusing a git checkout or a plain source distribution, you will need to install\nPython separately. Once you have Python, you can install the other dependencies\nwith `pip install --upgrade protobuf grpcio-tools`.\n\nYou can further customize the header generation by creating an `.options` file.\nSee [documentation](https:\u002F\u002Fjpa.kapsi.fi\u002Fnanopb\u002Fdocs\u002Fconcepts.html#modifying-generator-behaviour) for details.\n\n\nRunning the tests\n-----------------\nIf you want to perform further development of the nanopb core, or to verify\nits functionality using your compiler and platform, you'll want to run the\ntest suite. The build rules for the test suite are implemented using Scons,\nso you need to have that installed (ex: `sudo apt install scons` or `pip install scons`).\nTo run the tests:\n\n    cd tests\n    scons\n\nThis will show the progress of various test cases. If the output does not\nend in an error, the test cases were successful.\n\nNote: Mac OS X by default aliases 'clang' as 'gcc', while not actually\nsupporting the same command line options as gcc does. To run tests on\nMac OS X, use: `scons CC=clang CXX=clang++`. Same way can be used to run\ntests with different compilers on any platform.\n\nFor embedded platforms, there is currently support for running the tests\non STM32 discovery board and [simavr](https:\u002F\u002Fgithub.com\u002Fbuserror\u002Fsimavr)\nAVR simulator. Use `scons PLATFORM=STM32` and `scons PLATFORM=AVR` to run\nthese tests.\n\n\nBuild systems and integration\n-----------------------------\nNanopb C code itself is designed to be portable and easy to build\non any platform. Often the bigger hurdle is running the generator which\ntakes in the `.proto` files and outputs `.pb.c` definitions.\n\nThere exist build rules for several systems:\n\n* **Makefiles**: `extra\u002Fnanopb.mk`, see `examples\u002Fsimple`\n* **CMake**: `extra\u002FFindNanopb.cmake`, see `examples\u002Fcmake`\n* **SCons**: `tests\u002Fsite_scons` (generator only)\n* **Bazel**: `BUILD.bazel` in source root\n* **Conan**: `conanfile.py` in source root\n* **Meson**: `meson.build` in source root\n* **PlatformIO**: https:\u002F\u002Fplatformio.org\u002Flib\u002Fshow\u002F431\u002FNanopb\n* **PyPI\u002Fpip**: https:\u002F\u002Fpypi.org\u002Fproject\u002Fnanopb\u002F\n* **vcpkg**: https:\u002F\u002Fvcpkg.io\u002Fen\u002Fpackage\u002Fnanopb\n\nAnd also integration to platform interfaces:\n\n* **Arduino**: http:\u002F\u002Fplatformio.org\u002Flib\u002Fshow\u002F1385\u002Fnanopb-arduino\n* **Zephyr**: https:\u002F\u002Fdocs.zephyrproject.org\u002Flatest\u002Fservices\u002Fserialization\u002Fnanopb.html\n\n","nanopb 是一个专为嵌入式系统设计的轻量级 Protocol Buffers 实现。它使用 ANSI C 编写，具有极小的代码体积，特别适用于微控制器等内存受限的环境。核心功能包括支持通过 `protoc` 编译 `.proto` 文件生成 C 语言源码，以及提供基本的消息编码和解码函数。技术特点上，nanopb 通过优化数据结构和算法来减少资源消耗，同时保持与标准 Protocol Buffers 的兼容性。适合在物联网设备、传感器节点以及其他对存储空间有严格限制的应用场景中使用。",2,"2026-06-11 03:07:29","top_language"]