Skip to main content

🚀 FastPWA

FastPWA is a minimal FastAPI extension that makes your app installable as a Progressive Web App (PWA). It handles manifest generation, service worker registration, and automatic asset injection—giving you a native-like install prompt with almost no setup.

🌟 What It Does

  • 🧾 Generates a compliant webmanifest from your app metadata
  • ⚙️ Registers a basic service worker for installability
  • 🖼️ Discovers and injects favicon and static assets (index.css, index.js, etc.)
  • 🧩 Mounts static folders and serves your HTML entrypoint

📦 Installation

pip install fastpwa

🧪 Quickstart

from fastpwa import PWA

app = PWA(title="My App", summary="Installable FastAPI app", prefix="app")
app.static_mount("static")  # Mounts static assets and discovers favicon

app.register_pwa(html="static/index.html")  # Registers manifest, SW, and index route

📁 Static Folder Layout

FastPWA auto-discovers and injects these assets if present:

static/
├── index.html
├── index.css
├── index.js
├── global.css
├── global.js
└── favicon.png

🧬 Manifest Customization

You can override manifest fields via register_pwa():

app.register_pwa(
    html="static/index.html",
    app_name="MyApp",
    app_description="A simple installable app",
    color="#3367D6",
    background_color="#FFFFFF"
)

📜 License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastpwa-0.5.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

fastpwa-0.5.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fastpwa-0.5.2.tar.gz.

File metadata

  • Download URL: fastpwa-0.5.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1020-azure

File hashes

Hashes for fastpwa-0.5.2.tar.gz
Algorithm Hash digest
SHA256 950507058f681bbb9c9732efb286ee667c8cbc2f901a05a54a09068e34de4657
MD5 adad544f1067653b8e7526fe17fa9dfa
BLAKE2b-256 e4b73ffed3e41e24b6370ef9ac50fbe408afe7485cf19cf3335903d737ea5b35

See more details on using hashes here.

File details

Details for the file fastpwa-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: fastpwa-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1020-azure

File hashes

Hashes for fastpwa-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26b22c3855bb87c0a0b31cdb14d4439cba08196e1ede00efb6b8b84c70cc0b6d
MD5 16f196a14de2577876ddaf183da1d290
BLAKE2b-256 f1ce4d2f70d221d938be5516150c064685948f3d9615baba578ef67345623380

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page