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.3.tar.gz (72.9 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.3-py3-none-any.whl (175.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djinn_ui-0.1.3.tar.gz
  • Upload date:
  • Size: 72.9 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.3.tar.gz
Algorithm Hash digest
SHA256 2997b5ca6eea40ed4df7f4199982c6bdd598e1426330ee48c341350f627fb0e8
MD5 acef93c488c8f1be0c83c1e6db281fdc
BLAKE2b-256 c99dbab71a3362d8f007c5cca8116c2da72b907818ce656342c084bd9f548a9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djinn_ui-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 175.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 929c6abe806d457c85057646588a59196cd016b98c39ccfcc8144b515a8e9881
MD5 f2601ccacf1f77e3a885cd83b721f1d9
BLAKE2b-256 6019c739d8977e4966ac0b7e001486fc7c685dc2f0b02063b004248333d7e8e0

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