-
-
Notifications
You must be signed in to change notification settings - Fork 417
HackToBerfest submission: Pollinations AI model/uptime viewer #4767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
…page Add models page, apply psychedelic design theme site-wide, and center all content
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
…s, dark mode, comparison tool Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
…feature Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Complete AI Models Explorer with Pre-generated Summaries & Tier-Based Filtering
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
…js-files Refactor model-viewer into modular HTML/CSS/JS files, add real-time uptime monitoring, and improve mobile UX
👷 Deploy request for pollinations pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for pollinations-react-hooks-docs canceled.
|
|
@claude can you review concisely? @vaibhavcoding69 the nitpick from checking the files it that the README is overly wordy. I'm starting to enjoy more concise styles because AI agents write too much if not prompted otherwise |
|
@claude i think you can just clone the original branch of @vaibhavcoding69 to a fresh folder |
|
Claude finished @voodoohop's task —— View job Code Review CompleteREADME.md (hacktoberfest-2025/model-viewer/)
Architecture
script.js
getModels.js
Integration
Overall: Good contribution but needs refactoring for maintainability. Focus on DRY principle and conciseness per repo guidelines. |
|
@vaibhavcoding69 is uptime only measured while the tab is open? maybe it needs something in the backend? |
|
@voodoohop the uptime is measured as a whole, meaning it will not reset when the user leaves the page, kind of like uptime monitor and other services Also do I have to refactor the code? I'll make the readme consise once I reach home |
Updated README to enhance clarity and conciseness, removing redundant sections and improving feature descriptions.
|
@voodoohop just made the readme conscise |
|
@vaibhavcoding69 - i think it needs a backend to be useful. ideally using cloudflare workers but can also use another host if you prefer. i dont think we should depend on the frontend having a page open to monitor uptime. also try not to hard-code models but fetch the list from the models endpoint |
|
@voodoohop yeah i think that's better than caching for the user, can I put some of the content outside the hacktoberfest folder in order to properly maintain it? |
|
@vaibhavcoding69 whatever makes sense. although i think you can also create backend code in the hacktoberfest folder |
* Initial plan * Add backend-based uptime monitoring system Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com> * Add documentation for backend-based uptime monitoring Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com> * Fix prototype pollution vulnerabilities in uptime monitor Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com> * Refactor uptime monitoring to use independent backend service - Created standalone uptime-backend.js that runs independently (no frontend required) - Backend fetches models dynamically from Pollinations APIs (not hard-coded) - Frontend simplified to only display uptime data from backend - Backend checks all models every 5 minutes automatically - All changes kept in model-viewer folder - Removed excessive documentation - Can be deployed to Cloudflare Workers, Railway, Render, etc. Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com> * Add Cloudflare Workers implementation and update screenshots - Created worker.js: Cloudflare Workers-compatible backend with scheduled cron - Uses Cloudflare KV for data persistence (replaces file storage) - Runs every 5 minutes via cron trigger (no frontend dependency) - Added wrangler.toml configuration for deployment - Updated README with Cloudflare Workers deployment instructions - Updated package.json with wrangler scripts - Updated screenshots showing uptime monitoring UI (light & dark mode) Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vaibhavcoding69 <189115938+vaibhavcoding69@users.noreply.github.com>
|
@voodoohop i have done the changes needed, please review them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe update the current fallback model list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and update it on this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should add the current model fallback list
Alright I'll do this in the morning 🙏🏻 |
|
@vaibhavcoding69 will check |
|
@voodoohop any updates? |
|
Review from Claude. Looking at the backend code, I think it's pretty good but has some issues: ✅ What's Good1. Clean Structure
2. Simple Data Model 3. Dynamic Model Discovery
|
This PR is related to the submission of an uptime monitor for the available models. Everything is made in pure HTML/CSS/JS. Details for the PR is added in the
README.mdin it.