talira

Compare

parsecSunshinepegMegaparsec
What it isMonadic parser combinatorsSelf-hosted game stream host for MoonlightPackrat parser generator for Go from Parsing Expression GrammarsIndustrial-strength monadic parser combinators for Haskell
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.350.760.450.52
Stars890438421120982
Last commit2026-06-092026-11-232026-10-122026-11-21
LicenceBSD-2-ClauseGPL-3.0-onlyBSD-3-ClauseBSD-2-Clause
PricingFree and open sourceFree and open sourceFreeFree and open source
Free tierYesYesYesYes
Self-hostable—Yes——
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
CompanyOleg Grenrus and Herbert Valerio RiedelLizardByteAndrew SnodgrassMark Karpov
Features
  • monadic parser combinators
  • monad transformer that stacks on any monad
  • parametric in the input stream type
  • good error messages
  • legacy parsec-2 API kept for compatibility
  • streams to any Moonlight client
  • hardware encoding on AMD, Intel and NVIDIA GPUs, plus software encoding
  • AMF, NVENC, Quick Sync, VA-API, VideoToolbox and Vulkan Video encoders
  • screen capture through DXGI, KMS/DRM, ScreenCaptureKit, X11 and Wayland
  • gamepad emulation for Xbox 360/One/Series, DualShock 4, DualSense and Switch Pro
  • web UI for applications, settings and device pairing
  • 4K and HDR streaming on supported GPUs
  • Windows, Linux, macOS and FreeBSD hosts
  • All 9 features
  • Generates Go parsers from .peg grammar files
  • Packrat parsing with backtracking and negative look-ahead
  • Go code actions inside the grammar
  • Runs as a go tool from go generate
  • Inline and switch code generation options
  • Monadic parser combinators built around the MonadParsec type class
  • Recovers from parse errors and reports several at once
  • Typed, custom parse errors whose position can differ from the current offset
  • Fast tokens, takeWhileP and takeP primitives
  • Parses String, ByteString, Text and custom token streams
  • Lexer modules for white space, comments, indentation and binary data
Limitations
    • Full controller support on Windows and macOS needs a paid libvirtualhid licence: some gamepad profiles need a separately installed Virtual HID Broker