This diagram illustrates how APIFront securely exposes internal functions as OAuth2-protected REST APIs and integrates with Stripe for monetization.
%%{init: {
'theme': 'neutral',
'themeVariables': {
'primaryColor': '#ffffff',
'primaryTextColor': '#333',
'primaryBorderColor': '#666',
'lineColor': '#666',
'secondaryColor': '#ffffff',
'tertiaryColor': '#ffffff'
},
'flowchart': {
'curve': 'basis',
'diagramPadding': 20
}
}}%%
flowchart LR
nodeJS["π’ NodeJS Functions
user-service/create-user
user-service/update-profile"]
python["π΅ Python Functions
analytics/generate-report
analytics/visualize-data"]
proxy["β‘ APIFront Proxy
Zero Infrastructure"]
oauth["π OAuth2 Security"]
grant1["π Authorization Code"]
grant2["π‘οΈ PKCE"]
grant3["π€ Client Credentials"]
api_users["π₯ API User Management"]
credits["π° Credit Management"]
stripe["π³ Stripe Payment Processing"]
api_consumers["π§ API Consumers
LLMs & Applications"]
endpoint["π API Endpoint Structure
APIFront_proxy/api/v1/{gateway_id}/{service}/{function}"]
nodeJS -->|"Outbound SSL"| proxy
python -->|"Outbound SSL"| proxy
proxy --> oauth
oauth --> grant1
oauth --> grant2
oauth --> grant3
oauth --> endpoint
endpoint --> api_consumers
stripe -->|"Payment Webhooks"| api_users
api_users --> credits
subgraph Enterprise["Enterprise Environment"]
nodeJS
python
end
subgraph Gateway["APIFront Gateway"]
proxy
oauth
grant1
grant2
grant3
api_users
credits
end
classDef enterprise stroke:#4caf50,stroke-width:2px
classDef apifront stroke:#2196f3,stroke-width:2px
classDef oauth stroke:#9c27b0,stroke-width:2px
classDef money stroke:#8bc34a,stroke-width:2px
classDef external stroke:#ff9800,stroke-width:2px
class nodeJS,python enterprise
class proxy,endpoint apifront
class oauth,grant1,grant2,grant3 oauth
class api_users,credits money
class stripe,api_consumers external
class Enterprise enterprise
class Gateway apifront
APIFront fundamentally reimagines traditional API architecture by eliminating complex infrastructure layers. Our Function as an API paradigm allows enterprises to focus solely on which business functions to expose, maintaining complete control over security, authentication, and monitoring.
For AI vendors, we provide a standardized access framework that simplifies integration with customer systemsβcreating a secure, seamless connection between enterprise functions and modern AI applications without infrastructure complexity.
Implementation Details
π’ Transform any NodeJS function(s)
// All functions for "user-service" are proxied from this script
proxy.proxy('user-service/create-user', createUser);
proxy.proxy('user-service/update-profile', updateProfile);
// Start the proxy - this instance can now be load balanced by running multiple copies
proxy.start().then(() => {
console.log('User service functions are now exposed as APIs');
}).catch(err => console.error(err));
π΅ Transform any Python function(s)
# All functions for "analytics" are proxied from this script
proxy.proxy("analytics/generate-report", generate_report)
proxy.proxy("analytics/visualize-data", visualize_data)
# Start the proxy - this instance can now be load balanced by running multiple copies
proxy.start()
π Into Oauth2 secured, real-time APIs endpoints with zero infrastructure overheads
- APIFront_proxy/api/v1/{your_Gateway_ID}/user-service/create-user
- APIFront_proxy/api/v1/{your_Gateway_ID}/user-service/update-profile
- APIFront_proxy/api/v1/{your_Gateway_ID}/analytics/generate-report
- APIFront_proxy/api/v1/{your_Gateway_ID}/analytics/visualize-data