Unicorn is a reactive component framework that progressively enhances a normal Django view, makes AJAX calls in the background, and dynamically updates the DOM. It seamlessly extends Django past its server-side framework roots without giving up all of its niceties or re-building your website.
Unicorn stands on the shoulders of giants, in particular morphdom which is integral for merging DOM changes.
Inspirational projects in other languages¶
Livewire, a full-stack framework for the PHP web framework, Laravel.
LiveView, a library for the Elixir web framework, Phoenix, that uses websockets.
StimulusReflex, a library for the Ruby web framework, Ruby on Rails, that uses websockets.
Full-stack framework Python packages¶
Reactor, a port of Elixir’s
LiveViewto Django. Especially interesting for more complicated use-cases like chat rooms, keeping multiple browsers in sync, etc. Uses Django channels and websockets to work its magic.
Flask-Meld, a port of
Unicornto Flask. Uses websockets.
Sockpuppet, a port of Ruby on Rail’s
StimulusReflex. Requires Django channels and websockets.
Lona is a web application framework, designed to write responsive web apps in full Python.
IDOM, a port of ReactJS to Python. Fully compatible with all ReactJS components.
Django component packages¶
django-page-components, a minimalistic framework for creating page components and using them in your Django views and templates.
slippers, helps build reusable components in Django without writing a single line of Python.
django_slots allows multiline strings to be captured and passed to template tags.