Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-erd

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-erd

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SimpleERD

SimpleERD is a tool to generate beautiful ERD digrams from plain text.

SimpleERD started out as an experiment and is currently at its early stage of development. Consider it a working prototype. SimpleERD is written in Ruby, but this is likely subject for a change.

Installation

There are two installation options on macOS:

Usage

SimpleERD requires a text file as an input. Input file contains text formatted the following way:

[entity_1]
attribute | type

[entity_2]
attribute | type | modifier

[entity_3]
attribute

(entity_group_1)
entity_1
entity_2

(entity_group_2)
entity_3

entity_1 ?--1 entity_2
entity_3 *--n entity_2

Here, [entity_1] starts a block, indicating an entity. Right below [entity_1] come entity attributes. An entity attribute is defined by a attribute_name, type (optional and modifier (optional).

At the bottom of input file – relations between entities. Syntax for relations:

  • ? – 0 or 1
  • 1 – exactly 1
  • * – 0 or more
  • + – 1 or more
  • x – relation is undefined, will render as ??? in the output.

Examples

$ simple-erd -i samples/complex_input.txt -o /tmp/output.pdf

See /samples for more samples.

Motivation

I was inspired by erd from Andrew Gallant, but had a couple of issues with it:

  • mainly I found it hard, although possible, to install:

    • erd requires haskell runtime to be available, which takes around 1Gb when installed.
    • it is required to install cabal and all of erd's dependencies manually.
  • the libarary doesn't seem to be actively maintained.

Also, I wanted to work on the custom styling of the diagram.

Licence

MIT

FAQs

Package last updated on 23 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc