Duck Framework Documentation — Python Web Framework | No JavaScript Required¶
Duck Framework is an open-source Python web framework and web server that replaces JavaScript frontends entirely. Build real-time, reactive web applications with pure Python — no React, no Vue, no JavaScript framework needed. A modern, full-stack alternative to Django and Flask with a built-in WebSocket-driven UI engine.
> Duck is not a small or mini web framework — it is a full-fledged Python framework that lets you build and deploy complete web applications without writing a single line of JavaScript.
> CHECK OUT THIS [REPOSITORY](https://github.com/duckframework/url-shortener) FOR A REAL WEB APPLICATION BUILT WITH DUCK FRAMEWORK
Github¶
Homepage: https://github.com/duckframework/duck
Stay tuned for more updates as we continue to enhance Duck’s capabilities.
Contents¶
Table of Contents:
- 🚀 Getting Started — Duck Python Web Framework (No JavaScript Required)
- 🌟 Running the Server
- 🌀 Project structure
- 🗃 Cached Views – High-Performance Python Web Apps
- 🛠 Settings Configuration
- 🖥️ Lively Component System — Reactive Python UI Without JavaScript
- 🚀 What Is the Lively Component System?
- 🤔 What Problem Does It Solve?
- ⚙️ How It Works (Simple Explanation)
- 💡 Why It’s Powerful
- 🧠 Beginner Mental Model
- 📄 Page Component Example
- 🖱️ Component Events
- ⚡ Fast Navigation
- ⏱️ Pre-rendering Components
- Counter App
- 📝 Notes
- Components in Templates
- 🏗️ Custom Components
- 🔌 Component Extensions
- 📦 Predefined Components
- Force Updates on Lively Components
- Handling Forms
- Component Lifecycle
- Other points to Note
- 📟 Simple Counter App in Python
- 🌀 Component Caching Utilities
- 📑 Templates - Python-Based HTML Rendering | Duck
- 🏷️ Template Tags & Filters
- 📘 Blueprints
- ⛴️ Micro Applications
- ⏳ Task Automation – Duck Python Framework
- 🚧 HTTP/2 and HTTPS
- 🖥️ Web Server Gateway (WSGI)
- ⚡ Asynchronous Server Gateway (ASGI)
- 🌐 WebSockets in Python – Real-Time Apps with Duck
- 🔋Background Thread & Asyncio Loop Managers
- 🔀 Request & Response
- 🔐 Sessions in Duck
- 🛡️ Duck Middlewares
- 📝 Duck Logging System
- 🗄️️ Database
- 🐤 Django Integration with Duck
- 📄 Sitemap
- 🚀 Deployment Guide
- 📊 Duck System Monitor
- 🌐 Duck Service Management
- 🔐 Free SSL Certificate
- 🔌 Socket I/O (xsocket)
- 💡Duck Shortcuts
- ⌛ Duck Utilities
API Documentation: