{"repo":"ahimsalabs/tygor","free":true,"listed":false,"github":"https://github.com/ahimsalabs/tygor","clone":"git clone https://github.com/ahimsalabs/tygor.git","description":"Type-safe backend for Go + TypeScript apps.","language":"Go","stars":26,"topics":["api","go","golang","http","json","openapi","rpc","sqlc","trpc","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"tygor Type-safe Go backend for web apps. Write Go functions, call them from TypeScript with full type safety. No IDL required. What it looks like Write Go types and handlers: tygor generates TypeScript types: Call your API with full type safety: Try it now Clone the Solid.js + Vite starter and start building: Or React: bunx degit ahimsalabs/tygor-templates/starter-react my-app Prerequisites: Go 1.21+, Node.js 18+ Quick Start If you prefer to start from scratch rather than the example above: 1. Create your app with an export function The CLI finds your app by scanning for any exported function that returns tygor.App : - Query handlers serve GET requests (query params in URL) - Exec handlers serve POST requests (JSON body) 2. Generate TypeScript This creates: - types.ts - TypeScript interfaces for all your Go types - manifest.ts - Service registry for the client - schemas.zod.ts - Zod schemas (with --flavor zod ) 3. Call from TypeScript Development with Vite The Vite plugin gives you hot reload, error overlay, and devtools: The plugin automatically: - Runs tygor gen on startup and file changes - Hot-reloads your Go server with zero downtime - Shows build errors in-browser - Provides a devtools sidebar with API info Your frontend state persists across server reloads. See @tygor/vite-plugin for full docs. Why tygor? - No IDL required. Go structs are your schema. Or use protobuf if you prefer schema-first. - Standard HTTP/JSON. Debuggable with curl. Cacheable. Works with your exis","default_branch":null,"files":null,"tree":[],"storefront":"/r/ahimsalabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ahimsalabs/tygor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}