What I Built

SkyScout is an AI-powered celestial observatory and outdoor stargazing companion built to get people off their glowing screens and out under the open night sky. By fusing real-time smartphone hardware telemetry—magnetometer compass headings, gyroscope pitch, and GPS coordinates—with autonomous AI intelligence, SkyScout transforms any night walk into an interactive celestial exploration.

Most traditional sky map apps make you stare down at a bright screen to read tiny text in the dark, destroying your night vision and pulling you right back into a digital bubble. SkyScout does the opposite: it is an audio-first experience. When you point your phone toward the sky and tap "Capture & Identify," SkyScout locks onto the celestial object in your crosshairs and narrates its astronomical facts, mythological lore, and viewing tips directly through your headphones. You can tuck your phone into your pocket, look up with your naked eyes, and simply listen as the cosmos comes alive around you.

SkyScout is designed for hikers, campers, amateur astronomers, curious families, and anyone who wants to step outside, breathe fresh night air, and reconnect with the wonders of the universe.

Code

The entire codebase for SkyScout—including the Flutter mobile app and the Mastra agent backend—is open source and available on GitHub:

GitHub logo Koushiklalala / SkyScout

AI Stargazing Observatory and Cosmic Storyteller built with Flutter, Mastra AI Agent, and MongoDB Atlas

🌌 SkyScout — AI Stargazing & Cosmic Storyteller

An intelligent, multi-modal stargazing observatory app built with Flutter, Mastra AI Agent, MongoDB Atlas, and automated voice narration.

🌟 Hackathon Tracks & Prize Eligibility

  • 🚀 Best Use of Render ($200): Backend AI runtime and static audio streaming service deployed on Render.
  • 🤖 Best Use of Mastra ($100): Orchestrates astronomy tools, spherical coordinate calculations, and multi-modal celestial synthesis.
  • 🍃 Best Use of MongoDB Atlas ($100): Stores rich astronomical datasets, mythology lore, and user stargazing session history.
  • 🎙️ Best Use of ElevenLabs ($100): Server-side audio voice synthesis generating spoken celestial narrations.

