-
-
wifi location choosing page
-
wifi details list
-
authenticating to see your current location is in the radius
-
showing password if authenticated
-
using api to fetch location of other area if custom location is chose
-
wifi details form
-
wifi data at stop's recommended by gemini between two co-ordinates
-
oauth authentication
Tap2Wifi: Revolutionizing Public Wi-Fi Access
Inspiration
Imagine arriving in a new location only to be immediately frustrated by the struggle to connect to the internet. Whether you're paying a vendor via UPI or trying to settle in at a café or university, unreliable or absent Wi-Fi turns a simple task into an ordeal. Our irritation with these recurring problems inspired us to create Tap2Wifi—a solution that eliminates connectivity hurdles and ensures that you're always just a tap away from a reliable network.
What It Does
Tap2Wifi is more than just a public archive of Wi-Fi details. It’s a smart, feature-rich tool designed to simplify internet access wherever you go:
- Localized Authentication: The app verifies your proximity (within 1 km) to a hotspot before revealing its password, ensuring that only authorized users can connect.
- Dynamic Search: Easily search for available Wi-Fi networks in any location within a default radius of 10 km. Each entry provides detailed information about the hotspot.
- Offline Access: For those who enable the “Always Connect” feature, Tap2Wifi downloads an encrypted local database of Wi-Fi networks within a 10 km radius. This means you’ll have access to vital network information—even without an active internet connection.
- AI-Powered Recommendations: By entering two locations, our app leverages the Gemini API to suggest optimal stops along your route. These recommended stops, determined by AI, are selected based on proximity to Wi-Fi networks, ensuring that even while on the move, you’re never out of touch. (Note: The backend for this feature is complete; we are still refining the frontend integration.)
How We Built It
We combined modern mobile development with robust backend systems to deliver a seamless user experience:
- Mobile Framework: The user interface was developed in Flutter using Dart, ensuring a cross-platform, responsive, and intuitive experience.
- Backend Infrastructure: Our backend, built in Golang and powered by MongoDB, efficiently handles geospatial queries through Haversine calculations and MongoDB operators like
$geoWithinand$centerSphere. The integration with the Gemini API further enhances our AI-driven features. - Secure Authentication: Implementing OAuth PKCE along with custom middleware has fortified user security, evolving from simple token-based authorization to a more robust and secure authentication system.
Challenges We Faced
Building Tap2Wifi was a learning curve marked by technical and coordination hurdles:
Frontend Challenges
- Permissions & API Integration: Navigating platform-specific permissions and handling user denials required careful design to ensure smooth API pop-ups along with graceful error handling.
- Dynamic Search and Error States: We needed to effectively manage scenarios such as disabled location services, no Wi-Fi found, or API failures. The transition to a production API also introduced breaking changes that necessitated prompt fixes.
- Merge Complexity: Consolidating changes across branches—especially when dealing with non-source-controlled files (e.g., Chrome user state data)—demanded meticulous team coordination, rigorous peer reviews, and automated checks to keep build artifacts out of our commits.
Backend Challenges
- Modular Architecture: Transitioning from a global state architecture to a modular, dependency-injected handler system involved significant refactoring along with rigorous input validation to protect database integrity.
- Authenticator Middleware Overhaul: Moving to OAuth PKCE from test tokens required custom middleware to manage CSRF protection, secure code challenges, and precise redirect URIs.
- Cloud Deployment: Managing environment secrets securely (using tools like godotenv and os.Getenv) and ensuring a singleton MongoDB client to avoid race conditions was vital given diverse cloud-specific constraints such as port bindings and logging requirements.
Accomplishments We’re Proud Of
- Successfully integrating real-time location access and implementing OAuth-based user authentication on the frontend.
- Deploying a robust backend that reliably serves API routes with integrated middleware to authenticate and load nearby Wi-Fi details.
- Seamlessly authenticating users to showcase available networks and deliver encrypted, offline-accessible hotspot data.
- Utilizing Gemini AI to recommend strategic stops along your journey, paving the way for future enhancements in connectivity and offline caching.
What We Learned
Our journey with Tap2Wifi has been incredibly enriching:
- User-Focused Innovation: We recognized that solving everyday connectivity issues requires a deep understanding of user environments and habits. Building the app reinforced the importance of designing solutions that anticipate and resolve real-world inconveniences.
- Technical Growth: From mastering Flutter’s mobile capabilities and managing platform-specific challenges to refactoring complex backend systems, we greatly enhanced our skills in secure, scalable application development.
- Embracing Agile Iteration: Each hurdle, whether relating to API transitions or cloud deployments, underscored the value of agile methodologies. Continuous testing, frequent integration, and iterative refinements have become central to our development process.
- Integrating Cutting-Edge AI: Experimenting with Gemini API for AI-driven recommendations has opened new avenues for predictive connectivity solutions, encouraging us to explore further innovations in data-driven user experiences.
What’s Next for Tap2Wifi
The journey is far from over. Here’s where Tap2Wifi is headed:
- Enhanced Frontend Integration: We’re focused on completing the frontend integration for AI-powered route recommendations to offer a seamless, user-friendly experience for discovering optimal Wi-Fi stops.
- Wider Coverage & Real-Time Updates: Expanding our database to include more hotspots through community contributions and real-time updates will ensure richer and more comprehensive coverage.
- Advanced Metrics and Insights: Future updates will include network performance analytics, historical data, and user reviews, giving you a clearer picture of connection quality and reliability.
- Predictive and Personalized Connectivity: Leveraging further AI innovations, we plan to introduce predictive models that learn from user behaviors and network patterns to suggest the best connection options before challenges arise.
- Enhanced Security and Scalability: As we grow, improving our security protocols and scaling our infrastructure to support an expanding user base remain top priorities.
- Ecosystem Partnerships: We envision forging partnerships with civic and commercial networks to create an integrated ecosystem where reliable public Wi-Fi is a given rather than an exception.
Tap2Wifi is committed to transforming your connectivity experience. As public Wi-Fi continues to be an essential utility, we see our ongoing innovations paving the way for a more connected and responsive world.
Are you curious about how emerging technologies like mesh networks or 5G might further enhance public connectivity? Let's explore those innovations and envision their impact on the future of Wi-Fi access!

Log in or sign up for Devpost to join the conversation.