Plugins
Every feature beyond the content core is a plugin on the same public extension API you would use yourself, plus one small adapter package per outside provider.
A plugin is a package you add to plugins: [] in tansy.config.ts. It can add collections, field
types, blocks, permissions, dashboard pages, API routes, jobs, record hooks and components on the
site's pages. The plugins below are first-party, but they use nothing private: anything they do,
your own plugin can do. See Extending Tansy for the API and
Write and publish a plugin for the walkthrough.
import { defineCms } from "tansy/config";
import { blog } from "@tansy/blog";
import { forms } from "@tansy/forms";
export default defineCms({
plugins: [
blog({ siteUrl: "https://example.com", comments: "moderated" }),
forms({ notify: "owner@example.com" }),
],
});Removing a line removes the feature. Plugins declare their own schema migrations, so adding one
and running tansy migrate is all a feature needs.
Features
Blog
Posts, categories, tags, authors, comments with moderation, RSS and Atom feeds.
LMS
Courses, lessons, enrollments, progress, quizzes and verifiable certificates.
Shop
Products, variants, stock, cart, shipping, orders and fulfilment.
Payments
Plans, subscriptions and purchases as CMS data. Money stays with the provider.
Subscriptions
One dashboard section for plans, members and gating content behind them.
Forms
Contact forms built from field blocks, with spam protection and email to the owner.
Newsletter
Subscribers with double opt-in, one-click unsubscribe, and campaigns in batches.
Send the site's mail through an email API instead of SMTP.
CAPTCHA
Turnstile, hCaptcha or reCAPTCHA on sign-in and on any plugin's forms.
AI
An assistant that writes, fills forms and creates content as the signed-in person.
Analytics
Cookieless page views on the dashboard, or sent on to an analytics service.
Request logs
Every API request, on the dashboard and shipped to storage or a log service.
OpenTelemetry logs
The audit log and request log over OTLP, to Grafana, Datadog, Axiom or any collector.
Provider adapters
Several plugins keep the provider out of the core package: you add the feature plugin and one small adapter for the service you use. Swapping services is swapping one package.
| Plugin | Adapters |
|---|---|
| AI | ai-openai, ai-anthropic, ai-google, ai-mistral, ai-groq, ai-deepseek, ai-xai, ai-openrouter, ai-gateway, ai-opencode, ai-commandcode, ai-openai-compatible |
email-resend, email-sendgrid, email-postmark, email-mailgun, email-brevo, email-ses | |
| Payments | payments-stripe, payments-polar, payments-creem, payments-dodo, payments-commet |
| CAPTCHA | captcha-turnstile, captcha-hcaptcha, captcha-recaptcha |
| Analytics | analytics-plausible, analytics-umami, analytics-google, analytics-fathom, analytics-matomo |
| File storage | storage-vercel-blob, storage-cloudinary, storage-uploadthing, storage-bunny |
| Search | search-meilisearch, search-typesense, search-algolia |
Every name above is scoped @tansy/.
Smaller plugins
SEO
Title and description fields for search results, and a sitemap from your URL patterns.
Social sign-in
Sign in with Google, GitHub and four more, each given its keys on the dashboard.
Pwned passwords
Refuses passwords found in known breaches. Only a hash prefix leaves the server.
Multi-tenancy
Many sites or customers in one install, each seeing only its own records, files and domains.
Writing your own
Extending Tansy
Four ways in, from no code to full code. Read the security model first: extensions run as trusted server code.
Blog plugin (`@tansy/blog`)
Installing it turns the CMS into a blog: posts with bylines, categories and tags, author and editor roles, comments with moderation, RSS and Atom feeds, and public pages under any theme.