✨ Features

  • 4K AR Camera Viewfinder: High-resolution sky photography in native hardware resolution with responsive HUD telemetry.
  • Real-Time Sensor Lock: Tracks device GPS latitude/longitude, magnetic compass azimuth (0–360°), and altitude tilt pitch.
  • 360° 8-Octant Celestial Mapping: Accurately maps coordinates to constellations (Taurus, Orion, Ursa Major,…

Repository Link: https://github.com/Koushiklalala/SkyScout

The repository is organized into two primary components:

  • skyscout/: The Flutter mobile client containing real-time sensor streams (compass heading, pitch, GPS), the dark-mode HUD viewfinder overlay, and the responsive audio player.

  • skyscout_backend/: The Node.js & TypeScript service featuring our Mastra agent, astronomical database lookups on MongoDB Atlas, passwordless OTP authentication, and voice audio generation.

How I Built It

SkyScout is an intelligent, open-source personal celestial observatory and audio storyteller built to get people off their screens and into the natural world under the real night sky.

How it gets people off the screen and into the world ("Touch Grass"):
Most astronomy apps demand that you keep your face glued to a bright blue-light screen in the dark, squinting at complex 3D star charts and reading tiny paragraphs of text. SkyScout completely flips this model:

1.The screen is the shortest part of the experience: You step outside at night, point your phone toward the sky, and tap a single button.

2.Audio-First Observation: SkyScout’s AI agent identifies the constellation in your line of sight and immediately begins narrating a rich, spoken story combining ancient mythological folklore with astrophysics.

3.Eyes on the Stars, Not the Glass: You tap once, put the phone down on the grass or in your pocket, and simply listen to the story while gazing directly at the real stars with your own eyes.

Why Does Open Innovation Matter?

When you step outside to "touch grass" and stargaze, you are often far from city lights and reliable high-speed cellular networks. In the middle of an open field or on a mountain trail, depending strictly on closed, cloud-only AI APIs creates a fragile experience—if you lose connectivity or hit API rate limits, the app completely breaks. Open innovation and open-source agent tooling change that paradigm entirely.

Building SkyScout on an open-source agent framework (Mastra) and open architectures gave us complete control over our agent's execution loop. Unlike closed black-box assistant APIs, Mastra let us build a transparent, inspectable tool pipeline where mathematical astronomical calculations, compass octant mapping, and coordinate validations happen deterministically. When external networks drop or cloud quotas run out, open innovation allows our engine to gracefully fall back to local database lookups and built-in procedural synthesis without leaving the user stranded under a dark sky.

Furthermore, open innovation protects user privacy and democratizes technology. SkyScout handles real-time geolocation coordinates, compass headings, and pitch telemetry—deeply personal spatial data that shouldn't be locked inside proprietary corporate telemetry vaults. By leveraging open-source frameworks and community-driven platforms, we created an observatory experience that anyone can inspect, self-host, and run without prohibitive per-token fees, proving that AI is most powerful when it empowers people to put down their screens and explore the physical world around them.

My Agent Session

SkyScout was built and debugged end-to-end through collaborative pair programming with an AI coding agent. The session spanned real-time hardware telemetry integration in Flutter, structuring Mastra agent tools for astronomical coordinate lookups, implementing robust cloud voice fallbacks, and configuring cloud deployment on Render.

If you have uploaded your DevRelay session transcript, embed it using DEV's native Liquid tag:

Building Lingua: Open Source Agent Harness
You

<USER_REQUEST>
You are my coder with past 15 years of the exeperience. Now i have some tasks to do, that i got from the hactoberfest event, from today 2nd oct to 5th oct there is an DEV challenge, the chalenge is ---->Build for a Friend
Build something with open-source AI at its core.
That can mean running an open-weight model, building on an open-source agent harness or framework, running inference locally, or all three. Whatever you pick, the open pieces should be what makes your project work.
In your post, tell us why open innovation matters for what you built. Does it run on a laptop with no internet? Keep someone's data off a server they don't control? Let you fine-tune, swap models, or change how your agent behaves? Cost nothing to run? Tell us where your open-based approach worked better than a closed one.
This Weekend's Theme: Build for a Friend
Ship something that solves a real problem for a friend or someone you love.
Pick one real person and build something for them. It doesn't have to be big. It has to matter to them. A few ideas to get you going:
A meal planner that knows your roommate's allergies
A patient practice partner for a friend learning a new language
A tool that turns your grandpa's voice memos into a family recipe book
Bonus points if you actually hand it over and tell us what they said.
Submission TemplateShow your work. We'd love to see how you built it. Save your agent session with DevRelay and embed it in your post, or link to it. It's optional, but it helps the judges understand your process. <--- The judging criteria is like this -->Judging Criteria
Writing Quality (weighted most heavily)
Relevance to the Prompt and Theme
Creativity
Technical Execution
Use of Partner Technology (optional) <--- The price category is like this --->Prize Categories
Featured categories
$200 for each winner

Render
Best Use of Render
Use Render as your project's AI runtime, to host an agent's front end, or to run Hermes or OpenClaw.

Prizes
$200 USD
+ Exclusive winner badge
Prior Labs
Best Use of TabPFN
Use TabPFN, Prior Labs' tabular foundation model, to forecast, predict, classify, or spot anomalies from historical data like a CSV. Use it inside an agent tool (with or without the MCP server) or on its own.

Prizes
$200 USD
+ Exclusive winner badge
Thinking Machines
Best Use of Tinker
Use Thinking Machines' Tinker to fine-tune a model for a specific task, and show a clear improvement in performance, latency, or cost over a baseline.

Prizes
$200 USD
+ Exclusive winner badge
QualcommArduino
Best Use of Arduino
Build with an Arduino UNO Q: run a model on the board, build a physical agent that senses and acts, or optimize a model for it with Qualcomm AI Hub. Open to anyone building with an UNO Q, whether you got one at an in-person Fest or have your own.

Prizes
$200 USD
+ Exclusive winner badge
DigitalOcean
Best Use of DigitalOcean
Build or deploy your project on DigitalOcean: host your app or agent, run an open-weight model on a GPU Droplet (1-Click Models make this quick), or build an agent on the Gradient AI Platform.

Prizes
$200 USD
+ Exclusive winner badge
Gemma
Best Use of Gemma
Use Gemma, Google's open-weight model, in building your project: run it locally, fine-tune it, or serve it through Google Cloud or another provider.

Prizes
$200 USD
+ Exclusive winner badge
Partner categories
$100 for each winner

Backboard
Best Use of Backboard
Build with R-CLI, Backboard's open-source terminal coding agent, compare open-weight models through a single Backboard API key, or give an open-source project's assistant memory and RAG.

Prizes
$100 USD
+ Exclusive winner badge
ElevenLabs
Best Use of ElevenLabs
Give an open-source agent a voice, transcribe audio for a local model, or generate narration for your demo.

Prizes
$100 USD
+ Exclusive winner badge
Entire
Best Use of Entire
Share the agent sessions behind your project in the write-up, or search past agent work to explain why code exists.

Prizes
$100 USD
+ Exclusive winner badge
GitHub
Best Use of GitHub Copilot
Build with Copilot's coding agent, the Copilot CLI, or the new Copilot app, automate your project with GitHub Actions, or review contributors' PRs with Copilot.

Prizes
$100 USD
+ Exclusive winner badge
Mastra
Best Use of Mastra
Orchestrate an agent over open models, add memory and tools to a chat agent, or build a workflow that triages GitHub issues.

Prizes
$100 USD
+ Exclusive winner badge
MongoDB
Best Use of MongoDB Atlas
Use Atlas as your data layer: Atlas Vector Search for retrieval, long-term memory for an agent, or the database behind an app built on an open-weight model.

Prizes
$100 USD
+ Exclusive winner badge
Sentry
Best Use of Sentry Agent Tracing
Show your agent's work: how it's set up, how it performs (latency, tokens, cost), what you found, and how you debugged it. Include traces or screenshots in your write-up.

Prizes
$100 USD
+ Exclusive winner badge
SerpApi
Best Use of SerpApi
Give an agent live web search, ground a RAG app in fresh results, or track news for an open-source project.

Prizes
$100 USD
+ Exclusive winner badge
Temporal
Best Use of Temporal
Make your agent durable. Wrap it in a Temporal workflow so it survives failures, retries flaky tool calls, and picks up where it left off.

Prizes
$100 USD
+ Exclusive winner badge
Tiger Data
Best Use of Tiger Data
Store embeddings with pgvector, run hybrid keyword and vector search for an agent, or let an agent manage a database through Tiger MCP.

Prizes
$100 USD <---. Now is there any doubts related to the event, if yes ask me
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:22:37+05:30.
</ADDITIONAL_METADATA>
<USER_SETTINGS_CHANGE>
The user changed setting Model Selection from None to Gemini 3.1 Pro (High). No need to comment on this change if the user doesn't ask about it. If reporting what model you are, please use a human readable name instead of the exact string.
</USER_SETTINGS_CHANGE>

Show more
Agent

This is a fantastic challenge! "Build for a Friend" focusing on open-source AI is a great way to create something meaningful while exploring powerful technologies.

I understand the challenge details, the judging criteria (heavily weighted towards writing quality and relevance), and the various prize categories.

To kick things off and start designing our project, I do have a few questions for you:

  1. Who is the friend (or loved one) we are building this for?
  2. What specific problem or pain point are we trying to solve for them? (e.g., Do they need help organizing recipes, learning a language, managing tasks, or something completely different?)
  3. Are there any specific Prize Categories you want to target? We could aim for Gemma (using Google's open-weight model), Render or DigitalOcean for hosting, MongoDB for database, or ElevenLabs if we want to add a voice component.
  4. What is your preferred tech stack for the non-AI parts? (e.g., Python, Node.js, React, etc.)

Once we nail down who we are helping and what their problem is, we can brainstorm the perfect open-source AI solution for them!

Show more
You

<USER_REQUEST>
1) Just a friend 2)I dont know what specific problem i want to to solve, but i think learning a language is good, its my opinion , what do you think?? 3)Target price category is heavily dependent on what problem we are going to solve right, so i dont know what to target and 4)tech stack you prefer according to the problem
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:26:51+05:30.
</ADDITIONAL_METADATA>

