HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sidharthv

no profile record

comments

sidharthv
·5 ay önce·discuss
I naively searched in the mobile app settings for a way to turn off shorts, before realising there will not be one.
sidharthv
·2 yıl önce·discuss
fabric.js looks interesting. We should theoretically be able to add a fabric.js based renderer for mermaid once the refactoring work is done.
sidharthv
·2 yıl önce·discuss
We are doing some fundamental changes to how diagrams are rendered, which would enable us to support more renderers. This will enable us to do server side rendering without a browser.

The main reason why we need a browser currently is size calculations of the SVG boxes, which libraries like jsdom does not support.
sidharthv
·2 yıl önce·discuss
Thank you, will try that option.
sidharthv
·2 yıl önce·discuss
Hi Peter,

My wife is going to pursue her PhD in US in the coming months, and I'm working as part-time remote employee of a US startup, while owning a startup in India. What options do I have, which would allow me to visit her for 1-2 months, without affecting my work?

I've heard B1/B2 holders being questioned during entry after they stayed for a month during previous trips. As I'm not working full time for the US company, I'm not eligible for L1.
sidharthv
·2 yıl önce·discuss
Styling is already present in most charts, and we do have plans to support different layout algorithms which could enable support for custom placement of nodes as well.
sidharthv
·2 yıl önce·discuss
Mermaid, the open source library and Mermaid Live editor[1] are free to use.

Mermaid chart has a paid tier[2], and gives storage, sharing, visual editor, and more.

Disclosure: Long time maintainer of Mermaid and works on Mermaid Chart

[1] https://mermaid.live

[2] https://www.mermaidchart.com/pricing
sidharthv
·2 yıl önce·discuss
SvelteKit, with Zenstack handling access control on top of Prisma. Postgres as DB.
sidharthv
·3 yıl önce·discuss
There was a discussion in MermaidJS community to move away from Slack into Discord. But we were thinking about moving to a FOSS platform instead.

What are some viable options that communities have had success with?
sidharthv
·3 yıl önce·discuss
Themes and colors, we can do. I've seen people drawing some spectacular diagrams with Mermaid.

But we cannot easily add layout logic without sacrificing the simplicity of the syntax.
sidharthv
·3 yıl önce·discuss
This would really be a good UX improvement.

But the implementation might be a little tricky.

Please raise an issue so we can discuss further, and add it to roadmap if feasible.

https://github.com/mermaid-js/mermaid/issues/new
sidharthv
·3 yıl önce·discuss
Thank you!

All credits for the layout goes to dagre.

We've recently introduced elk and cytoscape as layout engines for some diagrams (flowchart-elk & mindmap).
sidharthv
·3 yıl önce·discuss
Mermaid as a whole doesn't have a formally specified grammar. Individual diagrams have their grammar in a .jison file.

Flowchart: https://github.com/mermaid-js/mermaid/blob/develop/packages/...

A single grammar to support all the different use cases would be challenging. But we did have some plans to introduce guidelines to make different diagram syntaxes more consistent.
sidharthv
·3 yıl önce·discuss
I feel both have their niche carved out.

For developers, text-based editors are an excellent tool to represent not-so-complex logic/procedures where they don't need to spend time worrying about the visual angle. It's easier to integrate into documentation with a ```mermaid, and easy to keep updated.

So there is no context switching involved in opening up a visual editing tool, downloading the image, integrating it to the docs, then having to repeat the whole process again when there are changes.

As an architect, one of your primary responsibilities would be to create high-level diagrams that need to convey a lot more information to the stakeholders, where the weightage of the visual component is high (layout, colors, etc). Which is where Visual editors shine.

Text - Simple, Quick & Dirty diagrams.

Visual - Detailed, well thought out diagrams.
sidharthv
·3 yıl önce·discuss
This is wonderful. I've always felt docs are a weak point of Mermaid as there are many features that are undocumented, and it's a little incoherent overall. Will add a link to this cheat sheet from the official docs.

Also, we just released v10 which

- is 70% smaller (<100 kB gzipped)

- has lazy loaded diagrams (only download diagrams that are used in the site)

- fully async rendering and parsing

- cleaner internals

Disclosure: Mermaid maintainer here
sidharthv
·4 yıl önce·discuss
I had to add compression into Mermaid live editor's URL state as the length limit was exceeded with big diagrams.

Wrote this SerDe which can be extended with better algorithms in the future. https://github.com/mermaid-js/mermaid-live-editor/blob/devel...

Eg: https://mermaid.live/edit#pako:eNo9kUGTnCAQhf8K1adNlesoqKiHV...