Samva
Open-source packages, examples, cookbooks, and agent plugins for integrating Samva into real applications.
Use these to send transactional email, connect auth email flows, work with templates, handle delivery events, and verify signed webhooks.
Structure
packages/*— package integrations (@samva/*).examples/*— complete, runnable example apps.cookbooks/*.md— documentation-first, copy-pasteable recipes.plugins/*— coding-agent plugins and public documentation.
The maintained integrations target the published Samva 0.3 email SDK. Workspace
packages and examples use samva@^0.3.0; copyable external import maps pin
samva@0.3.0.
Package integrations
@samva/better-auth— Better Auth email callbacks powered by Samva.@samva/email-sdk— Provider-owned Samva community adapter for Email SDK.
Agent plugins
samva— OpenAI Codex and Cursor packaging for the canonical hosted MCP server and Samva agent skill.
Cookbooks
AstroAuth.jsBetter AuthClerkEffect SDKEmail SDKHono on Cloudflare WorkersNext.jsPrismaReact EmailSupabase AuthSvelteKitTanStack Start
Integrations land as individual pull requests. See CONTRIBUTING.md to propose or build one.
Examples
astro-email— Astro Action and JSON endpoint on Cloudflare Workers.better-auth-nextjs— Better Auth callbacks in a Next.js App Router application.clerk-webhook— Clerk webhook verification and transactional email in Next.js.effect-sdk— Email sends through thesamva/effectSDK entrypoint.email-sdk— Email SDK sends through the provider-owned Samva community adapter.hono-cloudflare-workers— Hono Worker with a JSON email endpoint.nextjs-transactional— App Router contact form plus/api/sendroute handler using the Samva SDK.react-email-samva— React Email rendering and delivery through Samva.supabase-auth-hook— Supabase Auth Send Email Hook implemented as an Edge Function.sveltekit-transactional— SvelteKit form action and raw email endpoint.tanstack-start-transactional— TanStack Start server function and server route.
Getting started
This is a Bun + Turborepo monorepo.
bun install
bun run build
bun run typecheck
bun run test
bun run lint
bun run format:check
Contributing
Contributions are welcome — see CONTRIBUTING.md for local setup, package conventions, and how to propose a new integration. Maintainers use the Tegami release flow for package versions, changelogs, npm publication, tags, and GitHub Releases. GitHub Actions publishes; merging the Version Packages pull request is the human gate.
Security
To report a vulnerability, see SECURITY.md. Please do not file public issues for security reports.
License
MIT © Arya Labs, Inc.