The FOSSBilling Extensions site is the official directory for extensions that can be discovered and installed by FOSSBilling users.
Visit the directory at extensions.fossbilling.org.
The directory helps FOSSBilling users find compatible modules, themes, payment gateways, server managers, domain registrars, hooks, and translations.
Only extensions that can be auto-installed from within FOSSBilling are listed at this time. Other community extensions may still be available through the FOSSBilling documentation, GitHub, or individual maintainers.
The recommended way to install an extension is from your FOSSBilling admin panel:
- Log in to your FOSSBilling admin panel.
- Open the Extensions page.
- Find the extension you want to install.
- Click Install.
Extensions can also be installed manually by downloading an archive, extracting it into the correct FOSSBilling extension folder, and enabling it from the admin panel.
Sign in (top-right of the site) and visit /account. First-time publishers create a developer profile (publisher name, type, URL) — this takes effect immediately, no approval needed, so you can submit new extensions or edit ones you already publish right away. A moderator can separately mark a profile as approved, shown as a badge; extension submissions themselves still go through moderator review before they appear in (or change) the public directory — see Authentication below for how ownership and moderation work.
Your personal account profile (display name, bio) is separate from your developer profile — it's not shown publicly yet, but is there ahead of future features like comments and ratings.
The FOSSBilling API provides badges that extension authors can use in README files or project pages.
Examples:
https://api.fossbilling.net/extensions/v1/Example/badges/version
https://api.fossbilling.net/extensions/v1/Example/badges/min_fossbilling_version
https://api.fossbilling.net/extensions/v1/Example/badges/license
Badge colors can be customized with a ?color= query parameter.
Issues and pull requests are welcome. Useful contributions include bug reports, accessibility improvements, UI fixes, documentation updates, and improvements to extension metadata handling.
For broader discussion, join the FOSSBilling community on Discord.
Install dependencies:
npm installCreate local secrets:
cp .dev.vars.example .dev.varsAUTH_CLIENT_ID / AUTH_CLIENT_SECRET are issued by an admin of the
FOSSBilling/auth service (dynamic client
registration is disabled there) — request a client with both
https://extensions.fossbilling.org/auth/callback and
http://localhost:4321/auth/callback as redirect URIs. SESSION_SECRET can be any
random string, e.g. openssl rand -base64 32.
ASSERTION_SIGNING_SECRET must match the
FOSSBilling/api repo's own
ASSERTION_SIGNING_SECRET exactly — it's a shared secret this app uses to prove a
signed-in user's identity to that repo's /extensions/v2 submission endpoints (see
Authentication). By default /account calls the production api at
https://api.fossbilling.net; set EXTENSIONS_API_BASE_URL in .dev.vars to point at
a local api dev server instead if you're working on that side too.
EXTENSIONS_API_TRANSPORT selects how server-side API calls are delivered. Set it
to http for the normal local setup. Production uses binding, which forwards the
same Fetch/OpenAPI requests through the api Worker service binding. Binding failures
are surfaced; the site does not silently retry over HTTP.
To exercise the binding locally, run the site and API with a connected multi-Worker
Wrangler setup using sibling extensions and api checkouts. The HTTP mode remains
the simpler option when only one Worker is running.
Start the development server:
npm run devThe site loads extension data from the API over HTTPS. For local development, point
EXTENSIONS_API_BASE_URL at a local API Worker to exercise account and catalogue
pages against a real database.
Icons and avatars from the known FOSSBilling, GitHub, GitLab, Google, and
Gravatar origins are resized through the /images/{variant} route on Cloudflare.
Other valid HTTP(S) image URLs remain direct browser requests, so custom-hosted
images continue to work without turning the route into an arbitrary fetch proxy.
During local development, allowlisted sources are redirected to the browser
because Cloudflare image transformations are not available in Astro's local
Cloudflare runtime.
If a Cloudflare transformation is unavailable, the route redirects the browser
to the same allowlisted source instead of proxying an unbounded fallback. The
server-side transform request does not follow origin redirects, and transformed
responses larger than 2 MiB are rejected.
For Cloudflare resizing to take effect, deployments must allow the listed
origins under Images → Transformations → Sources.
Application code reads its runtime dependencies from Astro.locals.env, using the
provider-neutral interfaces in src/lib/runtime.ts. The current Cloudflare
binding mapping is isolated to src/platform/cloudflare.ts, so moving to another
serverless provider requires replacing that adapter and deployment configuration
rather than changing pages and domain services throughout the application.
Domain data is accessed through the generated HTTPS client for the API Worker; the site deliberately has no database binding. Cloudflare image transformations are an optional optimization: the image route falls back to a direct browser request for allowlisted sources when that capability is unavailable.
Sign-in is delegated to FOSSBilling's central auth service at
auth.fossbilling.net via OAuth2/OIDC (Authorization
Code + PKCE), implemented under src/pages/auth/ and src/lib/. That service is
identity-only — it never exposes roles or permissions. Extension ownership,
submitter/moderator status, and any other authorization concept live in the API
Worker's users projection, keyed by the auth service's sub claim. The site keeps
only the browser session and sends a signed, short-lived identity assertion to the API.
The client requests the dedicated github scope when it needs the linked GitHub
username and organization claims. The issuer omits those claims for tokens without
that scope, and users may need to reauthorize after a scope change.
Sessions are a self-contained, HMAC-signed cookie minted after the initial token exchange — this app does not depend on the auth service's own token lifetimes beyond that exchange.
Signed-in users manage two separate profiles from /account:
- Account profile (
/account/profile) — personaldisplay_name, stored by the API and not moderated (not yet shown publicly). - Developer profile (
/account/developer) — the publisher identity (developersrow: name, type, URL, avatar, and a private contact email) shown on your extensions in the directory and on your public developer page at/developer/[id]. Writes take effect immediately (PUT /extensions/v2/developers/me) — there's no moderation gate on creating or editing one. A moderator can mark a profile approved as a trust badge (/account/moderate/developers); it's cosmetic, not a publish gate, and any edit clears the badge again until it's re-reviewed.contact_emailis never returned by the API's public developer operation; it is available only to the owner-management operation.
An extension submission always targets an existing, owned developer profile — the two are deliberately kept separate (rather than letting extension submission implicitly create/edit a developer profile).
A profile's owner can hand it to a different account via a single-use transfer link
(/account/developer, "Transfer ownership") — the link is only ever shown once, expires
after 24 hours, and the recipient must explicitly accept it at /account/developer/transfer/[token]
while signed in (POST /extensions/v2/developers/transfers/{token}/accept). An account can own at
most one developer profile, so accepting fails with a 409 if the recipient already has one.
Profiles with no owner at all (owner_user_id IS NULL — pre-v2 rows, or ones detached by the
api repo's owner-uniqueness migration) show an Unclaimed badge on their public page and can
be claimed: a signed-in user requests ownership (POST /extensions/v2/developers/{id}/claim,
with an optional note), and a moderator approves or rejects the request at
/account/moderate/developers/claims — there's no automated verification, so approval is a
judgment call based on the note and the profile itself. This is how legacy, pre-ownership-tracking
profiles get linked to an actual account.
Both flows keep the badge/moderation trust model consistent: accepting a transfer or having a
claim approved clears the approved badge, same as any other change to who controls a profile.
The API repo renamed its v2-owned authors table (and related schemas/routes) to developers
— "author" implied solo/literary authorship, which never fit an entity that can be an
organization, gets moderated, and can be transferred or claimed. extensions.author_id, the
FK column on the legacy extensions table itself, was deliberately left unrenamed — only the
table it points to changed — and the API maps it to developer_id in its generated responses.
Extension submissions (new extensions and edits) are the one thing still moderated: they go
into a queue at /account/moderate and only take effect once a moderator approves them — a
higher bar than developer profiles since they carry download URLs and arbitrary readme/website
content. All reads and writes to the Extensions domain — including users, developers,
submissions, claims, transfers, and extensions — happen in the
FOSSBilling/api repo's /extensions/v2 service;
this app never queries those tables directly. The public catalogue uses the generated
client from src/lib/api/generated/extensions-v2, with GET /extensions loaded in bounded cursor pages
and GET /extensions/{id} used for complete detail pages. Account ownership/editing queries still
use the API-backed helpers (getExtensionsByOwner, getExtensionForSubmission,
getDeveloperByOwner, and getDeveloperById); the public developer page receives its
unclaimed flag from the API response (never exposing the raw owner id itself).
Regenerate the client from the checked-in API contract with:
npm run api:generateThe Update Extensions v2 OpenAPI GitHub Actions workflow refreshes the
upstream contract weekly and opens or updates a pull request when it changes.
For an immediate refresh, run npm run api:update; npm run api:check verifies
that the committed generated files match openapi/extensions-v2.json.
Each request to /extensions/v2 is authenticated with a short-lived (60s) HMAC-signed
bearer assertion this app mints per-request (src/lib/assertion.ts), proving the
signed-in user's identity to the api repo without that repo needing to know anything
about auth.fossbilling.net. The assertion includes fixed issuer, audience, purpose,
and version claims; the API can temporarily accept a previous secret during key
rotation. See that repo's src/lib/auth/ for the verification side.
Moderators are flagged via the is_moderator column on the API-owned users table;
there's no UI to grant it. Database administration belongs in the API repository.
Production secrets:
npx wrangler secret put AUTH_CLIENT_ID
npx wrangler secret put AUTH_CLIENT_SECRET
npx wrangler secret put SESSION_SECRET
npx wrangler secret put ASSERTION_SIGNING_SECRETFor a no-downtime assertion-secret rotation, configure the API's
ASSERTION_SIGNING_SECRET_PREVIOUS with the old value first, replace the API's
active secret, then replace this Worker's ASSERTION_SIGNING_SECRET. After at
least 65 seconds and successful request checks, remove the API previous secret.
The extension directory website is licensed under the GNU Affero General Public License Version 3. See LICENSE for details.
Individual extensions are licensed by their respective authors.