config.ts
Located atsrc/server/config.ts.
App metadata
Setting types
Setting definition
Accessing settings
Server-side only, viactx.appSettings:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
config.ts schema, setting types, and configuration files
src/server/config.ts.
import type { AppConfig } from '@synthetiq/app-framework/server';
export const APP_CONFIG = {
app: {
displayName: 'My App',
description: 'What the app does',
category: 'Analytics',
},
settings: [],
} as const satisfies AppConfig;
| Field | Description |
|---|---|
displayName | Human-readable app name, title-cased |
description | Short description |
category | App category for organization in the Synthetiq console |
| Type | Description |
|---|---|
text | Free-form text input |
password | Masked text input |
url | URL input with validation |
select | Dropdown with predefined options |
boolean | Toggle switch |
{
key: 'myKey',
description: 'What this setting controls',
type: 'select',
required: false,
defaultValue: 'default',
options: JSON.stringify([
{ value: 'a', label: 'Option A' },
{ value: 'b', label: 'Option B' },
]),
}
ctx.appSettings:
const value = ctx.appSettings.myKey || 'default';
