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. When using tools such as Windsurf use Opus 4.5 as model and paste one of the URLs above to let it "teach itself" the principles of NiceGUI.

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.

🖥️ Command Line Interface

Nice Vibes includes a CLI to explore and run sample applications:

# Install the package
pip install nice-vibes

# Interactive sample selector
nice-vibes

# List available samples
nice-vibes list

# Run a sample
nice-vibes run dashboard

# Copy sample source code to current directory
nice-vibes copy dashboard
nice-vibes copy video_custom_component -o my_video_app

CLI Preview

🙏 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

nice_vibes-0.1.1-py3-none-any.whl (19.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nice_vibes-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 MB
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f832adf4018025d5a5a85735e4f5b9ef6c081e734de38c0c220f26a933b77591
MD5 63bd9d5a8e85e00f9fdda4202cd11180
BLAKE2b-256 730109495501cab309c0b57bfe81cb8193003f6de5aa09855f95db84670e1947

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