
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@accelbyte/sdk-extend-app-ui
Advanced tools
SDK for building **Extend App UI** applications — micro-frontends that are embedded inside the AGS Admin Portal. It provides:
@accelbyte/sdk-extend-app-uiSDK for building Extend App UI applications — micro-frontends that are embedded inside the AGS Admin Portal. It provides:
These are the current constraints:
npm install @accelbyte/sdk-extend-app-ui
Peer dependencies:
npm install @accelbyte/sdk @accelbyte/sdk-iam react @tanstack/react-query vite
| Peer dependency | Supported versions |
|---|---|
@accelbyte/sdk | ^4.0.4 |
@accelbyte/sdk-iam | ^6.3.2 |
react | ^17.0.0 or ^18.0.0 or ^19.0.0 |
@tanstack/react-query | ^4.36.1 or ^5.0.0 |
vite | ^7 |
AppUIContextProvider detects the environment via NODE_ENV and switches behavior:
| Aspect | Development | Production |
|---|---|---|
| Auth | Exchanges OAuth2 authorization code, refreshes tokens automatically | Skipped — Admin Portal manages auth |
| Permissions | Fetches current user + all roles from IAM, sets a permission checker | Uses isCurrentUserHasPermission passed by the Admin Portal |
The Admin Portal loads your app as a module and calls mount. Export an object conforming to AppUIModule. We recommend using @tanstack/react-query as the library for fetching resources.
import { AppUIContextProvider, type AppUIModule } from '@accelbyte/sdk-extend-app-ui'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { App } from './my-app'
const client = new QueryClient()
const module: AppUIModule = {
mount(container, context) {
const root = createRoot(container)
root.render(
<StrictMode>
<QueryClientProvider client={client}>
<AppUIContextProvider sdkConfig={context.sdkConfig} isCurrentUserHasPermission={context.isCurrentUserHasPermission}>
{/* Pass context.basePath to your router's basename if your app uses client-side routing */}
<BrowserRouter basename={context.basePath}>
<App />
</BrowserRouter>
</AppUIContextProvider>
</QueryClientProvider>
</StrictMode>
)
return () => root.unmount()
}
}
export default module
import { CrudType, useAppUIContext } from '@accelbyte/sdk-extend-app-ui'
function MyComponent() {
const { sdk, isLoading, isCurrentUserHasPermission } = useAppUIContext()
if (isLoading) return <Spinner />
const canWrite = isCurrentUserHasPermission({ resource: 'ADMIN:NAMESPACE:{namespace}:CONTENT', action: CrudType.CREATE })
return canWrite ? <Editor sdk={sdk} /> : <ReadOnlyView sdk={sdk} />
}
During development, API calls need to be proxied to the AGS backend (to avoid CORS issues). Add devProxyPlugin to your vite.config.ts:
baseUrlandredirectURImust match the values registered in your IAM OAuth client.
import { devProxyPlugin } from '@accelbyte/sdk-extend-app-ui/plugins'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
devProxyPlugin({
baseUrl: 'https://your-ags-instance.accelbyte.io',
redirectURI: 'http://localhost:5173'
})
]
})
All requests to /proxy/* are forwarded to the AGS backend. Point your SDK's baseURL to /proxy in development:
const sdkConfig = {
baseURL: import.meta.env.DEV ? '/proxy' : 'https://your-ags-instance.accelbyte.io'
// ...
}
The plugin also handles Shared Cloud subdomain routing: it reads the access_token cookie, extracts the namespace, and sets the correct Referer header automatically.
AppUIContextProviderinterface AppUIContextProviderProps {
sdkConfig: SdkConfigOptions
/**
* Provided by the host in production. Omit in development —
* the provider will fall back to its own PermissionGuard.
*/
isCurrentUserHasPermission?: (permission: CrudRolePermission) => boolean
children: ReactNode
}
useAppUIContextinterface AppUIContextValue {
/** Initialized AccelByteSDK instance. Use this to call AGS APIs. */
sdk: AccelByteSDK
/** True while user data or roles are loading. */
isLoading: boolean
/** Returns true if the current user has the given permission. */
isCurrentUserHasPermission: (permission: CrudRolePermission) => boolean
}
devProxyPluginfunction devProxyPlugin(options: {
/** AGS backend base URL. Must match the baseURL registered in your IAM OAuth client. */
baseUrl: string
/** OAuth2 redirect URI. Must match the redirect URI registered in your IAM OAuth client. */
redirectURI: string
}): Plugin
| Type | Description |
|---|---|
SdkConfigOptions | Core config passed to AccelByte.SDK() |
HostContext | Object passed from the host to mount(): sdkConfig, basePath, isCurrentUserHasPermission |
AppUIModule | Contract your app module must implement: mount(container, context): () => void |
CrudRolePermission | Permission descriptor used with isCurrentUserHasPermission |
CrudType | Enum for CRUD actions with string values: CREATE, READ, UPDATE, DELETE |
FAQs
SDK for building **Extend App UI** applications — micro-frontends that are embedded inside the AGS Admin Portal. It provides:
We found that @accelbyte/sdk-extend-app-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.