Skip to content
/ zinc Public

Zinc is a framework written in pure Zig with a focus on high performance, usability, security, and extensibility.

License

Notifications You must be signed in to change notification settings

zon-dev/zinc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zinc


Zinc is a framework written in pure Zig with a focus on high performance, usability, security, and extensibility.

A basic example:

const zinc = @import("zinc");

pub fn main() !void {
    var z = try zinc.init(.{ .port = 8080 });

    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, which includes API examples and builds tag.

Examples

A number of examples demonstrating various use cases of Zinc in the zinc-examples repository.