Component Library Tour
Applies to: CoModel cloud modeling & simulation platform (v1.15+)
1. Overview
The Component Library page is your single entry point for browsing every modeling component. Built-in MTK standard library components, custom components you uploaded or wrote online, components published by the platform, and FMU / AI components — all of them can be browsed, searched, and filtered here.
Page layout:
- Top toolbar: search box + component type filter (MTK / FMU / AI) + source filter (Builtin / Official / User)
- Category filter tree on the left: organizes all visible components by category; clicking a node filters the list on the right
- Component list on the right: card / table views, both paginated

2. Page entry point
The Component Library page has exactly one entry point: Sidebar → Component Library.
Do not confuse: the sidebar My Components group (MTK Components / FMU Components / AI Components) holds the upload and management pages for each component type — it is not the entry to this page. The Component Browser on the left of the graphical editor shows components under the same category system for dragging into models; it does not open this page either.
3. Component sources
Components in the library come from three different sources, each with its own permissions and visibility:
| Source | Visibility | Editable | Description |
|---|---|---|---|
| MTK standard library | All users | ❌ | Built-in standard components from ModelingToolkitStandardLibrary |
| Platform Official Components | All users | Admins only | Extension components maintained by the platform team |
| User component library | Creator only | ✅ | Components you upload (.jl files, FMUs, ONNX models) or write online |
Data isolation: regular users see only the MTK standard library, Official Components, and their own user component library. Custom components are fully isolated between users — you cannot see another user's components (administrators can view all component rows).
Categories are isolated too (category privatization in v1.15): personal categories are visible only to their creator. See Managing Component Categories.
4. Category filter tree on the left
The filter tree on the left organizes components by category. Click any category node and the list on the right shows only components under it; click All Categories to restore the full list. Each category shows the count of currently visible components to its right.
4.1 Standard library categories (two levels)
Standard library components ship with categories grouped by physical domain. Top-level domains expand into second-level subdomains (standard library submodules):
📂 Blocks control
📂 Electrical electrical
📂 Hydraulic hydraulic
📂 Magnetic magnetic
📂 Mechanical mechanical
📂 Thermal thermal
Standard library categories are virtual categories: they are generated at runtime by scanning the MTK source, occupy no database categories, and cannot be edited.
4.2 Database categories and Uncategorized
Database categories are tied to your signed-in identity and consist of three parts:
- Built-in categories: 6 system categories named after the standard library domains (Electrical, Mechanical, Thermal, Hydraulic, Magnetic, Blocks)
- Your personal categories: categories you create, visible only to you
- Official categories: shared by everyone, created by administrators
Components without a category fall into the Uncategorized virtual node, at the end of the filter tree; it appears only when uncategorized content exists.
📁 All Categories
├── 📂 Electrical ← built-in
├── ...
├── 📂 Power Electronics ← my personal category
├── 📂 Official Extensions ← official category
└── 📂 Uncategorized ← virtual node, always last
4.3 Display order (unified convention)
The category filter tree follows one unified display order: built-in → user (personal) → official → Uncategorized (always last); within the built-in group, alphabetical by English name (matching the standard library scan order). The same convention applies to the filter bars on the My Components (MTK) / FMU / AI pages, the upload dialog dropdowns, and the graphical modeling sidebar.

5. Component list on the right
Components support card and table views (toggle at the top right); both are paginated.
Each component in the card view shows:
| Field | Description |
|---|---|
| Icon | The component's SVG icon (falls back to the type icon when none is set) |
| Name | The name shown in the component tree |
| Category | The category the component belongs to |
| Description | Brief summary (truncated when too long) |
| Type badge | MTK / FMU / AI; FMU adds FMI version and mode badges, AI adds input/output count badges |
| Source badge | Builtin / Official / User |
| Port count | Number of connectable ports |
The table view provides full columns: Name, Description, Category, Type, Source, Version, Created At. Click any component (the name link in either view) to open its details.
6. Search and filters
- Search box: instant filtering, matching component name and description, covering both the standard library and database components
- Type filter: All / MTK / FMU / AI
- Source filter: All / Builtin / Official / User
Search and filters are instant client-side operations — the list updates immediately as you type or switch, with no server round-trip.

7. Loading mechanism
The Component Library page and the component tree in the graphical editor use the same data path:
- Standard library path: the backend scans the MTKStdLib source through Julia Core and generates the component list and SVG icons in real time; standard library components have no database rows and change automatically with platform updates
- User library path: upload records are read from the
component_library_filestable, then the components parsed from each file are fetched; a custom component appears only after upload/save → successful parsing (parse_status=ok) - Category path:
/api/categoriesreturns built-in categories + official categories + your personal categories based on the signed-in identity; the standard library virtual categories are merged client-side with the scan results
8. FAQ
Why doesn't my uploaded file appear in the component tree?
Possible causes:
- Parsing is still in progress (
parse_status=parsing) — wait or refresh the page - Parsing failed (
parse_status=error) — check the error message on the My Components page - The file contains no component definitions
Can standard library components be modified?
No. The MTK standard library and platform Official Components are read-only. For custom behavior, upload or write your own components online.
Why can't I see categories created by other users?
Personal categories are visible only to their creator. What you see in the category list is always "built-in + official + your own personal categories".
Why do some components show as Uncategorized?
Two possibilities: the component genuinely has no category; or it belongs to another user's personal category — to avoid leaking private category names, the server masks the name and your UI shows it uniformly as Uncategorized.
How do I set an icon for a custom component?
CoModel's icon system supports assigning SVG icons to components. Standard library components already have preset icons; for custom components, assign or change icons on the My MTK Components page via Edit Meta Info in the actions column. See Component Icon System Overview for drawing, uploading, and managing icons, and Component Icons & Port Anchors for port anchor rules.