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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djinn_ui-0.1.4.tar.gz.
File metadata
- Download URL: djinn_ui-0.1.4.tar.gz
- Upload date:
- Size: 73.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637fd3e298c9b2f24a29ea5059cdaa3be92933bd9b676ffc483667280c1c1786
|
|
| MD5 |
7caaa3ce78116080c57fa4ba9efb73c7
|
|
| BLAKE2b-256 |
96b40bb3daf1d9091fca22768e16053670d60eb896d3e95a97fd7653f222cf77
|
File details
Details for the file djinn_ui-0.1.4-py3-none-any.whl.
File metadata
- Download URL: djinn_ui-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce6935d54842847438dc18f5461097048a102f21bcdec90d282e83f989b4944d
|
|
| MD5 |
9d5ff85bfcea3ceb3abb6c367bd5a349
|
|
| BLAKE2b-256 |
c47e1776f15a909580b465e09c9d5dd225649377f43d84c5f6c1d19227999de4
|