MCPcopy Index your code
hub / github.com/remirror/remirror

github.com/remirror/remirror @3.0.3 sqlite

repository ↗ · DeepWiki ↗ · release 3.0.3 ↗
6,332 symbols 15,342 edges 1,117 files 621 documented · 10%
README

animated remirror logo

A React toolkit for building cross-platform text editors, based on ProseMirror.

Motivation · Status · Documentation · Storybook · Contributing

Bundled sized of core library Continuous integration badge for automatic releases Continuous integration badge for docs deployment Project maintainability provided by CodeClimate Unit test coverage for the codebase Discord Version Sponsor

Introduction

import React from 'react';
import { BoldExtension, ItalicExtension, UnderlineExtension } from 'remirror/extensions';
import { Remirror, useRemirror, OnChangeJSON } from '@remirror/react';

const extensions = () => [new BoldExtension(), new ItalicExtension(), new UnderlineExtension()];

const Editor = ({ onChange }) => {
  const { manager, state } = useRemirror({
    extensions,
    content: '

Hi <strong>Friend</strong>

',
    stringHandler: 'html',
    selection: 'end',
  });

  return (
    <Remirror manager={manager} initialContent={state}>
      <OnChangeJSON onChange={onChange} />
    </Remirror>
  );
};

With this code snippet your editor now supports basic editing functionality.

Alternatively, take a look at our 5 minute tutorial to get up and running with an out-of-the-box WYSIWYG editor.

Installation

npm install remirror @remirror/react @remirror/pm
# Or
yarn add remirror @remirror/react @remirror/pm
# Or
pnpm add remirror @remirror/react @remirror/pm

If you run into any issues we recommend any of the following:

  • Open an issue in our github repo.
  • Join our discord server and discuss the problem with our community.
  • Create a pull request with your proposed improvement by clicking the edit button on the relevant page.

Whatever you decide thanks for taking the time to explore the remirror project.

Our community

Sponsors

NEXT logo NEXT Reflect logo Reflect

Become a sponsor!

Community spotlight

Benefex logo Benefex Cobudget logo Cobudget eftax logo eftax Co., Ltd. LabKey logo LabKey Onethread logo Onethread

Documentation

View our documentation website here.

Features

  • A11y focused and ARIA compatible.
  • I18n support via lingui.
  • Great support for mobile devices.
  • Out-of-the-box editors, or create own by composing extensions.
  • Create your own extensions for bare-metal ProseMirror integration.
  • Collaborative editing with yjs or prosemirror-collab.
  • 30+ extensions for creating fully customized editing experiences.
  • TypeScript as a first class citizen for great developer experience.

Getting Started

See our 5 minute tutorial to get started!

Contributing

Please read our contribution guide for details on our code of conduct, and the process for submitting pull requests. It also outlines the project structure so you can find help when navigating your way around the codebase.

Versioning

This project uses SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details

Extension points exported contracts — how you extend this code

BaseFramework (Interface)
(no doc) [7 implementers]
packages/remirror__core/src/framework/base-framework.ts
InsertProps (Interface)
* Insert
packages/jest-remirror/src/jest-remirror-utils.ts
ValidOptionsExtender (Interface)
* The interface which defines the valid annotations that can be used as * part of options. * * @remarks
packages/remirror__core-types/src/annotation-types.ts
ExternalMapOptions (Interface)
* Options related to configuring another MapLike structure to store annotations. * * @deprecated
packages/remirror__extension-annotation/src/annotation-types.ts
StateProps (Interface)
* Required props to create entityReference marks decorations.
packages/remirror__extension-entity-reference/src/entity-reference-extension.ts
ManagerStore (Interface)
(no doc) [2 implementers]
packages/remirror__extension-react-ssr/src/react-ssr-extension.ts
Theme (Interface)
* The interface for the remirror theme. It is declared in the global * namespace to allow you to extend and update
packages/remirror__theme/src/utils.ts
ActionTypes (Interface)
* This is an interface of all the actionTypes available. Use declaration merging to * extend it with your own custo
packages/multishift/src/multishift-constants.ts

Core symbols most depended-on inside this repo

GenIcon
called by 2271
packages/remirror__react-components/src/icons/icons-base.tsx
insertText
called by 408
packages/remirror__core/src/builtins/commands-extension.ts
push
called by 235
packages/remirror__cli/src/utils/debounce-executor.ts
renderEditor
called by 213
packages/jest-remirror/src/jest-remirror-editor.ts
createEditor
called by 196
packages/jest-prosemirror/src/jest-prosemirror-editor.ts
callback
called by 188
packages/jest-prosemirror/src/jest-prosemirror-editor.ts
press
called by 186
packages/jest-prosemirror/src/jest-prosemirror-editor.ts
command
called by 171
packages/remirror__core/src/builtins/builtin-decorators.ts

Shape

Function 3,980
Method 1,099
Interface 907
Class 328
Enum 18

Languages

TypeScript100%

Modules by API surface

packages/remirror__react-components/src/icons/all.ts2,124 symbols
packages/remirror__react-components/src/icons/core.ts147 symbols
packages/remirror__core-utils/src/core-utils.ts96 symbols
packages/remirror__core-helpers/src/core-helpers.ts70 symbols
packages/remirror__core/src/builtins/commands-extension.ts64 symbols
packages/remirror__extension-tables/src/table-extensions.ts58 symbols
packages/multishift/src/multishift-utils.ts58 symbols
packages/jest-prosemirror/src/jest-prosemirror-editor.ts50 symbols
packages/remirror__core/src/manager/remirror-manager.ts48 symbols
packages/remirror__core-utils/src/prosemirror-utils.ts42 symbols
packages/remirror__core/src/builtins/schema-extension.ts41 symbols
packages/remirror__core/src/builtins/decorations-extension.ts41 symbols

Dependencies from manifests, versioned

@actions/core1.10.0 · 1×
@actions/exec1.1.1 · 1×
@actions/github5.1.1 · 1×
@babel/cli7.27.0 · 1×
@babel/core7.26.10 · 1×
@babel/parser7.27.0 · 1×
@babel/plugin-proposal-class-properties7.18.6 · 1×
@babel/plugin-proposal-decorators7.25.9 · 1×
@babel/plugin-proposal-logical-assignment-operators7.20.7 · 1×
@babel/plugin-proposal-nullish-coalescing-operator7.18.6 · 1×
@babel/plugin-proposal-numeric-separator7.18.6 · 1×
@babel/plugin-proposal-object-rest-spread7.20.7 · 1×

For agents

$ claude mcp add remirror \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact