{
  "id": 1044079,
  "title": "Archi Semantic Core: Using Archi Models from TypeScript",
  "url": "https://urgent.news/2026/08/15/archi-semantic-core-using-archi-models-from-typescript",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-15T13:26:02.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/continuous-drivenarchitecture/archi-semantic-core-using-archi-models-from-typescript-171n"
  },
  "original_language": "en",
  "account": "Archi Semantic Core enables working with Archi models from TypeScript. Models are stored in .archimate files, which contain elements, relationships, folders, views, diagram objects, connections, properties, geometry, and other data. The @cda/archi-semantic-core package provides access to this information in TypeScript without requiring understanding of how Archi structures its native XML internally.\n\nInstallation is done via npm: npm install @cda/archi-semantic-core. The primary operation is parseArchiModel, which takes XML text of a native Archi model and returns a typed ArchiModel.\n\nWith the model, you can access elements, relationships, and views. Elements are available through model.elements, and relationships through model.relationships. Your application can work directly with concepts from the Archi model instead of manually navigating XML nodes and namespaces. Elements include information such as name, type, and xsiType. Relationships contain type, sourceId, and targetId.\n\nTo extract XML from a .archimate file, use extractArchiModelXml to retrieve the XML from the file. The library separates responsibilities between extractArchiModelXml and parseArchiModel. Working with elements can be done using for loops or filtering techniques. Elements can be filtered based on their type, such as finding all ApplicationComponent elements.\n\nRelationships can also be filtered and queried similarly to elements. With this library, you can easily open a model created in Archi and inspect its contents.",
  "summary": "How to read a .archimate file and work with its elements, relationships, and views from your own application. Archi stores its models in .archimate files. Although we normally interact with them through the editor, these files contain the complete model: elements, relationships, folders, views, diagram objects, connections, properties, geometry, and other data used by Archi. archi-semantic-core…",
  "key_points": [
    "Archi Semantic Core library enables working with Archi models using TypeScript.",
    "Installation via npm package @cda/archi-semantic-core."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}