Live data from Hacker News

Show HN: Bangle.dev – Collection of tools for building rich text editors

github.com

11–20 of 28 posts

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#12

What is this providing over ProseMirror on which it's built? Like, why would I choose this library instead of just using ProseMirror directly? Adding such a page to the docs might be helpful. Here's a great example of what such a comparison might look like: https://github.com/colinhacks/zod#comparison

Hey thats a great feedback, I am planning to address this in the coming weeks.

For anyone reading this, the gist is that it complements Prosemirror by providing pre-cooked components that you can use in your project. If you need more advanced functionality, bangle doesn't stand in your way and you can extend it to your hearts content with Prosemirror.

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#13

Is there a lib like this for text augmentation? to build something like grammarly or textio.

You should be able to implement something like this using, see Prosemirror's example https://prosemirror.net/examples/lint/

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#14

Any thoughts on adding codemirror 6 as an editor component too? It's recently in beta and looks like a fantastic complement to prosemirror: https://marijnhaverbeke.nl/blog/codemirror-6-beta.html

Yes, I have plans to add an editor code block component soon.

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#15

This seems to be built on top of the venerable ProseMirror. Had developed something slightly similar (for now primarily used in-house and API is somewhat clunky and unstable): essentially, a wrapper around ProseMirror that makes it easy to use in React, and introduces an additional abstraction that combines schema features and related editor plugins. Thought someone can make it better, and maybe this is that project.…

> Tangentially, a cool thing would be to unite ProseMirror with Automerge. That’d enable some killer collaborative editors.

Prosemirror already has collaboration baked into it and I have a very rough initial version of it working (see https://github.com/bangle-io/bangle.dev/tree/master/collab). My question for you is what benefit will using Automerge provide over the inbuilt collaboration API?

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#16
post #2

This looks cool! What would be the biggest motivation for using this over something like slateJS?

I tried to use slateJS initially, but I found the project to be slow (it was using ImmutableJS back then) and even though it claims it can support collaboration, it doesn't actually support it which is a deal breaker for me.

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#17

This seems to be built on top of the venerable ProseMirror. Had developed something slightly similar (for now primarily used in-house and API is somewhat clunky and unstable): essentially, a wrapper around ProseMirror that makes it easy to use in React, and introduces an additional abstraction that combines schema features and related editor plugins. Thought someone can make it better, and maybe this is that project.…

How does it compare to https://github.com/remirror/remirror ?

I have been following remirror since the start and also started working on bangle.dev at the same time.

bangle.dev aims to add little API overhead on top of Prosemirror (PM) whereas Remirror tries really hard to hide the PM API and attempts to provide its own React-ish abstraction. This might be a totally fine choice, but I went with the route of building reusable components instead of abstractions.

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#18

Any thoughts on adding codemirror 6 as an editor component too? It's recently in beta and looks like a fantastic complement to prosemirror: https://marijnhaverbeke.nl/blog/codemirror-6-beta.html

Yes, I have plans to add an editor code block component soon.

Very cool! If you are considering codemirror 6, the author had a nice little talk at fosdem this year that goes into a bit of the features and design: https://fosdem.org/2021/schedule/event/codemirror/

Re: Show HN: Bangle.dev – Collection of tools for building rich text editors

#20

This seems to be built on top of the venerable ProseMirror. Had developed something slightly similar (for now primarily used in-house and API is somewhat clunky and unstable): essentially, a wrapper around ProseMirror that makes it easy to use in React, and introduces an additional abstraction that combines schema features and related editor plugins. Thought someone can make it better, and maybe this is that project.…

> Tangentially, a cool thing would be to unite ProseMirror with Automerge. That’d enable some killer collaborative editors. Prosemirror already has collaboration baked into it and I have a very rough initial version of it working (see https://github.com/bangle-io/bangle.dev/tree/master/collab ). My question for you is what benefit will using Automerge provide over the inbuilt collaboration API?

Automerge seems more state-of-the-art as far as automatic data syncing and merging goes.
Post reply on HN