prosemirror
Python implementation of core ProseMirror modules for collaborative editing
Decision gist · record as of 2026-08-14
Yes. Active maintenance, production-stable status, low install friction, no known vulnerabilities, and permissive licensing make it a solid choice for server-side ProseMirror workflows. Install if you need to manipulate ProseMirror documents in Python or build collaborative editing backends; skip if you only need client-side editing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; UTF-16 string semantics differ from Python's native encoding, affecting character position calculations.
- Low friction install with three lightweight dependencies.
- Active maintenance with recent commits and production-stable status across Python 3.10, 3.11, 3.12, 3.13, and 3.14.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.
last release 2026-02-21 (174 days) · last repo commit 2026-07-20 · 62 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 158,604 downloads/mo, #10,717 on PyPI
Alternatives
Verify before relying
from prosemirror.transform import Transform
from prosemirror.schema.basic import schema
doc = schema.node("doc", {}, [schema.node("paragraph", {}, [schema.text("Hello, world!")])])
tr = Transform(doc)
tr.delete(3, 5)
tr.add_mark(1, 4, schema.mark("strong"))- Performance characteristics and scalability limits for large documents or frequent transforms.
- Completeness of prosemirror-schema-list implementation (node specs and wrapRangeInList only; command functions excluded).
- Real-world collaborative editing workflow support and conflict resolution capabilities.
What it is and what it does
Prosemirror-py is a native Python port of ProseMirror's core modules, enabling you to define document schemas, parse and serialize rich-text documents, and apply transformations directly in Python without embedding a JavaScript runtime. It translates the upstream implementation closely, adapting for Python idioms (snake_case naming, type annotations) and replacing browser DOM APIs with lxml for HTML parsing and a custom Element model for serialization.
The package includes schema definitions (basic, list), a transform engine for applying edits, a test builder for validation, and full type annotations for static checking. It preserves JavaScript's UTF-16 string semantics to maintain compatibility with ProseMirror's position calculations. The test suite has been translated and passes, and the project is actively maintained with recent commits and support for current Python versions.
Use it for
- Build server-side rich-text editors or collaborative editing backends that accept and apply ProseMirror document transforms.
- Parse HTML into ProseMirror documents and serialize documents back to HTML for storage or transmission.
- Validate document structure against a schema and apply bulk transformations (delete, mark, wrap) programmatically.
- Generate test fixtures or synthetic documents for testing editor integrations.
- Implement document diffing or version control by converting transforms to and from JSON.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active maintenance, production-stable status, low install friction, no known vulnerabilities, and permissive licensing make it a solid choice for server-side ProseMirror workflows. Install if you need to manipulate ProseMirror documents in Python or build collaborative editing backends; skip if you only need client-side editing.
Install
prosemirror on PyPI
Before you install
Low friction install with three lightweight dependencies. Active maintenance with recent commits and production-stable status across Python 3.10, 3.11, 3.12, 3.13, and 3.14.
Requires Python 3.10 or later; UTF-16 string semantics differ from Python's native encoding, affecting character position calculations.
License in practice
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.
Quickstart
from prosemirror.transform import Transform
from prosemirror.schema.basic import schema
doc = schema.node("doc", {}, [schema.node("paragraph", {}, [schema.text("Hello, world!")])])
tr = Transform(doc)
tr.delete(3, 5)
tr.add_mark(1, 4, schema.mark("strong"))
Verify before relying
- Performance characteristics and scalability limits for large documents or frequent transforms.
- Completeness of prosemirror-schema-list implementation (node specs and wrapRangeInList only; command functions excluded).
- Real-world collaborative editing workflow support and conflict resolution capabilities.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagescssselectlxmltyping-extensions |
| Maintenance | Actively maintained 174 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 158,604 / month, #10,717 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: prosemirror-0.6.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “prosemirror python port”
- prosemirrorProvides Python implementations of core ProseMirror modules (model,…
- portpickerFinds and returns an unused network port on the local host, available…
- ephemeral-port-reserveReserves an ephemeral port reliably and race-free by binding, forcing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pandoc · BabelDOC · draftjs_exporter · docx · spire-doc · htmltools · adf-lib · doclang · pydantic-xml · hologram