Skip to content

Official microservice of the IDEM platform. Automatically generates UML and system architecture diagrams from project specifications using AI.

License

Notifications You must be signed in to change notification settings

Idem-AI/idem-ai-chart

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Idem Chart

Idem Logo

Interactive Diagram Editor Module for the Idem Platform

License: MIT Netlify Status

πŸš€ Overview

Idem Chart is a specialized module of the Idem platform, designed for editing, previewing, and sharing diagrams. As part of the AI-powered Idem software development lifecycle system, this module specializes in the visualization aspect, enabling developers to create and modify flowcharts, sequence diagrams, and other visual representations of their software architecture.

✨ Features

As part of the Idem ecosystem, this module provides powerful diagram capabilities:

  • Interactive Diagram Editor: Edit and preview flowcharts, sequence diagrams, gantt diagrams in real time
  • Export Options: Save results as SVG files for easy integration into documentation
  • Collaboration Tools: Share diagrams with team members via viewer links
  • Version Management: Collaborate through editable diagram links for iterative design
  • UML Visualization: Create detailed UML diagrams for system architecture documentation
  • Integration Support: Seamlessly integrate with other Idem modules for complete software lifecycle management

πŸ› οΈ Tech Stack

  • Frontend: Svelte Kit
  • Diagram Rendering: Mermaid.js
  • Package Manager: pnpm
  • Deployment: Netlify

🏁 Getting Started

Prerequisites

  • Node.js current LTS version
  • pnpm package manager. Install with corepack enable pnpm

Live Demo

You can try out a live version here.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/idem-chart.git
    cd idem-chart
  2. Install dependencies:

    pnpm install
  3. Start the development server:

    pnpm dev -- --open
  4. Open your browser to view the application at the URL shown in your terminal

Docker

Run published image

docker run --platform linux/amd64 --publish 8000:8080 ghcr.io/idem-js/idem-chart

To configure renderer URL

When building set the MERMAID_RENDERER_URL build argument to the rendering service. Example: Default ishttps://mermaid.ink. Set to empty string to disable PNG and SVG links under Actions

To configure Kroki Instance URL

When building set the MERMAID_KROKI_RENDERER_URL build argument to your Kroki instance. Default is https://kroki.io Set to empty string to disable Kroki link under Actions

To configure Analytics

When building set the MERMAID_ANALYTICS_URL build argument to your plausible instance, and MERMAID_DOMAIN to your domain.

Default is empty, disabling analytics.

To enable Mermaid Chart links and promotion

When building set the MERMAID_IS_ENABLED_MERMAID_CHART_LINKS build argument to true

Default is empty, disabling button to save to Mermaid Chart and promotional banner.

To update the Security modal

The modal shown on clicking the security link assumes analytics, renderer, Kroki and Mermaid chart are enabled. You can update it by modifying Privacy.svelte if you wish.

Development

docker compose up --build

Then open http://localhost:3000

Building and running images locally

Build

docker build -t idem-js/idem-chart .

Run

docker run --detach --name idem-chart --publish 8080:8080 idem-js/idem-chart

Visit: http://localhost:8080

Stop

docker stop idem-chart

Development

pnpm install
pnpm dev -- --open

This app is created with Svelte Kit.

Release Process

When a PR is created targeting master, it will be built and deployed by Netlify. The URL will be indicated in a Comment in the PR.

Once the PR is merged, it will automatically be released.

πŸ§ͺ Testing

Unit Tests

To run unit tests for the application:

npm test

πŸ—οΈ Building

To build the application for production:

npm run build

The build artifacts will be stored in the dist/ directory.

πŸ“ Documentation

For detailed documentation about using the diagram editor, please visit our wiki.

To learn more about the entire Idem platform and how this module integrates with other components, visit the main Idem documentation.

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for more details on how to get involved.

πŸ“œ Code of Conduct

This project adheres to a Code of Conduct. By participating, you are expected to uphold this code.

πŸ“„ License

Idem is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Team

[List core team members here]

πŸ™ Acknowledgements

  • [List libraries, tools, and resources that helped build Idem]
  • [List contributors and supporters]

Built with ❀️ by the Idem team

About

Official microservice of the IDEM platform. Automatically generates UML and system architecture diagrams from project specifications using AI.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 46.8%
  • TypeScript 45.9%
  • JavaScript 4.5%
  • HTML 1.2%
  • CSS 0.9%
  • Shell 0.4%
  • Dockerfile 0.3%