The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
export const TWENTY_ICON_DICTIONARY_FIGMA_URL =
'https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=43908-39914';
export const TWENTY_ICON_DICTIONARY_CATEGORIES = [
{ key: 'data-model', label: 'Data Model' },
{ key: 'crm', label: 'CRM' },
{ key: 'views', label: 'Views' },
{ key: 'layouts', label: 'Layouts' },
{ key: 'workspace-and-access', label: 'Workspace and Access' },
{ key: 'logic', label: 'Logic' },
{ key: 'ai', label: 'AI' },
{ key: 'platform', label: 'Platform' },
{ key: 'general', label: 'General' },
] as const;
export type TwentyIconDictionaryCategory =
(typeof TWENTY_ICON_DICTIONARY_CATEGORIES)[number]['key'];
export type TwentyIconDictionaryEntry = {
key: string;
label: string;
category: TwentyIconDictionaryCategory;
iconName: `Icon${string}`;
tablerName: string;
keywords: readonly [string, ...string[]];
useWhen: string;
avoidWhen: string;
};
export const TWENTY_ICON_DICTIONARY = [
{
key: 'data-model',
label: 'Data Model',
category: 'data-model',
iconName: 'IconHierarchy',
tablerName: 'hierarchy',
keywords: ['schema', 'data model', 'objects and fields'],
useWhen: 'Representing the data model or schema as a whole.',
avoidWhen: 'Representing one object, one field, or an organization chart.',
},
{
key: 'object',
label: 'Object',
category: 'data-model',
iconName: 'IconBox',
tablerName: 'box',
keywords: ['object metadata', 'entity', 'data object'],
useWhen: 'Representing an individual data-model object.',
avoidWhen: 'Representing a record instance or the complete data model.',
},
{
key: 'field',
label: 'Field',
category: 'data-model',
iconName: 'IconListSearch',
tablerName: 'list-search',
keywords: ['field metadata', 'property', 'attribute', 'column'],
useWhen: 'Representing a field or field metadata.',
avoidWhen: 'Representing a list of records or a generic menu.',
},
{
key: 'record',
label: 'Record',
category: 'data-model',
iconName: 'IconAddressBook',
tablerName: 'address-book',
keywords: ['record', 'record instance', 'CRM entry'],
useWhen: 'Representing a record or record-oriented content.',
avoidWhen: 'Representing the object definition that records belong to.',
},
{
key: 'person',
label: 'Person',
category: 'crm',
iconName: 'IconUser',
tablerName: 'user',
keywords: ['person', 'contact', 'individual', 'people record'],
useWhen: 'Representing a person or individual CRM contact.',
avoidWhen: 'Representing a workspace member, team, or user action.',
},
{
key: 'company',
label: 'Company',
category: 'crm',
iconName: 'IconBuildingSkyscraper',
tablerName: 'building-skyscraper',
keywords: ['company', 'account', 'organization', 'business'],
useWhen: 'Representing a company or organization CRM record.',
avoidWhen: 'Representing the current workspace or a generic office.',
},
{
key: 'opportunity',
label: 'Opportunity',
category: 'crm',
iconName: 'IconTargetArrow',
tablerName: 'target-arrow',
keywords: ['opportunity', 'deal', 'pipeline', 'sales'],
useWhen: 'Representing a sales opportunity or deal.',
avoidWhen: 'Representing a generic goal, target, or navigation action.',
},
{
key: 'task',
label: 'Task',
category: 'crm',
iconName: 'IconCheckbox',
tablerName: 'checkbox',
keywords: ['task', 'to-do', 'action item', 'follow-up'],
useWhen: 'Representing a task, to-do, or follow-up record.',
avoidWhen: 'Representing a boolean field or completed status alone.',
},
{
key: 'note',
label: 'Note',
category: 'crm',
iconName: 'IconNotes',
tablerName: 'notes',
keywords: ['note', 'memo', 'record note', 'written note'],
useWhen: 'Representing a note attached to CRM content.',
avoidWhen: 'Representing documentation, comments, or chat messages.',
},
{
key: 'view',
label: 'View',
category: 'views',
iconName: 'IconTable',
tablerName: 'table',
keywords: ['view', 'saved view', 'record view'],
useWhen: 'Representing a view without a more specific view type.',
avoidWhen: 'Representing dashboards, widgets, or page layouts.',
},
{
key: 'table-view',
label: 'Table view',
category: 'views',
iconName: 'IconTable',
tablerName: 'table',
keywords: ['table view', 'grid view', 'rows and columns'],
useWhen: 'Representing the table or grid view type.',
avoidWhen: 'Representing a Kanban view or a generic data-model field.',
},
{
key: 'kanban-view',
label: 'Kanban view',
category: 'views',
iconName: 'IconLayoutKanban',
tablerName: 'layout-kanban',
keywords: ['kanban', 'board view', 'columns'],
useWhen: 'Representing the Kanban or board view type.',
avoidWhen: 'Representing a dashboard or a generic page layout.',
},
{
key: 'group-by',
label: 'Group By',
category: 'views',
iconName: 'IconLayoutList',
tablerName: 'layout-list',
keywords: ['group by', 'grouping', 'grouped records'],
useWhen: 'Representing grouping records by a field.',
avoidWhen: 'Representing sorting or a generic list layout.',
},
{
key: 'filter',
label: 'Filter',
category: 'views',
iconName: 'IconFilter',
tablerName: 'filter',
keywords: ['filter', 'criteria', 'conditions'],
useWhen: 'Representing filters or filter criteria.',
avoidWhen: 'Representing search, sorting, or workflow conditions.',
},
{
key: 'sort',
label: 'Sort',
category: 'views',
iconName: 'IconArrowsSort',
tablerName: 'arrows-sort',
keywords: ['sort', 'ordering', 'ascending and descending'],
useWhen: 'Representing sorting without a fixed direction.',
avoidWhen: 'Representing filtering or a known ascending-only direction.',
},
{
key: 'layout',
label: 'Layout',
category: 'layouts',
iconName: 'IconAppWindow',
tablerName: 'app-window',
keywords: ['layout', 'page structure', 'arrangement'],
useWhen: 'Representing layouts as a general concept.',
avoidWhen: 'Representing a specific layout page, widget, or dashboard.',
},
{
key: 'layout-page',
label: 'Layout page',
category: 'layouts',
iconName: 'IconPerspective',
tablerName: 'perspective',
keywords: ['layout page', 'page canvas', 'page configuration'],
useWhen: 'Representing a configurable page inside a layout.',
avoidWhen: 'Representing the broader layout system or a record page.',
},
{
key: 'widget',
label: 'Widget',
category: 'layouts',
iconName: 'IconLayoutGridAdd',
tablerName: 'layout-grid-add',
keywords: ['widget', 'add widget', 'dashboard block'],
useWhen: 'Representing a widget or the act of adding a widget.',
avoidWhen: 'Representing a complete dashboard or generic application.',
},
{
key: 'transcript',
label: 'Transcript',
category: 'layouts',
iconName: 'IconBlockquote',
tablerName: 'blockquote',
keywords: ['transcript', 'transcription', 'spoken words'],
useWhen: 'Representing a transcript tab or widget.',
avoidWhen: 'Representing recording controls or audio and video playback.',
},
{
key: 'record-page',
label: 'Record Page',
category: 'layouts',
iconName: 'IconAddressBook',
tablerName: 'address-book',
keywords: ['record page', 'record layout', 'record detail'],
useWhen: 'Representing a page dedicated to one record.',
avoidWhen: 'Representing a generic layout page or object definition.',
},
{
key: 'side-panel',
label: 'Side Panel',
category: 'layouts',
iconName: 'IconLayoutSidebarRight',
tablerName: 'layout-sidebar-right',
keywords: ['side panel', 'right panel', 'context panel', 'drawer'],
useWhen:
'Representing a side panel that shows contextual content alongside a page.',
avoidWhen:
'Representing the main navigation sidebar, a modal, or an open or close panel action.',
},
{
key: 'command-menu-item',
label: 'Command Menu Item',
category: 'layouts',
iconName: 'IconCommand',
tablerName: 'command',
keywords: ['command menu', 'command item', 'keyboard command'],
useWhen: 'Representing an item or action in the command menu.',
avoidWhen: 'Representing a navigation item or keyboard shortcut alone.',
},
{
key: 'navigation-menu-item',
label: 'Navigation menu item',
category: 'layouts',
iconName: 'IconCompass',
tablerName: 'compass',
keywords: ['navigation item', 'menu destination', 'navigation menu'],
useWhen: 'Representing a destination in a navigation menu.',
avoidWhen: 'Representing the navigation sidebar container itself.',
},
{
key: 'dashboard',
label: 'Dashboard',
category: 'layouts',
iconName: 'IconLayoutDashboard',
tablerName: 'layout-dashboard',
keywords: ['dashboard', 'analytics page', 'dashboard layout'],
useWhen: 'Representing a dashboard or dashboard page.',
avoidWhen: 'Representing an individual widget or a Kanban board.',
},
{
key: 'workspace',
label: 'Workspace',
category: 'workspace-and-access',
iconName: 'IconSettings',
tablerName: 'settings',
keywords: ['workspace', 'tenant', 'workspace settings', 'organization'],
useWhen: 'Representing the current workspace or its configuration.',
avoidWhen: 'Representing a generic settings action or a CRM company.',
},
{
key: 'member-team',
label: 'Member / Team',
category: 'workspace-and-access',
iconName: 'IconUsers',
tablerName: 'users',
keywords: ['member', 'team', 'workspace user', 'assignee'],
useWhen: 'Representing workspace members, teams, or assignments.',
avoidWhen: 'Representing an individual CRM person or an invite action.',
},
{
key: 'role',
label: 'Role',
category: 'workspace-and-access',
iconName: 'IconLock',
tablerName: 'lock',
keywords: ['role', 'permissions', 'access role', 'authorization'],
useWhen: 'Representing a role or its permission configuration.',
avoidWhen:
'Representing a locked state, security alert, or authentication.',
},
{
key: 'permissions',
label: 'Permissions',
category: 'workspace-and-access',
iconName: 'IconLock',
tablerName: 'lock',
keywords: ['permissions', 'access control', 'authorization', 'privileges'],
useWhen: 'Representing permissions or permission configuration.',
avoidWhen: 'Representing a role, locked state, or security credentials.',
},
{
key: 'billing',
label: 'Billing',
category: 'workspace-and-access',
iconName: 'IconCreditCard',
tablerName: 'credit-card',
keywords: ['billing', 'subscription', 'payment method', 'invoice'],
useWhen: 'Representing billing, subscriptions, or payment settings.',
avoidWhen: 'Representing a currency field, price, or monetary amount.',
},
{
key: 'security',
label: 'Security',
category: 'workspace-and-access',
iconName: 'IconKey',
tablerName: 'key',
keywords: ['security', 'credentials', 'access', 'secrets'],
useWhen: 'Representing security settings, credentials, or access controls.',
avoidWhen:
'Representing a role, one permission, or an authentication state.',
},
{
key: 'audit-logs',
label: 'Audit Logs',
category: 'workspace-and-access',
iconName: 'IconHistory',
tablerName: 'history',
keywords: ['audit logs', 'event logs', 'history', 'activity history'],
useWhen: 'Representing audit, event, or workspace history logs.',
avoidWhen: 'Representing runtime output or execution logs.',
},
{
key: 'logic',
label: 'Logic',
category: 'logic',
iconName: 'IconSettingsAutomation',
tablerName: 'settings-automation',
keywords: ['logic', 'automation', 'business logic'],
useWhen: 'Representing automation logic as a general concept.',
avoidWhen: 'Representing a tool, skill, or serverless function.',
},
{
key: 'workflows',
label: 'Workflows',
category: 'logic',
iconName: 'IconSettingsAutomation',
tablerName: 'settings-automation',
keywords: ['workflow', 'automation flow', 'workflow builder'],
useWhen: 'Representing workflows or the workflow system.',
avoidWhen: 'Representing one workflow action or an AI tool.',
},
{
key: 'tools',
label: 'Tools (AI + Workflows)',
category: 'logic',
iconName: 'IconTool',
tablerName: 'tool',
keywords: ['tool', 'AI tool', 'workflow tool', 'callable capability'],
useWhen: 'Representing tools available to AI agents or workflows.',
avoidWhen: 'Representing application settings or developer skills.',
},
{
key: 'skill',
label: 'Skill',
category: 'logic',
iconName: 'IconBook',
tablerName: 'book',
keywords: ['skill', 'agent instructions', 'knowledge guide'],
useWhen: 'Representing an AI skill or reusable instruction set.',
avoidWhen: 'Representing documentation in general or an executable tool.',
},
{
key: 'serverless-functions',
label: 'Serverless functions',
category: 'logic',
iconName: 'IconBrandTypescript',
tablerName: 'brand-typescript',
keywords: ['serverless function', 'logic function', 'TypeScript function'],
useWhen: 'Representing Twenty serverless or logic functions.',
avoidWhen: 'Representing generic source code or non-TypeScript tools.',
},
{
key: 'execution-logs',
label: 'Execution Logs',
category: 'logic',
iconName: 'IconTerminal',
tablerName: 'terminal',
keywords: ['execution logs', 'runtime logs', 'workflow logs', 'agent logs'],
useWhen: 'Representing runtime output from workflows, agents, or code.',
avoidWhen: 'Representing audit trails, event history, or source code.',
},
{
key: 'ai-model',
label: 'AI Model',
category: 'ai',
iconName: 'IconCpu',
tablerName: 'cpu',
keywords: ['AI model', 'language model', 'LLM', 'model selection'],
useWhen: 'Representing an AI model or model configuration.',
avoidWhen:
'Representing reasoning state, an AI agent, or computer hardware.',
},
{
key: 'ai',
label: 'AI / Ask AI',
category: 'ai',
iconName: 'IconSparkles',
tablerName: 'sparkles',
keywords: ['AI', 'Ask AI', 'assistant', 'generative AI'],
useWhen: 'Representing generic AI features or the Ask AI experience.',
avoidWhen: 'Representing an AI model, agent, prompt, or MCP connection.',
},
{
key: 'prompt',
label: 'Prompt',
category: 'ai',
iconName: 'IconPrompt',
tablerName: 'prompt',
keywords: [
'prompt',
'system prompt',
'instructions',
'prompt configuration',
],
useWhen: 'Representing AI prompts or prompt configuration.',
avoidWhen: 'Representing a command menu, terminal, or AI conversation.',
},
{
key: 'conversation-chat',
label: 'Conversation / Chat',
category: 'ai',
iconName: 'IconMessage',
tablerName: 'message',
keywords: ['conversation', 'chat', 'thread', 'AI message'],
useWhen: 'Representing an AI conversation or chat thread.',
avoidWhen:
'Representing email, notes, comments, or communication settings.',
},
{
key: 'api',
label: 'API',
category: 'platform',
iconName: 'IconApi',
tablerName: 'api',
keywords: ['API', 'REST', 'GraphQL', 'API key'],
useWhen: 'Representing APIs, API access, or API configuration.',
avoidWhen: 'Representing MCP, webhooks, or external-service integrations.',
},
{
key: 'developers',
label: 'Developers',
category: 'platform',
iconName: 'IconCode',
tablerName: 'code',
keywords: [
'developers',
'developer settings',
'API keys and webhooks',
'app development',
],
useWhen:
'Representing the Developers settings area for API keys, webhooks, and apps.',
avoidWhen:
'Representing an API, webhook, or app individually, or generic source code.',
},
{
key: 'cli',
label: 'CLI',
category: 'platform',
iconName: 'IconTerminal2',
tablerName: 'terminal-2',
keywords: ['CLI', 'command line', 'terminal', 'twenty command'],
useWhen: 'Representing the Twenty command line tool or its commands.',
avoidWhen:
'Representing execution logs, runtime output, or the command menu.',
},
{
key: 'api-key',
label: 'API Key',
category: 'platform',
iconName: 'IconKey',
tablerName: 'key',
keywords: ['API key', 'API credential', 'access token', 'secret key'],
useWhen: 'Representing an API key or API credential.',
avoidWhen:
'Representing APIs generally, security settings, or permissions.',
},
{
key: 'webhook',
label: 'Webhook',
category: 'platform',
iconName: 'IconWebhook',
tablerName: 'webhook',
keywords: ['webhook', 'event callback', 'HTTP event', 'webhook endpoint'],
useWhen: 'Representing webhooks, webhook endpoints, or webhook events.',
avoidWhen: 'Representing a generic API, integration, or workflow action.',
},
{
key: 'integration-connection',
label: 'Integration / Connection',
category: 'platform',
iconName: 'IconPlug',
tablerName: 'plug',
keywords: ['integration', 'connection', 'external service', 'provider'],
useWhen:
'Representing an integration or connection to an external service.',
avoidWhen: 'Representing an app, API, MCP, or connected email account.',
},
{
key: 'connected-account',
label: 'Connected Account',
category: 'platform',
iconName: 'IconAt',
tablerName: 'at',
keywords: ['connected account', 'email sync', 'calendar sync', 'mailbox'],
useWhen: 'Representing a connected email or calendar account.',
avoidWhen:
'Representing a generic integration, user account, or email field.',
},
{
key: 'marketplace',
label: 'Marketplace',
category: 'platform',
iconName: 'IconShoppingBag',
tablerName: 'shopping-bag',
keywords: ['marketplace', 'app catalog', 'browse apps', 'marketplace apps'],
useWhen: 'Representing the app marketplace or marketplace catalog.',
avoidWhen: 'Representing an installed app or the action of installing one.',
},
{
key: 'application-version',
label: 'Application Version',
category: 'platform',
iconName: 'IconVersions',
tablerName: 'versions',
keywords: [
'application version',
'app version',
'latest version',
'version',
],
useWhen: 'Representing application version information.',
avoidWhen:
'Representing a Git branch, deployment status, or update action.',
},
{
key: 'notification',
label: 'Notification',
category: 'general',
iconName: 'IconBell',
tablerName: 'bell',
keywords: ['notification', 'notice', 'notification settings', 'alert'],
useWhen: 'Representing notifications or notification settings.',
avoidWhen: 'Representing an error severity, favorite, or decorative star.',
},
{
key: 'files',
label: 'Files',
category: 'general',
iconName: 'IconFiles',
tablerName: 'files',
keywords: ['files', 'file collection', 'documents', 'file section'],
useWhen: 'Representing a collection of files or a files section.',
avoidWhen: 'Representing one file, an attachment, or an upload action.',
},
{
key: 'attachments',
label: 'Attachments',
category: 'general',
iconName: 'IconPaperclip',
tablerName: 'paperclip',
keywords: [
'attachment',
'attachments',
'attached file',
'record attachment',
],
useWhen: 'Representing attachments or an attachment relationship.',
avoidWhen:
'Representing a general file collection, import, or upload action.',
},
{
key: 'dictation',
label: 'Dictation',
category: 'general',
iconName: 'IconMicrophone',
tablerName: 'microphone',
keywords: ['dictation', 'voice input', 'speech to text', 'microphone'],
useWhen: 'Representing voice input or a dictation control.',
avoidWhen:
'Representing audio playback, a call recording, or a phone number.',
},
{
key: 'app',
label: 'App',
category: 'general',
iconName: 'IconApps',
tablerName: 'apps',
keywords: ['app', 'application', 'Twenty app'],
useWhen: 'Representing an application or the apps platform.',
avoidWhen: 'Representing a widget, integration, or one navigation item.',
},
{
key: 'mcp',
label: 'MCP',
category: 'platform',
iconName: 'IconSparkles',
tablerName: 'sparkles',
keywords: ['MCP', 'Model Context Protocol', 'AI connection'],
useWhen: 'Representing MCP integrations, servers, or capabilities.',
avoidWhen:
'Representing generic AI features, APIs, or non-MCP integrations.',
},
{
key: 'admin-panel',
label: 'Admin Panel',
category: 'platform',
iconName: 'IconServer',
tablerName: 'server',
keywords: [
'admin panel',
'instance administration',
'system administration',
'admin settings',
],
useWhen:
'Representing the Twenty admin panel or instance-level administration.',
avoidWhen:
'Representing infrastructure health, server status, or workspace settings.',
},
{
key: 'navigation-sidebar',
label: 'Navigation Sidebar',
category: 'general',
iconName: 'IconLayoutSidebar',
tablerName: 'layout-sidebar',
keywords: ['navigation sidebar', 'sidebar', 'left navigation'],
useWhen: 'Representing the application navigation sidebar.',
avoidWhen: 'Representing a destination inside the navigation menu.',
},
{
key: 'iframe',
label: 'Iframe',
category: 'general',
iconName: 'IconFrame',
tablerName: 'frame',
keywords: ['iframe', 'embedded page', 'web frame'],
useWhen: 'Representing an iframe or embedded external page.',
avoidWhen: 'Representing a native page layout or browser window.',
},
{
key: 'agents',
label: 'Agents',
category: 'general',
iconName: 'IconLego',
tablerName: 'lego',
keywords: ['agent', 'AI agent', 'agent configuration'],
useWhen: 'Representing AI agents or the agents platform.',
avoidWhen: 'Representing MCP, tools, or generic automation logic.',
},
] as const satisfies readonly TwentyIconDictionaryEntry[];