Skip to main content

Declarative HTMX + Elementy framework for Django

Project description

🚀 HyperX 3.1.0 — The Paradigm Shift From “Coding for Django” → Declaring Django

HyperX 3.1.0 marks a paradigm shift — from writing Django code about behavior to declaring behavior directly inside templates. yp 🧠 Declarative HyperX Elements

HyperX 2.1 introduced {% hx %} blocks and hx:* declarative syntax. Version 3.1.0 expands this vision into a full server-side DSL that compiles HTML intent into dynamic, CSRF-aware HTMX actions.

{% load hyperx %} {% hx %} <hx:button get="lti:admin:course_table_view" target="#intel-container" label="Load Courses" /> <hx:panel get="dashboard:refresh" target="#main-panel" swap="innerHTML" /> {% endhx %}

✅ Server-authored, browser-executed, declaratively controlled.

🌟 What’s New in 3.1.0

Declarative by Default Mode — all hx:* tags now compile automatically through middleware, no manual imports.

Drawer & Drop Elements — hx:drawer and hx:drop bring built-in side panels + drag-and-drop upload zones.

Bootstrap Integration — {% load hyperx %} now includes Django-Bootstrap5 + static tags automatically.

Runtime Autodiscovery — Context processor injects HyperX JS helpers (loader.js, dragdrop.js, drawer.js) in DEBUG mode.

Self-installing CLI — python manage.py install_hyperx auto-patches settings.py with middleware + security config.

Improved Security Core — rate-limiting, pattern detection, and TabX validation now declarative in HYPERX_SECURITY.

Refined Compiler AST — faster parse/render for nested hyperx-elements and inline JSON payloads.

🛠️ Installation Quick Start pip install django-htmx hyperx-htmx python manage.py install_hyperx python manage.py check_hyperx

Manual Setup INSTALLED_APPS = [ "django_htmx", "hyperx", ]

MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django_htmx.middleware.HtmxMiddleware", "hyperx.middleware.HyperXMiddleware", "hyperx.middleware.HyperXSecurityMiddleware", ]

💡 Design Philosophy

The server is truth. HyperX isn’t a JavaScript framework — it’s Django speaking declaratively. The template becomes the language; middleware becomes the logic; HTML becomes the API.

HyperX collapses the distance between backend logic and frontend behavior — making templates self-describing again.

🧩 Unix Always Wins

Every part of HyperX follows the Unix philosophy:

Do one thing well.

Middleware → truth, Templatetags → meaning, HTMX → motion.

HTML becomes the single, inspectable contract between human and machine.

🔒 Security by Composition

Automatic CSRF injection

Verified TabX headers

Intelligent rate limiting + pattern detection

Explicit declarative intents for all requests

🧭 Creator’s Note

“When words fall silent, systems still speak.”

HyperX was born from the belief that the server should speak truth in its own language — HTML. Built in the Unix spirit, for Django developers who value clarity, simplicity, and honesty in code.

Jeff Panasuik Faroncoder — SignaVision Solutions Inc. Toronto 🇨🇦

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

hyperx_htmx-3.2.4.1.tar.gz (61.1 kB view details)

Uploaded Source

Built Distribution

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

hyperx_htmx-3.2.4.1-py3-none-any.whl (75.7 kB view details)

Uploaded Python 3

File details

Details for the file hyperx_htmx-3.2.4.1.tar.gz.

File metadata

  • Download URL: hyperx_htmx-3.2.4.1.tar.gz
  • Upload date:
  • Size: 61.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for hyperx_htmx-3.2.4.1.tar.gz
Algorithm Hash digest
SHA256 3d39eb3f7cc7060f3743747ddd41686be046cc8b38c5134bd41d4a4fb6b2eb73
MD5 5cd1c710bf20337361c26a5a918f4943
BLAKE2b-256 3aed055be74970b0d366f7535bd274fbcc03d7eca4d94e233778eb9e251a0ca7

See more details on using hashes here.

File details

Details for the file hyperx_htmx-3.2.4.1-py3-none-any.whl.

File metadata

  • Download URL: hyperx_htmx-3.2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 75.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for hyperx_htmx-3.2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7bc8dfbba1e50b1b1b130d1af896ae8649e2a8aa7263f6e1a4a2e29e13151005
MD5 f4609ab006c728539a5d16e68810585e
BLAKE2b-256 b4479f6ed2c726f47b88b352d732f17fcd87b7b582ff183930bf08565956295e

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