Code Monkey home page Code Monkey logo

d2-live's Introduction

D2-Live

Generate Live Diagram URLs with D2

Publish Status Build Status Uptime License Coverage Status

Aboout

D2-Live is a dynamic tool for creating live, embeddable diagrams using the D2 language.

Key Features and Benefits

  • Effortless Diagram Generation: Convert text to diagrams instantly.
  • Live URLs: Share and embed your diagrams anywhere with live URLs.
  • SVG Output: High-quality, scalable vector graphics ensure your diagrams look sharp at any size.

How to Use D2-Live

  1. Create a Diagram: Start with a text-based diagram in D2 language. Example:
    x: That's got to be the best pirate I've ever seen
    x -> y
    y: So it would seem...
    y -> z: Jack Sparrow's theme starts
    z: Fade into horizon
    
  2. Use D2-Playground: Paste your diagram into d2-playground.
  3. Generate Live URL: Change the URL domain to d2.atlas.lucas.tools. For example, https://d2.atlas.lucas.tools/?script=<encoded_string> gives you an SVG of your diagram.
  4. Embed and Share: The SVG diagram can be embedded and shared anywhere.

Diagram Example

You can use any of the D2-Themes to customize the look of your diagram, just add &theme=<theme_id> to the URL.

Contributing to D2-Live

We welcome contributions! Please refer to our Contribution Guidelines for details on how to submit changes, coding standards, and testing procedures.

License

D2-Live is MIT licensed. For more information, please refer to the LICENSE file.

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.