Asok is a cohesive, full-stack Python web framework designed for developer speed, elegant architecture, and security-conscious defaults. Built around a "zero-runtime-dependency" philosophy, it unifies server-side logic and client-side reactivity into a single, high-performance package, offering a streamlined development experience from the first line of code.
- Zero Runtime Dependencies: No Werkzeug, no Jinja2, no SQLAlchemy. Built purely on top of the Python standard library—making it ultra-lightweight (~360KB), secure, and immune to supply chain attacks.
- Islands Architecture: Selective hydration of reactive client-side components combined with Static Site Generation (SSG) and Incremental Static Regeneration (ISR).
- Native Reactive UI: Build stateful, live-updated templates without Vue, React, or heavy NPM build pipelines.
- Cohesive Ecosystem: Complete with a built-in DB/ORM (SQLite, PG, MySQL), migration engine, automatic admin panel, OpenAPI auto-documentation, and vector search.
- Install Asok :
pip install asok
- Create a page controller (
src/pages/page.py) :from asok import Request def render(request: Request): return "Hello, Asok! Zero dependencies, pure speed."
- Run in development :
asok dev
| Repository | Status | Purpose |
|---|---|---|
| 📦 asok | Core framework engine (routing, DB/ORM, WSGI/ASGI server). | |
| 📖 asok-docs | Official handbook, cookbooks, and step-by-step guides. | |
| 🔌 asok-lucide | Server-side SVG Lucide Icons renderer extension. | |
| 💻 asok-vscode | Autocomplete, snippets, and routing helper extension. | |
| 💡 asok-awesome | Showcase list of community plugins, tutorials, and templates. | |
| 🌟 asok-examples | Boilerplates, templates, and starter projects. |
We are building a modern, independent Python web ecosystem.
- Help others: Answer questions in Discussions.
- Contribute: Read our Contribution Guide to start hacking on core features.
- Build Extensions: Read the Extension Documentation and list your creations in asok-awesome!