{"slug": "building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didn", "title": "Building an AI Vedic Astrology App in 25 Days — What Actually Worked (and What Didn't)", "summary": "The article details the creation of KundliAI, a free Hindi-language Vedic astrology app built in 25 days using Next.js, Groq AI, and AstrologyAPI. Key successes included features like a free Kundli generator and daily horoscopes, while challenges involved refining AI prompts for Hindi content and fixing serverless function bundle sizes that caused loading issues. The developer also implemented caching to reduce API costs and used bilingual SEO strategies to achieve Google indexing and organic traffic.", "body_md": "25 days ago I had an idea. Today KundliAI is live, indexed by Google, and getting organic traffic.\n\nHere's the honest story — no fluff.\n\n## The Idea\n\nIndia has 1.4 billion people. A massive percentage consult astrology regularly — for marriage, career decisions, naming babies, starting businesses.\n\nBut the existing platforms are either:\n\n- Outdated UI from 2005\n- English-heavy (most users are Hindi speakers)\n- Expensive (₹500-2000 per consultation)\n- Generic (same horoscope for everyone born in the same month)\n\nI thought — what if I built something that gives genuinely personalized Vedic astrology in Hindi, free, in 30 seconds?\n\nThat became KundliAI.\n\n## The Stack\n\n```\nFrontend: Next.js 14 (App Router)\nStyling: Tailwind CSS\nAI: Groq API (Meta's Llama — fast and cheap)\nAstrology calculations: AstrologyAPI.com (Swiss Ephemeris)\nPayments: Razorpay\nHosting: Vercel\nDomain: kundliai.in\n```\n\nWhy Groq over OpenAI? Speed. Groq is 10x faster for inference. For a tool where users expect results in 30 seconds — latency matters a lot.\n\nWhy AstrologyAPI over doing calculations myself? Swiss Ephemeris is complex. AstrologyAPI wraps it cleanly and gives me planetary positions, Kundli Matching (36 Guna Milan), Mahadasha calculations — all via REST API. Cost is minimal for the accuracy you get.\n\n## What I Built — Features\n\n**Free Kundli Generator**\n\nUser enters name, date of birth, time, place. We call AstrologyAPI for planetary positions, then Groq generates a complete personalized reading in Hindi. Takes about 25-30 seconds end to end.\n\n**Daily Rashifal (Horoscope)**\n\nNot generic — based on actual planetary transits for the day combined with user's Moon sign. Different from every other rashifal site that gives the same text to all Aries users.\n\n**Kundli Matching**\n\n36 Guna Milan — the traditional Indian marriage compatibility system. Enter two birth charts, get compatibility score with explanation in Hindi.\n\n**Numerology**\n\nName + date of birth → Life Path Number, Destiny Number, Soul Urge Number. Hindi interpretation.\n\n**Love Compatibility by Name**\n\nChaldean numerology — enter two names, get compatibility score. Simple but surprisingly popular.\n\n**AI Pandit Chat**\n\n24/7 chat with an AI that knows Vedic astrology. Ask anything — career, marriage, health, planetary positions.\n\n**Panchang**\n\nDaily Panchang for 12 Indian cities — Tithi, Nakshatra, Yoga, Rahu Kaal, Abhijit Muhurat.\n\n**Paid Reports (₹99)**\n\nDetailed 10-page PDF report. One-time payment via Razorpay. First payment came on Day 20.\n\n## The Technical Challenges\n\n### Challenge 1 — Prompt Engineering for Hindi\n\nGetting Groq/Llama to generate genuinely good Hindi astrology content was harder than expected.\n\nThe model kept mixing Hindi and English awkwardly. It would use Sanskrit terms without explaining them. The tone was sometimes too formal, sometimes too casual.\n\nAfter about 40 iterations of the system prompt, I landed on something that works. Key insights:\n\n- Give the model a persona (\"You are an experienced Vedic astrologer who explains things in simple Hindi\")\n- Specify the audience (\"The user is a regular Indian, not an astrology expert\")\n- Give explicit formatting instructions\n- Include examples of good vs bad responses in the prompt\n\n### Challenge 2 — Vercel Serverless File Size Limits\n\nMy blogs.ts file grew to 500KB+ with 32 blog posts. Vercel's serverless functions have memory limits and the file was causing cold start issues — only 3 blogs were loading.\n\nSolution: Split into blogs.ts (9 blogs) and blogs2.ts (23 blogs), import both in the page component.\n\nLesson: Watch your serverless function bundle size. It bites you in production, not in development.\n\n### Challenge 3 — SSR vs Client Rendering for SEO\n\nInitially blog pages were client-rendered. Google was seeing empty pages — terrible for SEO.\n\nMigrated to Server Components with `force-dynamic`\n\n. Now Google gets fully rendered HTML with all content. Indexed 2 new blogs in under 10 minutes after this fix.\n\n### Challenge 4 — AstrologyAPI Rate Limits\n\nDuring testing I burned through API credits quickly. Built a simple caching layer — same birth data within 24 hours returns cached results instead of hitting the API again.\n\nCost dropped significantly. API cost is now ₹8-17 per day even with decent traffic.\n\n## The SEO Strategy — What's Working\n\nI'm not an SEO expert. But here's what I did:\n\n**Blog content in Hindi + English**\n\nMost astrology content online is either pure English or poor Hindi. I write detailed bilingual blogs — \"Makar Rashi 2026 rashifal\" with proper Hindi content. Google seems to like this.\n\n**Long-tail keywords**\n\nNot \"horoscope\" (impossible to rank). Instead \"makar rashi sade sati 2026 upay\" — specific, lower competition, high intent.\n\n**FAQ sections on every blog**\n\nGoogle's featured snippets love FAQ format. I include 10-14 FAQ questions per blog with direct answers.\n\n**Schema markup**\n\nFAQ schema, Breadcrumb schema, Review schema — all implemented server-side. Google Search Console shows all valid. Rich results in search = higher CTR.\n\n**Results after 25 days:**\n\n- 0 to 1,390 impressions\n- 67 clicks\n- 4.8% CTR (industry average is 2-3%)\n- Position 7.6 average\n- First paid customer on Day 20\n\n## The Distribution Strategy\n\nSEO takes time. Meanwhile:\n\n**Quora** — answering astrology questions with genuine helpful content. 51 answers so far. 166 content views this month. Referral traffic is steady.\n\n**Featured.com** — expert Q&A platform. Submitted 3 answers. One selected by BoostmyDomain for publication. Two in review with Brodox and VisRank. High-DR backlinks incoming.\n\n**IndieHackers** — sharing the journey. Good for backlinks and community feedback.\n\n## Revenue — Honest Numbers\n\nDay 20: First payment — ₹99\n\nDay 25: Total revenue — ₹99-200\n\nNot impressive yet. But the paid report feature works, Razorpay integration is solid, and the funnel is there. It's a traffic problem right now, not a conversion problem.\n\n## What I'd Do Differently\n\n**Start SEO content on Day 1**\n\nI built features for the first 2 weeks before writing any blogs. Those 2 weeks of content compound over time — I wish I'd started earlier.\n\n**Pick a narrower niche first**\n\n\"AI Vedic astrology\" is broad. Starting with \"Sade Sati calculator\" or \"Kundli Matching tool\" and dominating that before expanding would have been smarter.\n\n**Build in public from Day 1**\n\nI started sharing on Day 20. Earlier sharing = earlier feedback = earlier course corrections.\n\n## What's Next\n\n- Complete all 12 rashi blogs (4 remaining)\n- Reddit community building\n- YouTube Shorts — 30 second rashifal videos\n- WhatsApp channel\n- Month 2 target: ₹5,000 revenue\n\n## The Code\n\nNot open source yet — but happy to answer specific technical questions in the comments.\n\nLive at: [kundliai.in](https://kundliai.in)\n\nBuilt by one person in 25 days. Zero paid marketing. Everything organic.\n\nIf you're building something for the Indian market — Hindi-first is a massive opportunity. The content gap is real.\n\nHappy to answer any questions about the stack, the prompts, or the SEO approach.", "url": "https://wpnews.pro/news/building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didn", "canonical_source": "https://dev.to/abhishek_gupta_cc27e9b33a/building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didnt-2257", "published_at": "2026-05-23 17:37:38+00:00", "updated_at": "2026-05-23 18:04:26.306301+00:00", "lang": "en", "topics": ["artificial-intelligence", "startups", "products", "developer-tools", "large-language-models"], "entities": ["KundliAI", "Next.js", "Tailwind CSS", "Groq", "Meta", "AstrologyAPI", "Razorpay", "Vercel"], "alternates": {"html": "https://wpnews.pro/news/building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didn", "markdown": "https://wpnews.pro/news/building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didn.md", "text": "https://wpnews.pro/news/building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didn.txt", "jsonld": "https://wpnews.pro/news/building-an-ai-vedic-astrology-app-in-25-days-what-actually-worked-and-what-didn.jsonld"}}