https://github.com/zon-dev/zinc
Zinc is a web framework written in pure Zig with a focus on high performance, usability, security, and extensibility.
https://github.com/zon-dev/zinc
api epoll framework io-uring iouring kqueue performance resetful rest-api usability web web-development web-framework zig zig-package zig-zinc ziglang zinc
Last synced: 20 days ago
JSON representation
Zinc is a web framework written in pure Zig with a focus on high performance, usability, security, and extensibility.
- Host: GitHub
- URL: https://github.com/zon-dev/zinc
- Owner: zon-dev
- License: mit
- Created: 2024-03-19T12:40:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T07:20:50.000Z (about 2 months ago)
- Last Synced: 2025-04-05T19:17:00.545Z (22 days ago)
- Topics: api, epoll, framework, io-uring, iouring, kqueue, performance, resetful, rest-api, usability, web, web-development, web-framework, zig, zig-package, zig-zinc, ziglang, zinc
- Language: Zig
- Homepage: https://zinc.zon.dev
- Size: 304 KB
- Stars: 96
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - zon-dev/zinc
README
# zinc
----
Zinc is a framework written in pure Zig with a focus on high performance, usability, security, and extensibility.
**:construction: It's still under development. Built on std.net. Not the fastest zig framework in the universe, but fast enough.**
**In the works**:
* Remove std.http.Server
* Blocking mode auto change to kqueue for MacOS and BSD
* Non-blocking mode auto change to io_uring for LinuxA basic example:
```zig
const zinc = @import("zinc");pub fn main() !void {
var z = try zinc.init(.{ .port = 8080 });
defer z.deinit();
var router = z.getRouter();
try router.get("/", helloWorld);try z.run();
}fn helloWorld(ctx: *zinc.Context) anyerror!void {
try ctx.text("Hello world!", .{});
}
```### Some features are:
- **Fast**
- **Custom allocator**
- **Multithreading**
- **Middleware**
- **Routes grouping**
- **Rendering built-in**
- **Extensible**
- **Suite of unit tests**
- **Usability**### Documentation
See more at https://zinc.zon.dev/#### Quick Start
Learn and practice with the Zinc [Quick Start](https://zinc.zon.dev/src/quickstart.html), which includes API examples and builds tag.#### Examples
A number of examples demonstrating various use cases of Zinc in the [zinc-examples](https://github.com/zon-dev/zinc-examples) repository.