Repository navigation
Releases
v0.5.0
Integrations for --Auth saas (API keys, an MCP endpoint for AI assistants, webhooks and
encrypted secrets), and notifications and "Download your data" for every app with accounts.
Changes to know about
- The realtime connection is shared by the whole page.
lib/realtime.tsowns the tab's one
SignalR connection, and components listen withuseRealtime(onMessage, onResync).
useTodoRealtimeis built on it; code that copied its old connection setup should switch. - The header has a notifications bell beside the user menu (with accounts), and the user
menu's button is markeddata-menu="account"(the end-to-end tests use it). EmailMessagehas an optionalUnsubscribeUrl, whichSmtpEmailSendersends as the
List-Unsubscribeheaders. CustomIEmailSenders should do the same for notification emails.- EF Core: new migrations add notifications (
identityandsaas) and integrations (saas). - New package with
saas:ModelContextProtocol.AspNetCore(the official C# MCP SDK,
Apache-2.0).
Projects created from earlier versions don't change: a template update only affects new projects.
New
- API keys (
saas): owners and admins create, rotate and revoke keys on the organisation's
Integrations page. A key (Authorization: Bearer sk_...) acts as its creator in its
organisation, with a read or read-and-write scope and a rate limit, and only reaches the paths
it's for (ApiKeys:AllowedPaths). Only a hash is stored. - MCP (
saas):/mcpserves the Todos as tools (list_todos,add_todo,complete_todo)
for AI assistants, with an API key, following the API's rules (validation, plan limits,
realtime updates, webhooks). - Outgoing webhooks (
saas): signed the Standard Webhooks way, sent from a durable queue with
retries for about 10 hours, logged with the receiver's answer, with resend and test events.
Never to localhost or private networks in production. Todo created and completed are the
example events; add more withWebhookEvents.Raise. - Secrets (
saas): owners store keys and tokens for other services, encrypted with Data
Protection and never shown again; the app reads them withOrganisationSecrets.GetAsync. - Receiving webhooks (
saas):POST /api/webhooks/incoming/{source}for any Standard
Webhooks provider, configured withWebhooks__Incoming__Secrets__<source>. - Notifications (accounts): reminders (and, with
saas, people joining an organisation you
manage) appear under a bell in the header, live, and are emailed unless turned off in
Settings or with the email's one-click unsubscribe link. PublishSendNotificationto add more. - Download your data (accounts): Settings downloads everything stored about the user as JSON;
withsaas, owners download their organisation's data. Features add sections with
IPersonalDataSourceandIOrganisationDataSource.
See the generated app's docs/integrations.md and docs/accounts.md.
v0.4.1
The template is renamed the LibreSharp SaaS Starter. Billing and a full back office for --Auth saas, and shadcn/ui with dark mode on every page.
Changes to know about
- The template is renamed the LibreSharp SaaS Starter. The package is now
LibreSharp.Templates.SaasStarterand the commanddotnet new saas-starter; the repository
moved to LibreSharp/saas-starter (old links
redirect).LibreSharp.Templates.WolverineFxReactis deprecated and gets no more versions:
dotnet new uninstall LibreSharp.Templates.WolverineFxReact, then
dotnet new install LibreSharp.Templates.SaasStarter. --Authdefaults tosaas. Pass--Auth nonefor the previous default.- With accounts, the admin page is a back office with sections. Users are at
/adminwith
--Auth identityand at/admin/userswithsaas(where/adminis the dashboard). The
user menu in the header is a dropdown. - The UI uses shadcn/ui (MIT) and the theme's colours, and dark
mode follows the operating system. New client dependencies:radix-ui,lucide-react,
class-variance-authority,cn,tw-animate-css,shadcn(for its Tailwind styles) and the
Geist font, served by the app itself. - EF Core: new migrations add the audit log (
identityandsaas), and billing and back
office tables (saas).
Projects created from earlier versions don't change: a template update only affects new projects.
New
- Plans, trials and limits (
--Auth saas):- A plan catalogue in one place (
Billing/Plans.cs), with prices per currency, features and
limits. Plans have versions, so customers keep their price when a plan changes. - A reverse trial: a new organisation gets the top plan for 14 days, then the free plan.
- One check for features and limits (
Entitlements), in WolverineBeforemethods (402
Payment Required) and in the client (GET /api/billing). Features are feature flags
(Microsoft.FeatureManagement). - Limits on what exists (open Todos, members including invitations) and on use per billing
period (reminders a month, counted in one SQL statement so requests at the same moment
can't pass it), with a warning at 80%. - A downgrade never deletes data: nothing more can be added over a limit, and paid features
switch off. - A public, pre-rendered pricing page, generated from the catalogue.
- A plan catalogue in one place (
- Stripe subscriptions (
--Auth saas; Stripe.net,
Apache-2.0):- Stripe Checkout (keeping what's left of the trial) and the customer portal.
- Signed webhooks, stored once and handled from a durable Wolverine queue, keep a local copy of
each organisation's billing state and invoices. dotnet run -- stripe-pricescreates the catalogue's prices in Stripe.- Deleting an organisation cancels its subscription.
- Payments sit behind
IPaymentProvider, so another provider can replace Stripe. - Without Stripe keys, the app runs with the trial and the free plan only.
- Back office (
/admin):- Users (with accounts): ending a user's sessions and resending the confirmation email, on
top of roles, locks and invitations. - An audit log of every admin action.
- Failed messages: Wolverine's dead-letter queue, to replay or discard.
- With
saas:- A dashboard: monthly recurring revenue, organisations, trials ending, failed payments.
- Organisations: members, plan, usage, invoices (with Stripe links), and giving a plan
until a date (or extending a trial), suspending, notes and deleting. - Feature flags for everyone, a plan, or one organisation.
- Users (with accounts): ending a user's sessions and resending the confirmation email, on
- shadcn/ui on every page, with shared
SectionandMessagescomponents, and dark mode
with no script, so pre-rendered pages show the right colours at once.
v0.4.0
Organisations: --Auth saas adds multi-tenancy, with members, roles and invitations. The public
pages are now pre-rendered.
Breaking changes
--Identityis replaced by--Auth none|identity|saas. Use--Auth identitywhere you
used--Identity true, and--Auth none(the default) for--Identity false.- With accounts, production needs
App__ClientUrl. Set it to the app's public address, such
ashttps://app.example.com. Email links (confirmation, password reset, invitations) and the
redirect after Google or GitHub sign-in are built from it, never from the request'sHost
header. The app won't start without it outside Development. The production
deploy/docker-compose.ymlsets it fromDOMAIN; set it yourself anywhere else.
Projects created from earlier versions don't change: a template update only affects new projects.
New
- Organisations (
--Auth saas), on Marten or EF Core:- Each organisation is a Wolverine tenant. The access token names the organisation the user
works in, and conjoined multi-tenancy keeps each organisation's data apart in the data
layer, with no filters to forget. - Every account gets its own organisation. Users can create more, switch between them in the
header, and be invited into others. - Owner, Admin and Member roles, with always at least one owner.
- Invitations by email. Someone with an account accepts after logging in; someone without one
creates their account from the link. Invitations are limited per user and per organisation. - Removing a member, or deleting the organisation, takes effect at once. Deleting an
organisation deletes its data, including Todo event history. - Realtime updates go to everyone working in the organisation, and reminders only to whoever
set them.
- Each organisation is a Wolverine tenant. The access token names the organisation the user
- Pre-rendered public pages with React Router's framework mode:
- The home page is real HTML at build time, for search engines, link previews and CDN caching.
- The Content-Security-Policy allows only the build's own inline start-up scripts, by hash.
- It's still one deployable, with no Node server.
- Code layout:
- Code that differs between Marten and EF Core is in
Name.Marten.cs/Name.EfCore.cs
pairs, renamed toName.csin generated apps. - Account endpoints are features:
Features/Auth,Features/AccountandFeatures/Admin.
- Code that differs between Marten and EF Core is in
- CI generates, tests and publishes all 12 option combinations.
Fixed
Found by an architecture review before release. The details are in
the review.
- Email links no longer use the request's
Hostheader. A forged host could send a password
reset link to another site. This affected earlier versions too. - SignalR connections close when their access token expires, and the browser reconnects with a
fresh token. A removed member, or a locked account, no longer keeps receiving live updates.
v0.3.1
v0.3.0
v0.2.0
v0.1.1
v0.1.0
Full Changelog: https://github.com/LibreSharp/WolverineFx-React/commits/v0.1.0