No description
  • JavaScript 52.5%
  • CSS 21.4%
  • HTML 17.5%
  • Python 8.5%
  • Shell 0.1%
Find a file
Hackall 3b7de8f33e
Some checks failed
Build and Deploy / Build with Vite (push) Has been cancelled
Build and Deploy / Report Build Status (push) Has been cancelled
Build and Deploy / Deploy to GitHub Pages (push) Has been cancelled
Merge pull request #185 from Unity-Lab-AI/develop
Made system prompt usable on unity model
2025-11-22 03:10:20 -08:00
.github/workflows Chore: Remove Playwright tests and dependencies 2025-11-22 10:42:51 +00:00
about Style: Standardize theme, layout, and navigation across all depth-1 pages 2025-11-22 10:23:08 +00:00
ai Feat: Implement proper system prompt handling for different model types 2025-11-22 10:54:09 +00:00
apps Style: Standardize theme, layout, and navigation across all depth-1 pages 2025-11-22 10:23:08 +00:00
contact Style: Standardize theme, layout, and navigation across all depth-1 pages 2025-11-22 10:23:08 +00:00
Docs Docs: Update TODO files, CLAUDE.md, and TEST_RESULTS.md 2025-11-22 10:09:40 +00:00
fonts/trajan-pro Add Trajan Pro webfont files and @font-face declarations 2025-11-17 23:01:13 +00:00
js Refactor: Break monolithic JS files into modular ES6 components 2025-11-22 04:18:54 +00:00
PolliLibJS Docs: Update TODO files, CLAUDE.md, and TEST_RESULTS.md 2025-11-22 10:09:40 +00:00
PolliLibPy Docs: Update TODO files, CLAUDE.md, and TEST_RESULTS.md 2025-11-22 10:09:40 +00:00
projects Style: Standardize theme, layout, and navigation across all depth-1 pages 2025-11-22 10:23:08 +00:00
services Style: Standardize theme, layout, and navigation across all depth-1 pages 2025-11-22 10:23:08 +00:00
vendor Fix: Resolve navbar styling and console errors on apps page 2025-11-22 09:21:53 +00:00
.gitignore Chore: Remove Playwright tests and dependencies 2025-11-22 10:42:51 +00:00
BingSiteAuth.xml Add bing site auth 2025-11-19 15:02:29 -08:00
cache-bust.js feat: Implement comprehensive cache-busting for GitHub Pages 2025-11-22 05:29:14 +00:00
CLAUDE.md Chore: Remove Playwright tests and dependencies 2025-11-22 10:42:51 +00:00
copy-assets.js Fix: Resolve apps page white patch in build/minified version 2025-11-22 10:37:12 +00:00
generate-sitemap.js feat: Add automatic sitemap generation to build process 2025-11-22 05:20:54 +00:00
index.html feat: Integrate legacy apps with modern Unity AI Lab theme and navigation 2025-11-22 06:50:12 +00:00
package-lock.json fix: Use vite-plugin-static-copy for apps directory 2025-11-22 07:01:23 +00:00
package.json Chore: Remove Playwright tests and dependencies 2025-11-22 10:42:51 +00:00
README.md Chore: Remove Playwright tests and dependencies 2025-11-22 10:42:51 +00:00
REFACTOR_BUGS_ANALYSIS.md Debug: Add console logging to slash command system 2025-11-22 04:45:15 +00:00
robots.txt Feat: Implement comprehensive SEO optimization across all pages 2025-11-19 22:29:52 +00:00
script.js fix: Initialize measureCtx before resizeCanvas() call 2025-11-22 09:12:58 +00:00
script.min.js chore: minify assets for deployment [skip ci] 2025-11-20 02:48:52 +00:00
sitemap.xml feat: Add automatic sitemap generation to build process 2025-11-22 05:20:54 +00:00
styles.css fix: Add mobile safe zone CSS for all browsers 2025-11-22 06:20:04 +00:00
styles.min.css chore: minify assets for deployment [skip ci] 2025-11-22 01:41:51 +00:00
UnityPrompt.txt Fix: Prevent Unity from repeating image URLs in responses 2025-11-21 00:29:56 +00:00
update-version.sh Implement automatic cache-busting system for GitHub Pages 2025-11-17 16:08:25 +00:00
visitor-tracking.js Fix: Add collision detection and registration tracking 2025-11-22 00:15:54 +00:00
vite.config.js Fix: Resolve apps page white patch in build/minified version 2025-11-22 10:37:12 +00:00

