Skip to main content

A shadcn-style component installer for Django.

Project description

Djinn UI

Djinn is a shadcn-style component system for Django.

It lets developers visually build, install, and own UI components directly inside their Django projects using a simple CLI.


✨ Philosophy

Djinn is NOT a UI framework.

Djinn is a source-code delivery system.

Once a component is installed, it belongs to your project — fully editable, fully owned.


⚡ Features

  • CLI-based component installation (init, add, list, view, docs)
  • Registry-driven architecture with custom namespace routing (e.g. @internal/)
  • Model Context Protocol (MCP) Server for AI Assistant integrations (Claude Code, Cursor)
  • Copy-paste ownership model (like shadcn/ui)
  • Django-native templates with {% cn %} tailwind-merge utility tag
  • TailwindCSS-based styling with dynamic CSS variables
  • Alpine.js / HTMX support
  • Versioned components with a diff/update system

📦 Installation (CLI)

pip install djinn-ui

🚀 Quick Start

Initialize Djinn in your Django project:

python -m djinn init

Add a component from the default registry:

python -m djinn add button

Add a component from a custom namespace (configured in djinn.json):

python -m djinn add @internal/dashboard-card

Other useful commands:

  • python -m djinn view card: Preview a component's source code before installing.
  • python -m djinn docs button: Open the documentation for a component in your browser.
  • python -m djinn info: Display your current project configuration and registries.
  • python -m djinn mcp: Start the Model Context Protocol (MCP) server to allow AI assistants (like Cursor and Claude Code) to install components for you automatically.

🧩 Example Component Usage

{% load djinn_tags %}
<div class="{% cn 'base-classes' dynamic_class %}">
  {% include "components/button.html" %}
</div>

📁 Registry System

Djinn components are stored in a remote registry:

  • Each component is versioned
  • Includes templates, logic, and metadata
  • CLI fetches and installs directly into your project

🏗 Architecture

Registry → CLI → Django Project

No runtime dependency. No locked library. You own the code.


🔮 Roadmap

  • Visual Component Builder (Djinn Canvas)
  • AI component generator
  • Component marketplace
  • Figma import
  • Team registries

🤝 Contribution

We welcome contributions to:

  • Registry components
  • CLI improvements
  • Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djinn_ui-0.1.6.tar.gz (73.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djinn_ui-0.1.6-py3-none-any.whl (175.8 kB view details)

Uploaded Python 3

File details

Details for the file djinn_ui-0.1.6.tar.gz.

File metadata

  • Download URL: djinn_ui-0.1.6.tar.gz
  • Upload date:
  • Size: 73.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for djinn_ui-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cf3171efab54e7e07f5edbb7723e5e79482e4c71af2155fd930ec7a51feda015
MD5 4406c4ddc95cdfb501314d9f238934f4
BLAKE2b-256 951f9786671dcabbc283dbb3d6b71cbe0cdc3a6a9a672b64a01b608aba551cd1

See more details on using hashes here.

File details

Details for the file djinn_ui-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: djinn_ui-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 175.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for djinn_ui-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1d50b91a34ab6fe92fd1f083af369f63ecc85d74d5e9c05812b08254920392e9
MD5 30887f42a3bd75aa93280c9af1c0fefe
BLAKE2b-256 4552770330998e65582f1e12f092aa29ce8bc84a1910e450107e05c94c86fd90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page