# New WIP zig-syrup library, and libsyrup C API

**URL:** <https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824>\
**Category:** OCapN Protocol\
**Created:** [May 17, 2026, 8:26am UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824 "2026-05-17T08:26:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivi](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/vivi/32/169_2.png) [@vivi](https://community.spritely.institute/u/vivi)\
**Post date:** [May 17, 2026, 8:26am UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824/1 "2026-05-17T08:26:05Z")

</div>

I have been working on a library for syrup, which is the OCapN wire protocol. The Zig library lets you work with syrup from Zig, and `libsyrup` can be used for any project that can interop with C.

- [zig-syrup](https://codeberg.org/vivicat/zig-syrup)
- [libsyrup](https://codeberg.org/vivicat/libsyrup)

I will try to remember to update this thread with progress!

---

<div class="post-metadata">

**Author:** ![vivi](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/vivi/32/169_2.png) [@vivi](https://community.spritely.institute/u/vivi)\
**Post date:** [May 24, 2026, 8:09am UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824/2 "2026-05-24T08:09:53Z")

</div>

I’ve made a lot of progress, and almost all Zig types can be loaded to and from a syrup string now. There’s also a bunch of customization.

I have also begun work on an OCapN/CapTP core library which I’ve pushed here: [zig-ocapn](https://codeberg.org/vivicat/zig-ocapn)

Currently it only has the models, but it should be able to write (and soon read) to/from Syrup into the models. Excited to go further with this.

---

<div class="post-metadata">

**Author:** ![jimisaacs](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/jimisaacs/32/465_2.png) [@jimisaacs](https://community.spritely.institute/u/jimisaacs)\
**Post date:** [August 19, 2026, 11:40pm UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824/3 "2026-08-19T23:40:11Z")

</div>

Hello @vivi, I have also been working on a zig syrup implementation, but it is is a part of a larger full OCapN implementation in zig. My problem is that I am very much using AI assistance. I started the project about 5 months ago, and within that time developed it privately while learning how to utilize AI, OCapN, and Zig all at the same time. It wasn’t until the last couple months that the entire FLOSS community all came out with separate but basically aligned terms of contributions with AI. I know it has been said that your own implementations can use AI, but I would also just like an implementation of OCapN to not be considered a harm to the community for any reason, so I am being very careful. So all this being said, I would be happy to share what I have if interested.

---

<div class="post-metadata">

**Author:** ![jimisaacs](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/jimisaacs/32/465_2.png) [@jimisaacs](https://community.spritely.institute/u/jimisaacs)\
**Post date:** [August 19, 2026, 11:44pm UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824/4 "2026-08-19T23:44:42Z")

</div>

I should also say, I have been working on an entire ocapn emperimental stack with zig at the core, but with multiple language bindings, multiple netlayers, a couple test apps, and even an ocapn topology visualizer.

---

<div class="post-metadata">

**Author:** ![vivi](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/vivi/32/169_2.png) [@vivi](https://community.spritely.institute/u/vivi)\
**Post date:** [November 10, 2026, 9:51pm UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824/11 "2026-11-10T21:51:01Z")

</div>

I’d like to clarify here that I haven’t abandoned these projects–they were just on the backburner for a bit. I am hoping to spin back up on this soon.

---

<div class="post-metadata">

**Author:** ![jimisaacs](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/jimisaacs/32/465_2.png) [@jimisaacs](https://community.spritely.institute/u/jimisaacs)\
**Post date:** [November 13, 2026, 9:16pm UTC](https://community.spritely.institute/t/new-wip-zig-syrup-library-and-libsyrup-c-api/824/12 "2026-11-13T21:16:50Z")

</div>

👋 I just shared the project here: [Glowcap, an OCapN implementation in Zig](https://community.spritely.institute/t/glowcap-an-ocapn-implementation-in-zig/900)

See:  
Website: [https://glowcap.org/](https://glowcap.org/)  
Rooms app: [glowcap rooms](https://glowcap.org/rooms/app/)  
ocapnviz app: [ocapnviz — OCapN network visualizer](https://glowcap.org/ocapnviz/)

and [PROVENANCE.md](https://github.com/glowcap-org/glowcap/blob/dev/PROVENANCE.md), for how I am building it with agents.
