BFF proxy architecture connecting WordPress to the WE88 gaming platform. React widgets, Gutenberg blocks, encrypted sessions, and a full REST API.
A complete gaming portal integration, deployed as a single WordPress plugin.
Backend-for-Frontend proxy. The browser never talks to the upstream API. All credentials stay server-side, encrypted with AES-256-CBC.
9 React widgets auto-discovered via data attributes. Login, games lobby, balance, profile, transactions, promotions, and more.
Every widget available as a server-side-rendered Gutenberg block. Drag, drop, configure via the block inspector panel.
Visual theme editor with live preview. Customize colors, typography, layout, and branding from the WP admin panel.
AES-256-CBC token encryption, HttpOnly session cookies, rate limiting, sensitive data stripping, CSRF nonce protection.
Full WordPress internationalization support. Ships with a Thai translation and a .pot template for additional languages.
Three-tier BFF pattern — the browser never touches the upstream API
Frontend widgets communicate only with the WordPress REST API via fetch + WP nonce
Session management, caching, rate limiting, token encryption. All credentials stay here.
Authentication, game catalog, wallet operations, SSO, maintenance status
Third-party gaming platform — player accounts, games, wallets, transactions
Upload the plugin ZIP via WordPress admin or clone into wp-content/plugins/
# From release ZIP WordPress Admin → Plugins → Add New → Upload # Or from source cd wp-content/plugins/ git clone <repo-url> we88-portal cd we88-portal && npm run build
Activate the plugin, then navigate to Settings → WE88 Portal
API URL https://we88-api.orbit.limited API Token we88_live_************************ Timeout 10 seconds Retries 2
Use shortcodes or Gutenberg blocks to embed gaming widgets
[we88_login] [we88_games provider="pragmatic" columns="4"] [we88_balance interval="10"] [we88_profile]
Click Test Connection in the settings page to verify API connectivity and check latency.
Drop these into any page or post. React widgets mount automatically.
| Shortcode | Description | Attributes | Example |
|---|---|---|---|
[we88_login] | Login / register / forgot-password | — | [we88_login] |
[we88_profile] | User profile information | — | [we88_profile] |
[we88_games] | Games lobby with filtering | provider, category, columns, per_page | [we88_games columns="3"] |
[we88_balance] | Account balance + wallets | interval, show_wallets | [we88_balance interval="10"] |
[we88_reviews] | User reviews with pagination | — | [we88_reviews] |
[we88_popup_menu] | Floating navigation menu | — | [we88_popup_menu] |
[we88_promotions] | Promotions & banner cards | limit | [we88_promotions limit="3"] |
[we88_transactions] | Transaction history table | per_page | [we88_transactions] |
[we88_announcements] | Notification cards | limit | [we88_announcements limit="5"] |
Base URL: /wp-json/we88-portal/v1
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /auth/login | Public | User login (rate-limited: 5/min per IP) |
| POST | /auth/register | Public | User registration (auto-login on success) |
| POST | /auth/logout | Session | Destroy session |
| POST | /auth/forgot-password | Public | Password reset request |
| GET | /me | Session | Current user profile |
| GET | /me/balance | Session | Account balance (cached 10s) |
| GET | /me/wallets | Session | Wallet breakdown |
| GET | /games | Public | List games (filterable by provider) |
| GET | /games/providers | Public | List game providers |
| GET | /games/categories | Public | List game categories |
| POST | /games/launch | Session | Launch game (game_code, game_type, vendor) |
| GET | /maintenance | Public | Vendor maintenance status |
| GET | /sso | Session | SSO redirect URL (deposit/withdrawal/profile) |
| GET | /health | None | Plugin status & version |
| GET | /health/api | Admin | External API connectivity + latency |
All settings managed from Settings → WE88 Portal in wp-admin
Full plugin ZIP with compiled frontend assets, Gutenberg blocks, and Thai translation.
Download ZIPwe88-portal-v1.0.0.zip