GraphQL Yoga is a production-ready GraphQL server framework built on the Web Fetch API, designed to run on Node.js, Deno, Bun, Cloudflare Workers, and other serverless platforms. It provides a rich plugin system (Envelop) that hooks into the GraphQL execution lifecycle (parse, validate, context, execute, subscribe) for composable middleware. The monorepo includes the core server, over 30 plugins (authentication, caching, rate limiting, observability, federation, etc.), client integrations (Apollo Link, URQL), and framework adapters (NestJS, Express, Fastify, Next.js, SvelteKit, etc.). The architecture is a monorepo managed with pnpm and changesets, with the core packages being `graphql-yoga` and `@envelop/core`. Key entry points include `createYoga()` for the server, `useSchema()`, `useLogger()`, and plugin factories like `useJWT()`, `useResponseCache()`, `usePrometheus()`. Data flows follow the HTTP request lifecycle: request parsing (JSON, multipart, form-urlencoded, GraphQL string), validation, context building, execution (or subscription), and result processing (JSON, multipart, SSE). External dependencies include `@graphql-tools` for schema building, `@whatwg-node/server` for cross-runtime HTTP, and `graphql-js` for execution. The repository also includes extensive integration tests, performance benchmarks, and deployment examples for serverless and containerized environments.
Polar is an open-source, full-stack monetization platform designed for AI-era software developers. It serves as a Merchant of Record, handling checkout flows, subscriptions, usage-based billing, seats, discounts, and global tax compliance. The system is built as a monorepo with a Python/FastAPI backend (async SQLAlchemy, Dramatiq workers, PostgreSQL, Redis, Tinybird for event analytics), a Next.js web dashboard and customer portal, a React Native mobile app (Expo), a design system (Orbit), and multiple SDKs (TypeScript, Python) with a CLI tool. Architecture follows a service-oriented pattern with versioned REST APIs (2026-04, 2026-10, 2027-01), a repository pattern for persistence, benefit fulfillment strategies for integrations (Discord, GitHub, Slack, license keys), and framework adapters (Next.js, Nuxt, TanStack Start, Better Auth) for easy integration. The platform also includes an internal backoffice (HTMX/tagflow), observability (SLOs, invariants, Prometheus metrics), and merchant migration tooling from Stripe.