8000 GitHub - andrewrk/ziggy: A data serialization language for expressing clear API messages, config files, etc.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andrewrk/ziggy

 
 

Repository files navigation

Ziggy

A data serialization language for expressing clear API messages, config files, etc.

Status

Alpha, using Ziggy now means participating in its development.

At a glance

.id = @uuid("..."),
.time = 1710085168,
.payload = Command {
  .do = @action("clear_chat"),
  .sender = "kristoff-it",
  .roles = ["admin", "mod"],
  .extra = {
    "agent": "Mozilla/5.0",
    "os": "Linux/x64", 
  },
}

Value Types

Ziggy values can be of the following types:

  • Bytes "🧑‍🚀", "\x1B[?1000h gang", \\multiline
  • Numbers 123_000, 1.23, 0xff_ff_ff, 0o7_5_5, 0b01_01_01
  • Null null
  • Bool true, false
  • Custom Literals @date("2020-12-01"), @v("1.0.0"), @foo("bar")
  • Array [1, 2, 3]
  • Struct { .fixed = "schema" }, Named { .for = "unions of structs" }
  • Map { "custom": "keys" }

Documentation

See the official website: https://ziggy-lang.io

Development

In order to build with nix using the correct dependencies please keep updated the deps.nix file every time the build.zig.zon is changed. In order to do so use

nix run .#update-deps

About

A data serialization language for expressing clear API messages, config files, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Zig 68.0%
  • C 26.3%
  • TypeScript 2.2%
  • JavaScript 1.3%
  • Rust 1.2%
  • Nix 0.4%
  • Other 0.6%
0