Skip to main content
View

Memberstack Playground

Welcome to the Memberstack Playground! This interactive environment lets you test Memberstack DOM package features using your public key. Try out different methods and see how they work in real-time.

Initialize Memberstack

Enter your public key to initialize the Memberstack DOM package. This will enable the "Run Code" buttons.

Audience: DOM SDK (JavaScript) Only

This playground targets developers using the @memberstack/dom package (or Webflow via window.$memberstackDom). If you're building with Data Attributes (Webflow/WordPress data-attribute integration), refer to the Data Attribute documentation instead.

These examples use programmatic methods, not data-attributes.

Authentication

This section covers user authentication, including signup, login, logout, and handling authentication state changes.

Methods:

Pre-built Modals

This section demonstrates how to use Memberstack's pre-built modals for common authentication and profile management actions.

Methods:

Profile Management

This section covers methods for managing the current member's profile, including updating custom fields, and changing passwords.

Methods:

Plan Management

This section covers methods for managing the current member's plans, including adding, removing, and purchasing plans.

Tips for Testing Plans

  • For paid plans, use test card 4242 4242 4242 4242
  • Free plans use planId, paid plans use priceId
  • Check the Memberstack dashboard for your actual IDs

Data Tables

This section demonstrates Data Tables functionality for storing and managing structured data with powerful querying capabilities, relationships, and access control.

⚠️ Rate Limits for Data Tables

  • Global: 200 requests per 30 seconds per IP
  • Reads: 25 requests per second per IP (GET/query operations)
  • Creates: 10 requests per minute per IP (POST operations)
  • Writes: 30 requests per minute per IP (PUT/DELETE operations)

Reads apply to: GET /v1/data-tables, GET /v1/data-tables/:tableKey, POST /v1/data-records/query, GET /v1/data-records

Feature Flag

If DISABLE_DATA_TABLES is truthy on the server, all routes return 503 with message: "Data table feature is temporarilly offline."

Tips for Testing Data Tables

  • Create test tables in your Memberstack dashboard first
  • Use realistic test data for better understanding
  • Check access rules - some operations may require authentication
  • Use table keys (not IDs) in your requests
  • Record IDs start with 'rec_' prefix

Methods:

Other Methods

This section covers miscellaneous methods and utilities.

FAQs

Here are some common questions and answers about using Memberstack in your projects:

Additional Tips

  • Use test mode keys (starting with pk_sb_) for development
  • Remember to handle errors in your code
  • Check the console for additional debugging information
  • Replace placeholder IDs with your actual plan and price IDs

Test Accounts

  • Create test accounts with fake email addresses (e.g., test@example.com)
  • Use secure but memorable passwords for testing
  • Test mode allows up to 50 test members
  • Test members can be deleted to free up space

Need Help?

Having trouble getting your login working? We're here to help!

Thank you for choosing Memberstack 🙏