1 pointby antistructured2 hours ago1 comment
  • antistructured2 hours ago
    JavaScript has great compile-time types (TypeScript), but at runtime, those types disappear.

    SigilJS is a tiny library that lets you describe data using type sigils and validate it at runtime.

    Example:

    const User = Sigil` { name: string age?: number } `

    User.check(data)

    Zero dependencies. Bun-first.

    Would love feedback.