Skip to main content

Developing beautiful NiceGUI applications with AI

Project description

Nice Vibes Logo

Nice Vibes - Teach AI agents to build beautiful NiceGUI applications

Python 3.12+ NiceGUI License: MIT

Sample Applications

A comprehensive toolkit of prompts, patterns, and examples that help AI coding assistants generate correct, idiomatic NiceGUI code.

✨ Features

  • 📚 Complete Documentation - Events, mechanics, styling, and class references
  • 🔐 Authentication Patterns - Signed cookie persistence, role-based permissions, login flows
  • 🧭 SPA Navigation - ui.sub_pages, header/drawer visibility, back button handling
  • 🧪 Working Samples - Full multi-dashboard app, stock analysis, custom components
  • 🤖 AI-Optimized - Single master prompt (~22K tokens) for context injection
  • ✅ Validated - All class references and URLs verified
  • 🧩 Modular - Pick what you need or use the full prompt

🚀 Quick Start

Use Pre-Built Prompts (Recommended)

Just download and use the pre-built master prompt directly:

Variant Tokens Use Case Download
Compact ~14K Quick tasks, simple UI nice_vibes_compact.md
Optimum ~23K Most use cases nice_vibes.md
Extended ~34K Custom components, deployment nice_vibes_extended.md

Copy the content into your AI assistant's context or system prompt.

Build From Source (Optional)

Only needed if you want to customize or extend the documentation:

git clone https://github.com/Alyxion/nice-vibes.git
cd nice-vibes
poetry install
poetry run python scripts/build_master_prompt.py

📋 Requirements

For building from source:

  • Python 3.12+
  • Poetry

📖 Documentation

Folder Description
docs/ Main documentation
docs/events/ Event handling patterns
docs/mechanics/ Core patterns (SPA, authentication, styling)
docs/classes/ UI element reference by category

📂 Other Folders

Folder Description
samples/ Working example applications
output/ Generated master prompts
scripts/ Build and validation tools
tests/ Example NiceGUI tests

🧪 Testing

poetry run pytest -v

🤖 Prompt Variants

Each variant is available in online (GitHub URLs) and offline (local paths) versions:

Content Compact Optimum Extended
Main guide
Core mechanics
Events ref
Class reference ref
Custom components ref ref
Configuration & deployment ref ref
Sample references

ref = Not included but referenced with summary (AI knows where to look)

Configure file order and summaries in docs/prompt_config.yaml.

✅ Validation

# Validate class references
poetry run python scripts/validate_classes.py

# Also check URLs
poetry run python scripts/validate_classes.py --check-urls

🙏 Credits

Created by Michael Ikemann

GitHub LinkedIn

Built for use with NiceGUI - a Python UI framework by Zauberzeug.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Free to use, modify, and distribute.

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

nice_vibes-0.1.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

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

nice_vibes-0.1.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file nice_vibes-0.1.0.tar.gz.

File metadata

  • Download URL: nice_vibes-0.1.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for nice_vibes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5120a66c2111814788ccca3f0285c20e84436b6e513b06ea46cf86a924e6ee06
MD5 8aa45bd93fafa3440f59ebf2374cd4f7
BLAKE2b-256 880053a5497568efe3273398ae05b88178b32559245f47b617e455d6f62595f9

See more details on using hashes here.

File details

Details for the file nice_vibes-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nice_vibes-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for nice_vibes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e30382ffc8e413f6a21ecb56a90065d35b86357f6e0522ca289484f56bdc8846
MD5 1bd97058de21531391b17870fbe10d16
BLAKE2b-256 702cdc92c19fa1b430862941cba1037bfb1e96f80703323df8ed40d30d01f1fe

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