Agent

Learning a language is a fantastic use case for AI, and it fits the "Build for a Friend" theme perfectly! Many people struggle with language learning because they lack a patient practice partner or personalized context.

Since the goal is to build something with open-source AI at its core, and we want to target some of the Prize Categories, here are three distinct project ideas I've designed for us.

Let's pick the one that you think your friend would love the most!

▸ ask_question {}
{ }
Tool execution completed.
Agent

Created At: 2026-10-02T13:27:07+05:30
Completed At: 2026-10-02T13:27:08+05:30
Encountered error in step execution: JSON hook "jsonhook__googlecloudtools.datacloud_telemetry_PreToolUse_0_0" failed: command failed: exit status 1, stderr: node:internal/modules/cjs/loader:1520
throw err;
^

Error: Cannot find module '[REDACTED].gemini\config\plugins\googlecloudtools.datacloud_telemetry\"[REDACTED].gemini\config\plugins\googlecloudtools.datacloud_telemetry\telemetry_hook_bundle.js"'
at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)
at Module._load (node:internal/modules/cjs/loader:1294:5)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint as runMain
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v24.19.0

Show more
Agent

It looks like there was a slight glitch with the interactive question UI. No worries, I can just lay out the options for you here!

Learning a language is a fantastic use case for AI, and it fits the "Build for a Friend" theme perfectly. Many people struggle with language learning because they lack a patient practice partner or personalized context.

