Membership · Billing & Discord accessEnd-to-end membership system

RoleHarbor.

From a paid membership to the right Discord access.

I built RoleHarbor end to end: a ReactJS member app, staff workspace and billing-to-Discord backend. The hosted system runs on Cloudflare Workers with PostgreSQL, connecting membership packages, Stripe payments and role access for one business.

Scope

Member web app, staff workspace, provider configuration, authentication, billing, Discord access, SQL data model, testing and deployment.

My role

End-to-end developer · Product flows, web app, backend, SQL and deployment

Technology

ReactJS / TypeScript / Node.js / Hono / Cloudflare Workers / PostgreSQL / Hyperdrive / Cloudflare Queues / Stripe / Discord API / MySQL

Stripe test mode. No real charges. Shared Owner, Administrator and Viewer accounts are listed on the staff sign-in page.

event → member → accessActual RoleHarbor staff workspace showing membership packages, prices and access controls in Stripe test modeActual hosted staff workspace / Stripe test mode
01 / The product problem

Billing is an event. Access is an ongoing decision.

A successful payment does not guarantee that a member can open the right Discord channels. The business needs clear package rules, a record of what was paid for and a way to recover failed access updates without granting the wrong permissions.

My work

I designed and built the member and staff journeys, ReactJS interfaces, API, database model and background work. My work includes Stripe billing, Discord role and room mapping, staff permissions, MFA, recovery flows, tests and the Cloudflare deployment.

Explore the working system

Try RoleHarbor for yourself.

RoleHarbor serves one business and one Discord server. Try the member journey or sign in as Owner, Administrator or Viewer. The demo uses Stripe test mode; no real charges are collected. Discord uses the configured demo server.

How to sign in and restore the connections
  1. Open the staff demo. The sign-in page lists the three available accounts.
  2. Choose Owner, Administrator or Viewer to fill in the email and password. Start with Viewer if you want to look around.
  3. Select Sign in. Use the workspace navigation to explore members, plans, billing and operations.
Owner
demo.owner@beemvp.comBusiness and provider settings, package-to-role mapping, room access and membership operations.
Administrator
demo.admin@beemvp.comDay-to-day membership operations, packages, billing and eligible failed-work retries.
Viewer
demo.viewer@beemvp.comRead-only access to the workspace. Changes are refused by the server.

Shared password: RoleHarbor@Demo

These public accounts keep fixed sign-in details. They cannot change staff accounts, passwords or MFA. Private staff accounts retain the full team and security controls.

Restore the default connections

Sign in as Owner, open Connections and choose Reset demo. Enter the shared password, then select Restore default connections.

This restores the saved Stripe test keys and Discord connection settings. It keeps members, payments, plans and activity. It does not undo Discord room changes, reverse payments or reset the whole workspace.

This is a shared workspace, so other visitors may change its records. Use test information when trying an editable role.

02 / Features & experience

What people can do.

RoleHarbor / How membership fits togetherChoose a part ↓
Member & staff apps

Members choose a package and connect Discord. Staff manage packages, member records and access in a separate workspace.

01

Set up the membership you sell.

Create one-time, recurring or lifetime packages from the staff workspace. Manage their prices, availability and billing settings in one place.

02

Give each package the right access.

Map a package to a Discord role and choose the rooms it can open. Preserve unrelated roles and permissions when membership access changes.

03

See payment issues and access work separately.

A paid invoice and a delivered role have their own records. Staff can inspect a failed job, fix the cause and retry against the member’s current eligibility.

04

Respect the time a member has paid for.

Renewals update access from paid invoice periods. Stopping future renewals keeps access through the paid period; expiry removes the membership role when eligibility ends.

05

Give the team clear boundaries.

Owners manage business and provider settings, admins handle membership operations and viewers have read-only access. Private staff accounts support team management, authenticator MFA and recovery codes; public demo accounts keep those settings fixed.

06

Keep member notices private.

Expiry notices go to the member by Discord DM, with billing email as a fallback when DMs are closed. Personal payment and expiry details stay out of shared channels.

