How wootwoot1234/superhost-tools works
Project type and purpose
• This is a full-stack Node.js application (Express) with a static‐file frontend.
• Purpose: an open-source Airbnb auto-messaging and dynamic pricing tool for hosts.
File structure
Top-level artifacts
• app.js, routes.js – entry point and Express routing
• package.json, bower.json, .bowerrc, Makefile – build, dependency management
• README.md, LICENSE – project documentation and license
Backend folders
• email/ – templates (EJS), mailing logic, Mailgun config
• models/ – Mongoose models for users, accounts, listings, rules, messages, pricing
• routes/ – route handlers, index.js routes mapped in routes.js
Frontend (public/)
• public/pages – public user pages (login, register)
• public/admin – admin UI, CSS/JS, SB-Admin 2 theme, HTML modals and pages
• public/js/index.js – client-side logic for public UI
Views
• views/*.html – server-rendered views (login landing, admin wrapper)
Other
• test/ – basic unit tests for user logic
• app.json – Heroku config
README for additional insights
• Tech stack: Node, Express, MongoDB, Bower, Mailgun, UptimeRobot for cron
• Runtime: deployed on Heroku, ping two endpoints (/checkRules, /updatePricing) every 15 min
• Core functionality:
• Automated guest messaging (pre-check-in, post-check-out, upon booking)
• Automatic review posting
• Pricing engine layered on Airbnb Smart Pricing