Since the goal is to build something with open-source AI at its core, and we want to target some of the Prize Categories, here are three distinct project ideas.

Which of these do you think your friend would appreciate the most?

1. "The Patient Voice Partner" 🗣️

  • The Problem: Your friend is learning a language but is too shy to practice speaking with native speakers.
  • The Solution: A voice-chat AI companion that speaks slowly, gently corrects pronunciation, and never gets impatient.
  • Prize Targets: ElevenLabs (for voice generation), Gemma (open-weight model for conversation), and Render (for hosting).
  • Tech Stack: Python (FastAPI) backend, React frontend.

2. "The Offline Traveler" ✈️

  • The Problem: Your friend travels to places without reliable internet and needs basic translation and cultural context.
  • The Solution: A completely offline translation and learning app that runs entirely on their laptop.
  • Prize Targets: Gemma (running locally), Sentry (for performance tracing on local hardware).
  • Tech Stack: Python (Streamlit) communicating with a local Ollama instance running the model.

3. "The Personalized Storyteller" 📖

  • The Problem: Your friend memorizes vocabulary but forgets it because they lack context or find standard examples boring.
  • The Solution: An app where they input a list of new words and their hobbies (e.g., "sci-fi", "baking"), and the AI generates a customized short story using those words to help them remember.
  • Prize Targets: Mastra (to orchestrate the story-generation agent), MongoDB (to store vocabulary and stories), DigitalOcean (for hosting).
  • Tech Stack: Next.js (full-stack TypeScript).

What do you think? If you like one of these, or want to mix and match features from them, just let me know and we can start building!

Show more
You

<USER_REQUEST>
3rd one is ok, but learning a language is there any other unique problems to sold\ve?
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:31:53+05:30.
</ADDITIONAL_METADATA>

Agent

You have a great instinct for hackathons—finding a truly unique, specific problem often makes for a much stronger submission than a generic app!

While the "Personalized Storyteller" (Idea 3) is solid, here are a few more unique, niche problems in language learning that are notoriously difficult for humans but perfect for an AI agent to solve:

1. The "Idiom & Slang Decoder" (The Literal Translation Trap)

  • The Problem: Textbooks teach formal language, but native speakers use slang, idioms, and pop culture references. If your friend tries to translate "It's raining cats and dogs" or "That's cap," standard translators fail completely or give confusing literal translations.
  • The Solution: An app where your friend types in a confusing phrase they heard. The AI agent acts as a cultural guide: it explains the literal translation, the actual meaning, the cultural origin of the phrase, and provides a few natural examples of how to use it in conversation.

2. The "Tip of the Tongue" Reverse Dictionary

  • The Problem: When learning a language, you often know exactly what you want to say or the feeling you want to convey, but you just don't know the specific word for it in the new language.
  • The Solution: A "reverse dictionary." Your friend describes the concept in their native language (e.g., "I need a word in German for that feeling of coziness when you are inside and it's raining outside"), and the AI finds the exact target word (Gemütlichkeit), explaining the nuances and how to pronounce it.

3. The "Tone & Politeness" Adjuster (The Faux Pas Avoider)

  • The Problem: In many languages (like Japanese, Korean, French, or Spanish), getting the level of formality right is crucial. Saying something casually to a boss or formally to a close friend can be super awkward.
  • The Solution: Your friend writes what they want to say. The AI agent rewrites it into three distinct versions: Casual (for friends), Polite (for coworkers/strangers), and Formal (for elders/bosses). It breaks down why the grammar changes for each tone, helping them understand social context, not just vocabulary.

