$npx skillfedfor your agent

draftjs_exporter

Library to convert rich text from Draft.js raw ContentState to HTML

Worth itPyPI Python ModulesReleased Aug 2026999.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — draftjs_exporter-7.1.0-py3-none-any.whl
v7.1.0 · released 2026-08-13 · Python >=3.10

Yes. The package is actively maintained, has no security vulnerabilities, zero runtime dependencies, and a permissive MIT license. Install it if you need to convert Draft.js ContentState to HTML in a Python environment—particularly in Wagtail or Django projects. The low friction and stable API make it a straightforward choice for this specific use case.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; content_state must be a valid Draft.js ContentState object (typically a dict with 'blocks' and 'entityMap' keys).
  • Low friction: pure Python wheel with no runtime dependencies.
  • Actively maintained with a release 1 day old; supports Python 3.10 through 3.15 and passes mypy type checking.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations.

last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 84 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 999,142 downloads/mo, #4,541 on PyPI

Verify before relying

pip install draftjs_exporter

from draftjs_exporter.html import HTML

config = {'entity_options': {}, 'composite_decorators': []}
exporter = HTML(config)
html_output = exporter.render(content_state)
  • Whether the package handles all Draft.js entity types and block types out of the box or requires custom configuration for non-standard content.
  • Performance characteristics when processing large or deeply nested Draft.js documents.
  • Whether custom component creation (mentioned in description) requires additional dependencies or setup beyond the base installation.
Same gist for agents: .md · .json

What it is and what it does

draftjs_exporter is a Python library that translates Draft.js ContentState—the internal representation used by the Draft.js React editor—into HTML. Draft.js stores rich text in its own format rather than as HTML, so this exporter bridges that gap for Python backends, particularly in Wagtail/Django environments where you need to render Draft.js content server-side.

The library provides sensible defaults for common HTML elements (paragraphs, lists, emphasis, links) but is designed to be extended: you can define custom block and inline style maps, add decorators to transform line breaks, attach arbitrary attributes to elements, and create React-like custom components. It handles overlapping inline styles and nested lists automatically, converts entity data types (integers, booleans, style objects) to valid HTML attributes, and includes static type annotations throughout.

Use it for

  • Render Draft.js editor content to HTML on a Wagtail or Django backend without re-implementing the editor in Python.
  • Export rich text from a Draft.js-based frontend editor to a database or file system as semantic HTML.
  • Generate server-side HTML previews of Draft.js content before it is published or stored.
  • Customize HTML output by mapping Draft.js blocks and styles to domain-specific HTML elements or CSS classes.
  • Build a content pipeline where Draft.js ContentState is processed, validated, and converted to HTML in a Python service.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no security vulnerabilities, zero runtime dependencies, and a permissive MIT license. Install it if you need to convert Draft.js ContentState to HTML in a Python environment—particularly in Wagtail or Django projects. The low friction and stable API make it a straightforward choice for this specific use case.

Install

draftjs-exporter on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Actively maintained with a release 1 day old; supports Python 3.10 through 3.15 and passes mypy type checking.

Requires Python 3.10 or later; content_state must be a valid Draft.js ContentState object (typically a dict with 'blocks' and 'entityMap' keys).

License in practice

MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations.

Quickstart

pip install draftjs_exporter

from draftjs_exporter.html import HTML

config = {'entity_options': {}, 'composite_decorators': []}
exporter = HTML(config)
html_output = exporter.render(content_state)

Verify before relying

  • Whether the package handles all Draft.js entity types and block types out of the box or requires custom configuration for non-standard content.
  • Performance characteristics when processing large or deeply nested Draft.js documents.
  • Whether custom component creation (mentioned in description) requires additional dependencies or setup beyond the base installation.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads999,142 / month, #4,541 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Internet :: WWW/HTTP :: Site ManagementTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Editors :: Word ProcessorsTyping :: Typed

Evidence: draftjs_exporter-7.1.0-py3-none-any.whl

Tags

Capabilities
draft.js to html convertercontentstate html exportrich text editor exportdraft.js python libraryconvert draft.js outputhtml generation from draft.js
Topics
draft-jswagtail-integrationhtml-generation

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 › “draft.js to html converter”

  • draftjs_exporterConverts Draft.js ContentState (a rich text editor format) to HTML,…
  • html-to-markdownConverts real-world HTML—including malformed tags, broken entities,…
  • xlsx2htmlConverts Excel spreadsheets (.xlsx files) to HTML tables while…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also mammoth · streamlit-quill · rich-rst · tinyhtml · quill-delta · django-quill-editor · prosemirror · gh-md-to-html · python-editor · markdown2