@fonderie/vue-billing-screens
@fonderie/vue-billing-screens
Pre-built Vue 3 billing screens — PricingScreen and SubscriptionScreen —
built on
@fonderie/vue-billing
composables. Plain HTML elements via Vue's h() render function, inline
styles you can override, zero UI library dependency.
Install
npm install @fonderie/vue-billing-screens
Use
<script setup>
import { FonderieClient } from '@fonderie/client';
import { PricingScreen, SubscriptionScreen } from '@fonderie/vue-billing-screens';
const client = new FonderieClient({ baseUrl: 'https://api.example.com/v1' });
</script>
<template>
<PricingScreen :client="client.billing" @checkout-start="(url) => (location.href = url)" />
<SubscriptionScreen
:client="client.billing"
@manage-billing="(url) => (location.href = url)"
@navigate-pricing="route = 'pricing'"
/>
</template>
PricingScreen lists plans with a monthly/yearly toggle and starts Stripe
Checkout on choose. SubscriptionScreen shows the caller's current plan,
status, and renewal date, with a button into the Stripe billing portal, plus a
payment-method section: it shows the card on file and removes it, and
delegates add/update through an add-payment-method emit — mounting the Stripe
Payment Element (publishable key + <Elements>) is your app's job, so the
screen stays provider-agnostic. Neither screen navigates on your behalf — both
emit the Stripe-hosted URL (checkout-start / manage-billing) and leave
navigation to you, so the component works the same in SSR and client-only apps.
Need just the state management without the markup? Use @fonderie/vue-billing's
composables directly.
Why this exists
You've shipped this plumbing before — auth, teams, billing, messaging —
and the next project will ask for it again. Fonderie packages it once:
plain TypeScript modules for
@fonderie/core,
PostgreSQL-backed, self-hosted, MIT. No external control plane, no
per-seat anything. Register the modules you need; skip the ones you don't.
This package owns pre-built Vue billing UI, so you don't have to build
a pricing table from scratch. Swap it for your own design system whenever
you outgrow it — @fonderie/vue-billing's composables work standalone.
Browse the whole set at fonderiejs/fonderie · follow @fonderiejs
License
MIT © Fonderie, Inc.
Related Packages
Vue 3 composables for Fonderie billing — thin bindings over @fonderie/client.
Pre-built Vue auth screens for Fonderie — login, register, forgot password.
Pre-built Vue screens for Fonderie's outgoing webhooks — endpoint list, endpoint...
Pre-built Vue workspaces screens for Fonderie — team members, invitations.
Pre-built Vue customers screens for Fonderie — customer list, customer detail (c...
Version History
| Version | Released | License |
|---|---|---|
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.7 | MIT | |
| 0.3.6 | MIT | |
| 0.3.5 | MIT | |
| 0.3.4 | MIT | |
| 0.3.3 | MIT | |
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT | |
| 0.2.0 | MIT | |
| 0.1.0 | MIT |