swift-xgrammar. A Swift package for grammar-guided text generation, powered by xgrammar

github.com/mattt/swift-xgrammar

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

February 2026
  • Release —0.1.0
  • Add CI workflow (#1)
  • Update README
  • Add platforms key to Package.swift
  • Overhaul docs
  • Throw errors instead of failing silently or crashing
  • Update compiler and matcher to adopt reference semantics
  • Incorporate feedback from review
  • Add README
  • Remove interoperabilityMode in test target
  • Add LICENSE
  • Revert "Restructure to eliminate need for interoperabilityMode(.Cxx)"
  • Use cXXLanguageStandard instead of unsafeFlags
  • Reapply "Restructure to eliminate need for interoperabilityMode(.Cxx)"
  • make format
  • Add .gitattributes
  • Add Makefile
  • Overhaul tests
  • Add .clang-format
  • Add .swift-format
  • Restructure to eliminate need for interoperabilityMode(.Cxx)