Coder Social home page Coder Social logo

feakin / feakin-web Goto Github PK

View Code? Open in Web Editor NEW
94.0 5.0 3.0 8.2 MB

Feakin 是一个架构设计与可视化协作工具。Feakin is a architecture design and visual collaboration tool.

Home Page: https://online.feakin.com/

License: Mozilla Public License 2.0

CSS 0.07% TypeScript 76.93% HTML 1.53% JavaScript 6.68% Rust 9.21% Shell 0.01% Yacc 5.56% Procfile 0.01%
diagram-as-code collaboration

feakin-web's Introduction

Feakin

Modernize architecture visualization assets management, based on Diagram-as-code, so you can create, share and edit diagram. Support for import Mermaid, PlantUML, Excalidraw, Dot and more.

CI codecov npm

Code Coverage

Chinese introduction: Feakin 是一个架构资产可视化管理工具。基于图表即代码 的**体系,支持导入 Mermaid, PlantUML, Excalidraw, Dot 等图形资产格式。

Core Technical:

  • concepts: Collaboration (CRDT) + DSL (pest.rs) + Graph Engine + Editor Language (Monaco)
  • stacks: Rust( + WASM) + React + TypeScript

特性:

  • Graph
    • 跨图工具转换。支持导入 Mermaid, PlantUML, Excalidraw, Dot 等图形资产格式,并基于 Graph MIR 进行转换。
    • 广泛的图表格式导出。
      • Drawio
      • Excalidraw
    • 模板创建。支持创建模板,并基于 Graph MIR 进行转换,转换成其它图表格式。
    • 多样化图形布局。支持 Dagre、ELK、Cola 等布局。
    • Dagre
      • replace Grapvhiz to WASM
    • 手绘风格。
      • Rough.js sample
  • Collaboration
    • Server
    • Protocol
      • CRDT
    • Editor
  • DSL
    • FKL Syntax
    • FKL Parser
    • FKL LSP
  • Editor
    • Dot Language
    • Fkl Language

DSL Samples

ContextMap TicketBooking {
  Reservation <-> TicketContext;
}

Context TicketContext {
  Aggregate Ticket, Reservation;
}

Entity Ticket {
  Struct {
    seat: String;
  }
}

// binding;
impl CinemaCreated {
  endpoint {
    GET "/book/{id}";
    authorization: Basic admin admin;
    response: Cinema;
  }

  flow {
    via UserRepository::getUser receive x: User;
    via Kafak send User to "user.create";
  }
}

Demos

Try Online demo: https://online.feakin.com/ Or install @feakin/cli for diagrams converter:

npm install -g @feakin/cli

feakin --input software-development.md.drawio --output sd.excalidraw

Todos

Setup

We use nx.js for mono-repo architecture.

  1. install
npm install --legacy-peer-deps

Note: nx.js use Craco, which will need --legacy-peer-deps.

  1. development exporter, can just run by tests

License

@2022 Thoughtworks This code is distributed under the MPL license. See LICENSE in this directory.

feakin-web's People

Contributors

phodal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

feakin-web's Issues

Multiple page import support for Draw.io

Is your feature request related to a problem? Please describe.

In draw.io can have multiple page as follows:

<mxfile host="Electron"  type="device" pages="2">
  <diagram id="8JGP3nOlBgeSVblqOJpB" name="Sample">
    
  </diagram>
  <diagram id="Fkr4O0f3wwbDCb1U1vSy" name="Example">

  </diagram>
</mxfile>

Describe the solution you'd like

support for multiple Graph model

Replace Graphviz from dotparser to WASM

Is your feature request related to a problem? Please describe.
In currently, we we dagre layout and dot-parser for build Graphviz layout.

But in the FKL, we need fdp layout for render relationship between elements, dagre don't support this.

Describe the solution you'd like

replace Graphviz render/parser to WASM Version

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.