Skip to content

🍬 BlockSuite is the open-source collaborative editor project behind AFFiNE.

License

Notifications You must be signed in to change notification settings

domartisan/artisan-block-editor

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BlockSuite

BlockSuite logo and name

Codecov Checks Status Issues Closed NPM Latest Release NPM Nightly Release Open in StackBlitz Open in CodeSandbox Join Discord


BlockSuite (pronounced "block sweet" 🍬) is the open-source editor project behind AFFiNE. It provides an out-of-the-box block-based editor built on top of a framework designed for general-purpose collaborative applications. This monorepo maintains both the editor and the underlying framework.

BlockSuite-based Editor in AFFiNE

BlockSuite-based Editor in AFFiNE

⚠️ This project is under heavy development and is in a stage of rapid evolution. Stay tuned or see our roadmap here!

Introduction

BlockSuite works very differently than traditional rich text frameworks. Feature highlights:

  • πŸ“ Block-Based Editing: BlockSuite breaks down rich content into discrete contenteditable blocks, avoiding pitfalls using traditional monolithic rich text container.
  • 🧬 Intrinsically Collaborative: By harnessing the power of CRDT, any application built with BlockSuite effortlessly supports real-time collaboration right from the start.
  • 🧩 Framework Agnostic: With UI components implemented using Web Components, BlockSuite provides editors that can be easily embedded and eliminates the risk of vendor lock-in.
  • 🎯 Incremental State Sync: The state updates in BlockSuite can be incrementally encoded as standardized binaries, enabling efficient data synchronization over various network protocols.
  • πŸ“ Compact Rich Text: BlockSuite builds its own rich text component. With minimal responsibilities that benefits from the block-based architecture, this component is light, simple and reliable.
  • 🎨 Hybrid Infinite Canvas: A high performance canvas-based renderer is also provided by BlockSuite, fulfilling needs for whiteboard functionalities.

Check out blocksuite.affine.pro for a detailed overview!

Resources

Getting Started

To learn how to start using BlockSuite, visit blocksuite.affine.pro.

Current Status (@blocksuite/editor)

For more detailed planning and recent progress, please checkout our GitHub project.

  • Basic text editing
    • βœ… Paragraph with inline style
    • βœ… Nested list
    • βœ… Code block
    • βœ… Markdown shortcuts
  • Block-level editing
    • βœ… Inline text format bar
    • βœ… Inline slash menu
    • βœ… Block hub
    • βœ… Block drag handle
    • βœ… Block-level selection
  • Rich-content
    • βœ… Image block
    • βš›οΈ Database block
    • πŸ“Œ Third-party embedded block
  • Whiteboard (edgeless mode)
    • βœ… Zooming and panning
    • βœ… Frame block
    • βœ… Shape element
    • βœ… Handwriting element
    • βš›οΈ Shape connector
    • 🚧 Grouping
  • Playground
    • βœ… Multiplayer collaboration
    • βœ… Local data persistence
    • βœ… E2E test suite
  • Developer experience
    • βœ… Block tree update API
    • βœ… Zero cost time travel (undo/redo)
    • βœ… Reusable NPM package
    • 🚧 Block schema

Icons above correspond to the following meanings:

  • βœ… - Beta
  • βš›οΈ - Alpha
  • 🚧 - Developing
  • πŸ“Œ - Planned

Building

See BUILDING.md for instructions on how to build BlockSuite from source code.

Contributing

BlockSuite accepts pull requests on GitHub. Before you start contributing, please make sure you have read and accepted our Contributor License Agreement. To indicate your agreement, simply edit this file and submit a pull request.

License

MPL 2.0

About

🍬 BlockSuite is the open-source collaborative editor project behind AFFiNE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.1%
  • Other 0.9%