4. The "Native Content Prep" Guide

  • The Problem: Your friend wants to watch foreign movies or YouTube videos to practice, but native speakers talk too fast and the vocabulary is overwhelming.
  • The Solution: An agent where they paste a YouTube link. The AI grabs the transcript, identifies the 10 most important vocabulary words or phrases for your friend's skill level, and creates a customized "pre-watch study guide." They review the guide first, making the video much easier to understand!

Any of these would work perfectly with a Mastra (Agent Orchestration) + MongoDB + DigitalOcean tech stack, hitting multiple prize categories while solving a very specific, real-world problem.

Do any of these highly specific problems sound exactly like something your friend struggles with?

Show more
You

<USER_REQUEST>
other than that learning a language idea
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:36:59+05:30.
</ADDITIONAL_METADATA>

Agent

Got it! Let's scrap the language learning idea entirely. The best "Build for a Friend" projects solve a very specific, annoying problem in someone's daily life.

Here are four completely different ideas targeting various everyday problems and specific Hacktoberfest prize categories:

1. The "Is It Safe?" Allergen Analyzer 🥜

  • The Friend: Someone with a strict diet, severe allergies (like Celiac or nut allergies), or a new vegan.
  • The Problem: Reading long ingredient lists on the back of packages is exhausting, and often ingredients have weird chemical names (e.g., is "maltodextrin" derived from wheat?).
  • The Solution: They paste a photo or text of an ingredient list. An AI agent cross-references the complex ingredients against their specific allergy profile and gives a clear "Safe" or "Warning" explanation.
  • Target Prizes: Mastra (agent orchestration), MongoDB Atlas (storing their allergy profiles), Render (hosting).

2. The Grandparent Story Catcher 🎙️

  • The Friend: A friend who wants to preserve their family history but struggles to organize their grandparent's rambling voice memos.
  • The Problem: Voice memos are great, but no one ever goes back to listen to hours of unorganized audio.
  • The Solution: An app that transcribes the grandparent's audio recordings, and uses an open-weight model to gently organize the stories into readable "memoir chapters" while perfectly preserving the grandparent's unique tone of voice and humor.
  • Target Prizes: ElevenLabs (for transcription), Gemma (open-source model for text organization), DigitalOcean (hosting).