Unity AI Lab - Test Site

Test site for the latest version of the main Unity AI Lab website

This repository contains the development and testing environment for the Unity AI Lab website, along with complete implementations of Pollinations.AI client libraries in both JavaScript and Python.

Overview

Unity AI Lab explores the cutting edge of AI technology, providing tools and libraries for interacting with various AI models through the Pollinations.AI platform. This test site serves as a sandbox for developing and validating new features before deployment to the main Unity AI Lab website.

Website

UnityAILab - The Dark Side of AI

The website features:

  • Gothic-themed dark UI design
  • Interactive AI demonstrations
  • Real-time AI-powered chat and image generation
  • Showcase of PolliLibJS and PolliLibPy capabilities
  • Comprehensive documentation and examples

Live Site Structure:

  • index.html - Main landing page
  • about/ - About page with project information
  • ai/ - AI chat landing page
  • ai/demo/ - Interactive AI demo (~90% complete, ~8,000 lines of code)
  • apps/ - Mini applications gallery (~70% complete)
  • styles.css - Custom styling with dark gothic theme
  • script.js - Interactive functionality and AI integrations

Repository Components

📚 Docs

Complete API documentation for Pollinations.AI:

  • API endpoint specifications
  • Authentication methods (referrer-based and bearer token)
  • Rate limits and access tiers
  • Request/response formats
  • Available models and capabilities

🟨 PolliLibJS

JavaScript/Node.js library for Pollinations.AI:

  • Text-to-Image generation
  • Text-to-Text (chat, content generation)
  • Text-to-Speech (TTS)
  • Speech-to-Text (STT)
  • Image-to-Text (vision/analysis)
  • Image-to-Image transformations
  • Function calling capabilities
  • Streaming mode for real-time responses
  • Exponential backoff retry logic

🐍 PolliLibPy

Python library for Pollinations.AI (mirrors PolliLibJS functionality):

  • All features from PolliLibJS
  • Python-idiomatic API design
  • Class-based architecture
  • Dictionary-based configuration
  • Compatible with Python 3.7+

Quick Start

Clone the Repository

git clone https://github.com/Unity-Lab-AI/sitetest0.git
cd sitetest0

Using the JavaScript Library

cd PolliLibJS
npm install
node pollylib.js  # Test connection

See PolliLibJS/README.md for detailed usage.

Using the Python Library

cd PolliLibPy
pip install requests
python pollylib.py  # Test connection

See PolliLibPy/README.md for detailed usage.

Running the Website Locally

# Serve the website using any static file server
python -m http.server 8000
# or
npx serve .

# Then open http://localhost:8000 in your browser

Project Structure

