Projects
View on GitHub
aldenhallak/fishes
About
Users have their fish drawings AI-validated in real time and watch their creations swim in a shared tank.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +4
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalDrawAFish.com - Interactive Fish Drawing
๐ DrawAFish.com ๐
Users have their fish drawings AI-validated in real time and watch their creations swim in a shared tank.
๐ฎ Features
๐จ Interactive Drawing
- Real-time AI validation - Draw fish and get instant feedback from our neural network.
- Smart canvas - Intuitive drawing tools with pressure-sensitive input
- Live classification - Background color changes as the AI recognizes your fish
- Drawing hints - Visual cues help you create better fish drawings
๐ Community Fish Tank
- Shared aquarium - Watch your fish swim with creations from artists worldwide
- Multiple view modes - See most recent, popular, or random fish
- Smooth animations - Fish move naturally through the virtual water
- Interactive experience - Click fish to learn about their creators
๐ณ๏ธ Voting & Rankings
- Community voting - Rate fish drawings from other artists
- Smart ranking system - Algorithm balances recency and popularity
- Artist profiles - Track your stats and see your fish collection
- Leaderboards - Discover the most loved fish in the community
๐๏ธ Personal Collections
- Custom fish tanks - Create themed collections of your favorite fish
- Share collections - Let friends explore your curated tanks
- Privacy controls - Make tanks public or keep them private
- Organize by theme - Group fish by color, style, or any criteria
๐ง How the AI Works
The app uses machine learning for real-time fish recognition:
- ONNX Runtime Web - Runs neural network inference entirely in your browser
- PyTorch-trained model - Originally developed and trained using PyTorch
- Instant feedback - Classification happens with every brush stroke
- Quality control - Only validated fish can join the community tank
๐ Getting Started
- Visit DrawAFish.com
- Start drawing on the canvas (fish should face right!)
- Watch the AI give feedback through background color changes
- Submit your fish when you're happy with it
- See it swim in the community tank with other creations
- Vote and explore other artists' fish in the rankings
๐ฑ Cross-Platform Compatible
- Desktop browsers - Full experience with mouse/trackpad drawing
- Tablet friendly - Touch-optimized for iPad and Android tablets
- Mobile responsive - Works on phones with simplified interface
- Progressive Web App - Can be installed like a native app
๐ Community Features
For Artists
- Profile system - Track your fish creations and statistics
- Personal galleries - Showcase your best work
- Achievement tracking - See your voting scores and community engagement
- Social sharing - Share your fish and tanks on social media
For Viewers
- Discovery tools - Find new artists and trending fish
- Voting system - Help surface the best community content
- Collections - Save favorites to personal fish tanks
- Commenting - Engage with the community (coming soon)
๐ง Technical Details
Project Structure
HTML Pages (Root Directory)
index.htmlโ Main drawing page and UItank.htmlโ Fish tank display with swimming animationsrank.htmlโ Fish ranking and voting systemlogin.htmlโ Authentication page for moderationmoderation.htmlโ Moderation interface for managing submissions
Source Files
src/js/โ JavaScript filesapp.jsโ Main drawing, AI, and UI logictank.jsโ Fish tank animation and displayrank.jsโ Ranking system logiclogin.jsโ Authentication handlingmoderation.jsโ Moderation toolsfish-utils.jsโ Shared utilities and API callsfirebase-init.jsโ Firebase/Firestore initialization
src/css/โ Stylesheetsstyle.cssโ Main application stylesmoderation.cssโ Moderation-specific styles
Assets
assets/โ Static assets (images, models)public/โ Public assets (favicon, etc.)
Connected Repositories
fish-trainer
- Contains the PyTorch code for training the fish doodle classifier.
- Exports the trained model to ONNX format, which is used by DrawAFish.com for in-browser inference.
- Includes data augmentation, preprocessing, and model evaluation scripts.
fish-be
- The backend for DrawAFish.com, deployed as a serverless function (I'm using cloud run :~)).
- Handles fish image uploads, processes and stores submissions, and returns the canonical fish image for the tank.
- May also provide endpoints for moderation, stats, or gallery features.
Setup & Deployment
- Clone this repository.
- Place the ONNX model (
fish_doodle_classifier.onnx) in theassets/models/directory. - Configure
src/js/firebase-init.jsif using Firestore for real-time features. - Deploy the static site (e.g., Vercel, Netlify, Firebase Hosting).
- Ensure the backend endpoint in
src/js/fish-utils.jspoints to the deployedfish-beinstance.
Credits
- AI model and training: fish-trainer
- Backend: fish-be
- Frontend & UI: This repository
This repository was about ~80% AI generated. I used copilot + zencoder. Both tools worked great, but could not be trusted to make decisions on their own :)
Explore related projects
Loadingโฆ