This project is a minimal demo that embeds the Hyperswitch Control Center (Connector Configuration module) inside a simple React dashboard shell.
It uses:
- React (Create React App)
- Node/Express backend (
server.js) hyperswitch-control-center-embeddedfor the embedded UI
- Node.js (v16+ recommended)
- npm
npm installEdit server.js and set your own credentials in the token endpoint call:
headers: {
"api-key": "YOUR_API_KEY_HERE",
"x-profile-id": "YOUR_PROFILE_ID_HERE",
"Content-Type": "application/json",
}The backend exposes:
GET http://localhost:4000/embedded/hyperswitchIn one terminal (backend):
npm run serverIn another terminal (frontend):
npm startThen open http://localhost:5000 in your browser.
server.jscalls the Hyperswitch embedded token API using your API key + profile ID and returns the token.src/App.jsfetches that token, initializes Hyperswitch withloadHyperswitch, and rendersConnectorConfigurationinside a simple dashboard layout.