sitetest0/
├── Docs/                           # Documentation hub
│   ├── TODO/                       # Project planning and TODO lists
│   │   ├── TODO.md                 # Main project roadmap ⭐ START HERE
│   │   ├── website-TODO.md         # Website tasks (~90% complete)
│   │   ├── demo-page-TODO.md       # Demo page tasks (~90% complete)
│   │   ├── main-app-TODO.md        # Main app (external, reference only)
│   │   ├── infrastructure-TODO.md  # Infrastructure (not applicable)
│   │   └── TODO_EXTRAS.md          # Additional tasks
│   ├── Pollinations_API_Documentation.md  # Complete API reference
│   ├── API_COVERAGE.md             # Implementation status
│   ├── TEST_GUIDE.md               # Testing procedures
│   ├── TEST_RESULTS.md             # Test results
│   ├── PERFORMANCE_AUDIT.md        # Performance metrics
│   └── SEO_IMPLEMENTATION.md       # SEO details
│
├── PolliLibJS/                     # JavaScript library (~3,700 lines)
│   ├── README.md                   # Library documentation
│   ├── TODO.md                     # ✅ 100% complete
│   ├── pollylib.js                 # Core library
│   └── ... (14 modules total)
│
├── PolliLibPy/                     # Python library (~5,700 lines)
│   ├── README.md                   # Library documentation
│   ├── TODO.md                     # ✅ 100% complete
│   ├── pollylib.py                 # Core library
│   └── ... (13 modules total)
│
├── ai/                             # AI Chat Section
│   ├── index.html                  # AI landing page (~95% complete)
│   └── demo/                       # Interactive demo (~90% complete)
│       ├── index.html              # Demo page
│       ├── demo.css                # Demo styles (59KB)
│       ├── demo.js                 # Demo functionality (149KB)
│       ├── age-verification.js     # Age verification system
│       ├── unity-persona.js        # Unity persona integration
│       └── ... (8,000+ lines total)
│
├── apps/                           # Mini apps gallery (~70% complete)
│   └── ... (various utilities and mini apps)
│
├── about/                          # About page
├── services/                       # Services page
├── projects/                       # Projects page
├── contact/                        # Contact page
├── index.html                      # Main landing page
├── styles.css                      # Main stylesheet
├── script.js                       # Main JavaScript
├── CLAUDE.md                       # ⭐ AI assistant guide (v1.4.0)
└── README.md                       # This file

Features

Libraries (PolliLibJS & PolliLibPy)

Both libraries are feature-complete and provide:

Model retrieval and querying Text-to-Image generation with multiple models Text-to-Text chat and generation Text-to-Speech synthesis Speech-to-Text transcription Image-to-Text (vision) analysis Image-to-Image transformations Function calling / tool use Streaming mode for real-time responses Seed-based deterministic generation Exponential backoff retry logic Safety filtering controls Reasoning mode controls

Website Features

  • Interactive AI Demo: Full-featured demo at /ai/demo (~90% complete)
    • Text-to-text chat with multiple AI models
    • Text-to-image generation (6 image models)
    • Text-to-speech with 6 voices
    • Unity persona with custom system prompts
    • Age verification system
    • ~8,000 lines of implementation code
  • Apps Gallery: Mini applications and utilities at /apps (~70% complete)
  • Dark Gothic UI: Immersive dark-themed interface
  • Responsive Design: Works on desktop and mobile devices
  • Cache Busting: Automated version control for assets

Authentication

Both libraries use referrer-based authentication with the default referrer s-test-sk37AGI (Seed tier - free).

Access tiers:

  • Anonymous: 1 request / 15s (no signup)
  • Seed: 1 request / 5s (free registration) - Default
  • Flower: 1 request / 3s (paid)
  • Nectar: No limits (enterprise)

Development

This is a test site for validating:

  • New Pollinations.AI features
  • Library implementations across languages
  • UI/UX improvements
  • Documentation updates
  • Performance optimizations

Changes tested here are promoted to the main Unity AI Lab website after validation.

Documentation

For Developers & AI Assistants

  • AI Assistant Guide: CLAUDE.md - Complete development guide (v1.4.0)
  • Project Roadmap: Docs/TODO/TODO.md - Master TODO and project status

API & Libraries

Testing & Performance

External Resources

Contributing

This is a test environment for the Unity AI Lab project. Contributions are welcome:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly (this is a test site!)
  5. Submit a pull request

License

This project follows the licensing of the parent Unity AI Lab organization.

Notes

  • Test Environment: This site is for development and testing purposes
  • Stability: Features may be experimental or incomplete
  • Rate Limits: Default Seed tier rate limits apply (1 req/5s)
  • Watermarks: Free tier images may have watermarks (starting March 31, 2025)

Made with ❤️ for Unity AI Lab using Pollinations.AI

Exploring the dark side of AI. Pushing boundaries, breaking limitations.