A Remix application that visualizes your Stripe customers on an interactive 3D globe.
- Stripe Integration: Connects to your Stripe account via Read-Only API key.
- Data Aggregation: Fetches customer data and aggregates it by country.
- Interactive Map: Uses amCharts 5 to plot customers as bubbles on a rotating globe.
- Mock Mode: Includes a test mode to demonstrate functionality without a real API key.
- Node.js (v18 or higher recommended)
- npm or yarn
- Clone the repository (if applicable) or navigate to the project directory.
- Install dependencies:
npm install
Start the development server:
npm run devOpen your browser to http://localhost:5173.
- In the "Stripe Secret Key" input field, type:
test - Click Visualize.
- The app will simulate a network request and plot dummy data on the map.
- Get a Restricted API Key from your Stripe Dashboard:
- Go to Developers > API Keys.
- Create a restricted key with Read access to Customers.
- Paste the key (starting with
rk_...orsk_...) into the input field.- Note: We recommend using a restricted key for security, although standard secret keys work.
- Click Visualize.
- The app will fetch your customers (limit 1000 for this demo) and plot them.
- Map not loading? Ensure you have an active internet connection as amCharts may load some assets dynamically or check the console for errors.
- Stripe Error? Double-check your API key permissions. It needs
customers.read.