07

Try the workspace from each side.

Choose a shared Owner, Administrator or Viewer account from the sign-in page. The server checks each role’s permissions, and shared sign-in and staff/security settings stay fixed.

08

Get back to the default connections.

An Owner can restore the saved Stripe test keys and Discord connection settings. The reset preserves member, payment and plan records and does not undo changes to Discord rooms.

A closer look

See the experience.

Open a screen for a closer look.
Staff workspace · Stripe test captures

03 / From definition to handoff

How the work
came together.

From the customer journey to the details.
A clear purpose behind each part.

  1. 01
    Product & specification

    Define the rules before building the screens

    I mapped purchases, renewals, cancellations, refunds and expiry, then defined the member journey, staff permissions and the records needed to explain access.

    What the work covers
    • Member and staff journeys
    • Package and entitlement rules
    • Recovery scenarios and acceptance criteria
  2. 02
    ReactJS interface

    Build both sides of the membership

    I built the public package catalogue and connected staff workspace, including member records, package settings, billing history, access activity and operations.

    What the work covers
    • Member catalogue and account connection
    • Package, role and room configuration
    • Member records and operations views
  3. 03
    Backend & database

    Connect payments to Discord access

    I implemented Stripe event handling, membership eligibility and Discord delivery with durable SQL records and retryable jobs. The hosted app uses PostgreSQL through Hyperdrive; the source also has a MySQL adapter.

    What the work covers
    • Stripe billing and customer portal
    • Discord role delivery and recovery
    • PostgreSQL deployment and MySQL source adapter
  4. 04
    Permissions & security

    Make administration safer

    I added owner, admin and viewer permissions, staff invitations, MFA, recovery codes and protected provider configuration. Member notifications use private channels.

    What the work covers
    • Server-enforced staff permissions
    • Authenticator MFA and account recovery
    • Private notifications and activity records
  5. 05
    Testing & review

    Check the lifecycle and recovery paths

    I tested membership and access rules, repeated payment events, refunds, expiry, staff permissions and failed-job recovery. I also checked the member and staff flows on desktop and mobile, including keyboard navigation.

    What the work covers
    • Billing and access scenario checks
    • SQL and authorization tests
    • Desktop, mobile and keyboard reviews
  6. 06
    Deployment & handoff

    Deploy the system and document its operation

    I deployed the application to Cloudflare Workers with Hyperdrive, queues and scheduled recovery. I documented configuration, backups, restore checks and the steps staff take when delivery needs attention.

    What the work covers
    • Hosted Workers and PostgreSQL system
    • Queue and scheduled recovery setup
    • Configuration, backup and operating guide
04 / Why it helps

For the people running memberships.

The features come together around the work people need to do.

  • Members can choose a package, use Stripe test checkout and connect their Discord account.
  • Staff can manage package pricing and map membership roles to selected Discord rooms.
  • Payment records and access delivery history explain what happened and what needs attention.
  • Failed delivery can be reviewed and retried after the underlying permission or configuration issue is fixed.
  • Staff permissions separate owner configuration, membership administration and read-only access.
  • Shared Owner, Administrator and Viewer accounts let visitors explore the current staff workspace.
  • An Owner can restore the saved demo connections without deleting members, payments or plans.
Product focus

This installation serves one business and one Discord server. RoleHarbor runs in a modern browser with JavaScript enabled and does not require a particular operating system. The public demo uses Stripe test mode; no real charges are collected. Shared staff accounts keep fixed sign-in and team/security settings. Reset demo restores saved Stripe test and Discord connections; it does not reset records or reverse Discord room changes.

Explore RoleHarbor

From a purchase to the right access.

RoleHarbor / Membership journey
Step 01

A member buys a package.

The payment starts a membership update, with the purchase details attached to the work that follows.

PaymentPurchase received

Membership package

A similar challenge?

Start with the flow
you need to finish.

Discuss a similar project
Next project

LaClub.