3. The "Who Owes What?" Trip Accountant 💸

  • The Friend: That one friend who always plans the group trips or dinners and gets stuck doing the math to figure out who owes them money.
  • The Problem: Splitting complex receipts where "Alice had two drinks, Bob shared the appetizer, and Charlie arrived late" is a nightmare.
  • The Solution: They upload the messy receipt and type a quick brain-dump ("Alice and Bob split the nachos, Charlie had the burger"). The agent parses the receipt, does the math, and generates the exact Venmo requests they need to send.
  • Target Prizes: Mastra (for giving the agent a "calculator" tool so it doesn't mess up the math), Tiger Data (storing the ongoing trip ledger).

4. The Hobby Data Forecaster 🏃‍♂️🌱

  • The Friend: A friend who tracks data for a hobby (like marathon training stats, a CSV of their garden's soil moisture/plant growth, or their sleep tracking data).
  • The Problem: They collect all this data in spreadsheets but don't know how to find actual insights or predict future outcomes from it.
  • The Solution: They upload their CSV. The app uses a specialized AI model to analyze the spreadsheet and forecast future trends (e.g., "Based on your data, if you sleep 8 hours tonight, your run pace tomorrow will improve by 15 seconds/mile").
  • Target Prizes: Prior Labs (using their TabPFN tabular data model—this is a very specific $200 prize category!), Mastra (using the model as a tool).

Do any of these spark an idea for a specific person in your life?

Show more
You

<USER_REQUEST>
only 3rd one is good
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:39:58+05:30.
</ADDITIONAL_METADATA>

Agent

Awesome choice! The "Who Owes What?" Trip Accountant is a brilliant hackathon project because it solves a universal problem that everyone hates doing, and it perfectly demonstrates why AI agents (which can use tools) are better than standard chatbots.

Standard LLMs are famously terrible at math. If you just ask ChatGPT to split a complex bill, it will confidently hallucinate the wrong numbers. But by using an agent framework (like Mastra), we can give the AI a "Calculator" tool. It will parse the text, set up the equations, and then use the calculator tool to get the exact right answer.

Here is my proposed plan and tech stack to win those prizes:

The Tech Stack

  • Agent Framework: Mastra (Hits the $100 Best Use of Mastra prize category for "adding tools to a chat agent").
  • AI Model: We will configure Mastra to use an open-weight model (like Meta's Llama 3 or Google's Gemma) to hit the core "Open Source AI" requirement of the hackathon.
  • Web Framework: Next.js (TypeScript). Mastra is a TypeScript framework, so building a simple Next.js web app is the fastest way to get a UI up and running.
  • Hosting (Optional later): Render or DigitalOcean (Hitting another $200 prize category).

The Build Plan

  1. Initialize the Project: Set up a clean Next.js + Tailwind CSS project.
  2. Integrate Mastra: Install the Mastra agent framework.
  3. Build the Agent Tools: Write a custom CalculatorTool in TypeScript that the agent can call to perform exact addition, multiplication, and division.
  4. Create the Prompt/Instructions: Give the agent its system instructions ("You are a strict accountant. You parse receipts, assign costs, add tax/tip proportionally, and use your calculator tool for ALL math.").
  5. Build the UI: A simple web page where the user can paste the receipt text on the left, type their rules on the right ("Alice had the burger, Bob had the fries"), and hit "Calculate".

Does this tech stack and plan sound good to you? If so, I'll go ahead and start writing the code for Step 1 and Step 2!

Show more
You

<USER_REQUEST>
it is better if we created an app for that right? rather than a web page, app is better right?
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:42:34+05:30.
</ADDITIONAL_METADATA>

Agent

You are absolutely right. For a tool you use while sitting at a restaurant table with friends, a mobile app makes way more sense than a website! It also opens the door to using the phone's camera later on to snap pictures of the receipts.

Since we are building a mobile app and using an AI agent framework, here is the best way to architect it:

The "Mobile App" Architecture

AI agent frameworks (like Mastra) and LLM API keys need to run securely on a server, not directly inside the mobile app code. So, we will split this into two parts:

1. The Mobile App (Frontend)
* Tech: React Native (via Expo). This is the fastest way to build a real app that works on both iOS and Android using JavaScript/TypeScript.
* What it does: It gives the user a nice mobile interface to type in the receipt items, specify who shared what, and view the final Venmo breakdown.

2. The AI Agent Server (Backend)
* Tech: Node.js (Express) + Mastra.
* What it does: It receives the data from the mobile app, runs the Mastra agent (which uses its calculator tool to do the exact math), and sends the final split back to the phone.
* Prize Target: We can host this backend server on Render, which perfectly hits the "Best Use of Render ($200): Use Render to host an agent's front end or runtime" prize category!

How we'll build it right now:

I can set up both the backend Agent Server and the Expo Mobile App right here in our workspace.

If this architecture sounds like a winner to you, I will start by initializing the Node.js Mastra backend! Shall we begin?

Show more
You

<USER_REQUEST>
ok lock this for now and i have some more info about some free credits from the parteners, --->Free partner credits
Several partners are giving participants credits and promo codes, including Tinker, Render, Backboard, and ElevenLabs. Claim yours at hacktoberfest.com/my/promos. <-----------$5 in Backboard credit
Sign up for Backboard, then enter your code on the Billing page. No credit card needed. Build with Backboard in any of the ongoing Hacktoberfest DEV Challenges to be eligible for weekly prizes. Works on new and existing accounts. One per person.
Challenge on DEV: Best Use of Backboard
Get your code
$50 in Render credit
Open the link to add the credit to your Render account. Deploy your project on Render in any of the ongoing Hacktoberfest DEV Challenges to be eligible for weekly prizes. One claim per person. Claim by November 15, 2026.
Challenge on DEV: Best Use of Render
Get your code
$10 Credit for Tinker from Thinking Machines
$10 credit for Tinker from Thinking Machines. Utilize your promo code as part of your project in any of the ongoing Hacktoberfest DEV Challenges to be eligible for weekly prizes. Use Tinker to fine-tune a model for a specific task, and demonstrate a clear improvement in performance, latency or cost compared to a baseline. Each hacker may only receive 1 promo code for Tinker.
Needs a connected GitHub account on MyMLH. Connect it
Challenge on DEV: Best Use of Tinker
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:45:50+05:30.
</ADDITIONAL_METADATA>

Show more
Agent
▸ run_command {}
$ {}
Tool execution completed.
Agent

Created At: 2026-10-02T13:46:04+05:30
Completed At: 2026-10-02T13:46:04+05:30
Encountered error in step execution: JSON hook "jsonhook__googlecloudtools.datacloud_telemetry_PreToolUse_0_0" failed: command failed: exit status 1, stderr: node:internal/modules/cjs/loader:1520
throw err;
^

Error: Cannot find module '[REDACTED].gemini\config\plugins\googlecloudtools.datacloud_telemetry\"[REDACTED].gemini\config\plugins\googlecloudtools.datacloud_telemetry\telemetry_hook_bundle.js"'
at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)
at Module._load (node:internal/modules/cjs/loader:1294:5)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint as runMain
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v24.19.0

Show more
Agent

That $50 Render credit is an absolute jackpot for us! It is exactly what we need. We can use that credit to host our Node.js backend (which will run our Mastra agent) completely for free during the hackathon, and it perfectly qualifies us for the "Best Use of Render" ($200) prize category!

Since we have our plan locked in, let's start building the backend.

(Note: It looks like my automated terminal tools are experiencing a slight permissions glitch right now, so I will act as your co-pilot and give you the exact commands and code to run on your end!)

Step 1: Initialize the Backend

Open your terminal, navigate to your project folder (d:\Projects\Hactoberfest\Launch Event), and run these commands to set up the backend folder and install the necessary libraries:

mkdir backend cd backend npm init -y npm install express cors dotenv @mastra/core 

Step 2: Create the Agent and Server

Inside the backend folder, create two files.

1. Create agent.js:
This is where we define our Mastra agent and give it the "Calculator" tool.
```javascript
// backend/agent.js
import { Agent } from '@mastra/core';

// We will define our Calculator Tool here later!
const calculatorTool = {
name: 'calculator',
description: 'Perform exact math calculations (add, subtract, multiply, divide)',
execute: async ({ operation, a, b }) => {
// We will implement the exact math logic here in the next step
return { result: 0 };
}
};

// Initialize the Agent
export const receiptAgent = new Agent({
name: 'TripAccountant',
instructions: You are a strict and precise accountant for group trips.
Users will give you a messy receipt and tell you who shared what.
Your job is to parse the items, assign costs, and use your calculator tool to split the bill fairly including tax and tip.
,
model: {
provider: 'GROQ', // We can use Groq to run Llama 3 (Open Source!) really fast
name: 'llama3-8b-8192',
},
tools: [calculatorTool]
});
```

2. Create server.js:
This is our Express server that the mobile app will talk to (and what we will deploy to Render!).
```javascript
// backend/server.js
import express from 'express';
import cors from 'cors';
import { receiptAgent } from './agent.js';

const app = express();
app.use(cors());
app.use(express.json());

app.post('/api/split-bill', async (req, res) => {
try {
const { receiptText, rules } = req.body;

 const prompt = `Here is the receipt:\n${receiptText}\n\nHere are the rules:\n${rules}\n\nPlease calculate who owes what.`; // Ask our Mastra agent to process it! const response = await receiptAgent.generate(prompt); res.json({ success: true, result: response.text }); } catch (error) { console.error(error); res.status(500).json({ success: false, error: 'Failed to process receipt' }); } 

});

const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(🚀 Trip Accountant Agent running on port ${PORT});
});
```

To make sure we can use import statements, open your backend/package.json file and add "type": "module", right under the version number.

Let me know once you have those files pasted in, and we can test the backend before moving to the mobile app!

Show more
You

<USER_REQUEST>
first solve ur problem, analyse what happened and give me the diagnostic command for that
</USER_REQUEST>
<ADDITIONAL_METADATA>
The current local time is: 2026-10-02T13:47:26+05:30.
</ADDITIONAL_METADATA>

Source:https://dev.to/koushik_bhagavath/skyscout-point-your-phone-at-the-stars-and-touch-grass-with-open-source-ai-aab

Related posts