# Datastar SDK - A Fullstack WebDev Framework for Zig 0.16-dev

**URL:** <https://ziggit.dev/t/datastar-sdk-a-fullstack-webdev-framework-for-zig-0-16-dev/13891>\
**Category:** Showcase\
**Tags:** web, http, datastar\
**Created:** [January 10, 2026, 1:03pm UTC](https://ziggit.dev/t/datastar-sdk-a-fullstack-webdev-framework-for-zig-0-16-dev/13891 "2026-01-10T13:03:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zigster](https://ziggit.dev/user_avatar/ziggit.dev/zigster/32/51_2.png) [@zigster](https://ziggit.dev/u/zigster)\
**Post date:** [January 10, 2026, 1:03pm UTC](https://ziggit.dev/t/datastar-sdk-a-fullstack-webdev-framework-for-zig-0-16-dev/13891/1 "2026-01-10T13:03:53Z")

</div>

An implementation of the Datastar SDK for Zig 0.16-dev latest

- Write reactive multi-player web apps, entirely driven from the backend
- No JS, no npm, no build step (other than `zig build`)
- Includes bundled/optional HTTP server using latest std.http and [std.Io](http://std.Io)
- Includes bundled/optional PubSub message broker for doing event sourcing / multiplayer
- Includes several non-trival example apps to demonstrate the full SDK

> **[GitHub - zigster64/datastar.zig: Datastar SDK for zig 0.16](https://github.com/zigster64/datastar.zig)**
>
> Datastar SDK for zig 0.16

It is 0.16-dev, so its all bleeding edge, and will break often as things change.

Might be useful if you are getting into 0.16, and want to play with HTTP servers, new IO, etc.

The stable Zig 0.15.2 Datastar SDK for http.zig based servers exists in a separate repo, and is available for those who dont want to live on the bleeding edge.

> **[GitHub - zigster64/datastar.http.zig: Alternate Datastar API for http.zig](https://github.com/zigster64/datastar.http.zig)**
>
> Alternate Datastar API for http.zig

---

<div class="post-metadata">

**Author:** ![invlpg](https://ziggit.dev/letter_avatar_proxy/v4/letter/i/13edae/32.png) [@invlpg](https://ziggit.dev/u/invlpg)\
**Post date:** [January 10, 2026, 3:05pm UTC](https://ziggit.dev/t/datastar-sdk-a-fullstack-webdev-framework-for-zig-0-16-dev/13891/2 "2026-01-10T15:05:45Z")

</div>

Just took a look at the examples, and I notice you’re using `init.arena` as the primary allocator whereas prior to updating to use juicy main you were using `DebugAllocator`. I think it might be better to use `init.gpa` as your main allocator because you also appear to be wrapping your `init.arena` in another ArenaAllocator for every request, which means that when concurrent requests occur you’re also very likely going to leak memory over the lifetime of the server program.

---

<div class="post-metadata">

**Author:** ![lalinsky](https://ziggit.dev/user_avatar/ziggit.dev/lalinsky/32/3720_2.png) [@lalinsky](https://ziggit.dev/u/lalinsky)\
**Post date:** [January 10, 2026, 3:15pm UTC](https://ziggit.dev/t/datastar-sdk-a-fullstack-webdev-framework-for-zig-0-16-dev/13891/3 "2026-01-10T15:15:08Z")

</div>

Also, one very important thing, you are ignoring the result of `io.concurrent` which means leaking potentially large amounts of memory. You should use `Io.Group.concurrent` there. And also you need to close the connection if `concurrent` fails.

The arena allocator is a problem because it’s bump allocator, pretty much only ever growing.

---

<div class="post-metadata">

**Author:** ![zigster](https://ziggit.dev/user_avatar/ziggit.dev/zigster/32/51_2.png) [@zigster](https://ziggit.dev/u/zigster)\
**Post date:** [January 10, 2026, 9:31pm UTC](https://ziggit.dev/t/datastar-sdk-a-fullstack-webdev-framework-for-zig-0-16-dev/13891/4 "2026-01-10T21:31:32Z")

</div>

Useful feedback re using init.gpa and Io.group for concurrency - thanks. Will apply those improvements asap.

Yeah, I can see now how basing off init.arena at the top level is a footgun in this case. The example apps behave OK under load, but yeah that’s a possible footgun leaving it like that. Thanks for pointing that out.

Will definitely add some more robust bench and memory consumption work before sticking a release tag on anything here. As you know, Io is very much a moving target still, so I’m expecting a few passes of little rewrites here and there along the way. Especially interested in seeing Io.Evented land.

What I’m hoping for in the longer term is we end up with some good interface patterns for web dev, and a healthy ecosystem of compatible and modular components that can be swapped in and out with relative ease (including routers, middleware, custom Io implementations, etc)
