<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Takshil Pandya</title>
    <description>The latest articles on DEV Community by Takshil Pandya (@takshil_pandya_d8453c036d).</description>
    <link>https://dev.to/takshil_pandya_d8453c036d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3151748%2Fd0ca65b3-995a-40d6-9cda-4a1b339df01a.jpg</url>
      <title>DEV Community: Takshil Pandya</title>
      <link>https://dev.to/takshil_pandya_d8453c036d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/takshil_pandya_d8453c036d"/>
    <language>en</language>
    <item>
      <title># How I Built an AI Travel Planner — and What I Got Wrong</title>
      <dc:creator>Takshil Pandya</dc:creator>
      <pubDate>Wed, 24 Jun 2026 14:55:44 +0000</pubDate>
      <link>https://dev.to/takshil_pandya_d8453c036d/-how-i-built-an-ai-travel-planner-and-what-i-got-wrong-1pm7</link>
      <guid>https://dev.to/takshil_pandya_d8453c036d/-how-i-built-an-ai-travel-planner-and-what-i-got-wrong-1pm7</guid>
      <description>&lt;p&gt;I built &lt;a href="https://kartografer.com" rel="noopener noreferrer"&gt;Kartografer&lt;/a&gt; — an AI travel planner where you describe a trip and Gemini generates a full day-wise itinerary. You can then edit it, chat with the AI for suggestions, share a public link, and export a PDF travel proposal.&lt;/p&gt;

&lt;p&gt;Here are the decisions that mattered most.&lt;/p&gt;




&lt;h2&gt;
  
  
  The one rule that held everything together
&lt;/h2&gt;

&lt;p&gt;Every itinerary item has one boolean: &lt;code&gt;isSelected&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;isSelected: true  → final plan
isSelected: false → option/suggestion
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. But this single field flows through the entire app. Budget only sums selected items. Public pages, share links, and PDF export only show selected items. Moving something to the options panel doesn't delete it — it just flips the flag.&lt;/p&gt;

&lt;p&gt;Without this, I'd have needed separate tables for draft vs final content, or conditional logic scattered everywhere. One field kept it clean.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why the AI never directly edits a trip
&lt;/h2&gt;

&lt;p&gt;The obvious approach: user sends a message → AI updates the database. Simple. And completely wrong.&lt;/p&gt;

&lt;p&gt;If the AI can directly mutate your itinerary, one bad response silently corrupts your plan. So I built a proposal flow instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User sends chat message
→ Gemini returns a reply + structured proposedChanges JSON
→ Proposal saved as PENDING
→ UI shows a preview card
→ User clicks Apply
→ Separate server action re-validates JSON + re-checks ownership
→ DB updates run + budget recalculated
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The chat action never touches the itinerary. The apply action doesn't trust the proposal — it validates everything from scratch. Worst case: the AI returns garbage, the user sees a bad suggestion card and dismisses it. The trip stays untouched.&lt;/p&gt;




&lt;h2&gt;
  
  
  Long trips needed chunked generation
&lt;/h2&gt;

&lt;p&gt;A 14-day itinerary is a large JSON structure. One Gemini request risks token limits and timeouts. So long trips are split into sequential chunks — a few days at a time — each validated against a Zod schema before moving to the next.&lt;/p&gt;

&lt;p&gt;For reliability, three Gemini API keys rotate on retryable errors (429, 500, 502). One thing I got right: invalid JSON responses don't trigger key rotation. That's a content problem, not an API problem. Rotating keys on bad output just wastes quota.&lt;/p&gt;




&lt;h2&gt;
  
  
  PDF export — why I didn't use a library
&lt;/h2&gt;

&lt;p&gt;I tried a few HTML-to-PDF libraries. The output was consistently broken — fonts missing, layouts collapsed. Most of them don't run a real browser engine, so anything depending on computed styles or custom properties breaks.&lt;/p&gt;

&lt;p&gt;The fix was Playwright with real Chromium. The API route launches it headlessly, navigates to the export preview page, and captures it as A4. The preview page and the PDF are the same template — what you see is exactly what gets downloaded.&lt;/p&gt;




&lt;h2&gt;
  
  
  The free-tier wall
&lt;/h2&gt;

&lt;p&gt;Kartografer runs on Gemini's free tier. Multi-key rotation helps with per-minute limits but not daily caps. At any real traffic volume, it runs out fast — and I don't have the budget to fix this with money right now.&lt;/p&gt;

&lt;p&gt;So I've been thinking about working around it with design:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cache common itineraries&lt;/strong&gt; — Paris 7-day budget trips don't need fresh generation every time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Explore as a seed&lt;/strong&gt; — adapt an existing published itinerary instead of generating from scratch&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Async queue&lt;/strong&gt; — smooth out burst traffic instead of failing mid-request&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BYOK&lt;/strong&gt; — let users connect their own Gemini key for unlimited personal generation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these are built yet. But a hard resource constraint forces you to think about AI differently — not as an unlimited utility, but as something to use carefully.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Define the AI proposal schema first.&lt;/strong&gt; I built the chat feature before locking down what a proposal looked like. That meant refactoring the chat action later to remove direct itinerary mutations. Starting with the schema would have made the whole integration cleaner.&lt;/p&gt;




&lt;p&gt;The full source is on &lt;a href="https://github.com/TakshilCodes/kartografer" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. Live at &lt;a href="https://kartografer.com" rel="noopener noreferrer"&gt;kartografer.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>gemini</category>
      <category>showdev</category>
    </item>
    <item>
      <title>I Built My First Full-Stack E-commerce Website – ShopKart</title>
      <dc:creator>Takshil Pandya</dc:creator>
      <pubDate>Fri, 13 Mar 2026 01:46:13 +0000</pubDate>
      <link>https://dev.to/takshil_pandya_d8453c036d/i-built-my-first-full-stack-e-commerce-website-shopkart-k09</link>
      <guid>https://dev.to/takshil_pandya_d8453c036d/i-built-my-first-full-stack-e-commerce-website-shopkart-k09</guid>
      <description>&lt;p&gt;After spending time learning full-stack development, I finally built my first full-stack web application — ShopKart, a modern e-commerce platform.&lt;/p&gt;

&lt;p&gt;This project helped me understand how real production systems work, from authentication and database design to payment integration and admin dashboards.&lt;/p&gt;

&lt;p&gt;🛍️ What is ShopKart?&lt;/p&gt;

&lt;p&gt;ShopKart is a full-stack e-commerce website where users can browse products, add items to a cart, and complete purchases online.&lt;/p&gt;

&lt;p&gt;It also includes an admin dashboard for managing products, users, and categories.&lt;/p&gt;

&lt;p&gt;🔗 Live Demo&lt;br&gt;
&lt;a href="https://shopkartsite.vercel.app" rel="noopener noreferrer"&gt;https://shopkartsite.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⚙️ Tech Stack&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Frontend&lt;/li&gt;
&lt;li&gt;Next.js (App Router)&lt;/li&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;li&gt;Tailwind CSS&lt;/li&gt;
&lt;li&gt;Backend&lt;/li&gt;
&lt;li&gt;Next.js API Routes&lt;/li&gt;
&lt;li&gt;Prisma ORM&lt;/li&gt;
&lt;li&gt;PostgreSQL (Neon)&lt;/li&gt;
&lt;li&gt;Redis (for OTP verification)&lt;/li&gt;
&lt;li&gt;Chart.js (admin analytics dashboard)&lt;/li&gt;
&lt;li&gt;Cashfree (payment integration)&lt;/li&gt;
&lt;li&gt;Vercel (deployment)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✨ Key Features&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;User Features&lt;/li&gt;
&lt;li&gt;User authentication&lt;/li&gt;
&lt;li&gt;Email verification using OTP&lt;/li&gt;
&lt;li&gt;Product search and filtering&lt;/li&gt;
&lt;li&gt;Pagination for products&lt;/li&gt;
&lt;li&gt;Cart system&lt;/li&gt;
&lt;li&gt;Checkout system&lt;/li&gt;
&lt;li&gt;Payment integration&lt;/li&gt;
&lt;li&gt;Admin Features&lt;/li&gt;
&lt;li&gt;Create and delete categories&lt;/li&gt;
&lt;li&gt;Add and manage products&lt;/li&gt;
&lt;li&gt;Manage users&lt;/li&gt;
&lt;li&gt;Admin analytics dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🔐 OTP Authentication with Redis&lt;/p&gt;

&lt;p&gt;For email verification, I implemented an OTP system using Redis.&lt;/p&gt;

&lt;p&gt;Flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;User signs up&lt;/li&gt;
&lt;li&gt;OTP is generated&lt;/li&gt;
&lt;li&gt;OTP is stored in Redis with expiration&lt;/li&gt;
&lt;li&gt;User enters OTP&lt;/li&gt;
&lt;li&gt;OTP is validated and account gets verified&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Using Redis made OTP verification fast and secure since the data automatically expires.&lt;/p&gt;

&lt;p&gt;📊 Admin Analytics with Chart.js&lt;/p&gt;

&lt;p&gt;The admin dashboard includes analytics visualizations using Chart.js.&lt;/p&gt;

&lt;p&gt;This helps display useful information like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;user statistics&lt;/li&gt;
&lt;li&gt;product data&lt;/li&gt;
&lt;li&gt;activity insights&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📚 What I Learned&lt;/p&gt;

&lt;p&gt;Building this project taught me a lot about:&lt;br&gt;
Full-stack architecture&lt;br&gt;
Designing relational databases&lt;br&gt;
Authentication flows&lt;br&gt;
Payment gateway integrations&lt;br&gt;
Using Redis for temporary data storage&lt;br&gt;
Creating admin dashboards&lt;/p&gt;

&lt;p&gt;This was a great hands-on experience connecting frontend, backend, and database systems together.&lt;/p&gt;

&lt;p&gt;🔗 Project Links&lt;/p&gt;

&lt;p&gt;🌐 Live Website&lt;br&gt;
&lt;a href="https://shopkartsite.vercel.app" rel="noopener noreferrer"&gt;https://shopkartsite.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💻 GitHub Repository&lt;br&gt;
&lt;a href="https://github.com/TakshilCodes/shopkart-ecom" rel="noopener noreferrer"&gt;https://github.com/TakshilCodes/shopkart-ecom&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 What's Next?&lt;/p&gt;

&lt;p&gt;I’m continuing to build more projects and improve my full-stack development skills.&lt;/p&gt;

&lt;p&gt;If you have any feedback or suggestions, I’d love to hear them!&lt;/p&gt;

&lt;h1&gt;
  
  
  webdev #nextjs #fullstack #typescript #opensource
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>I’m Now on Fiverr — Offering React &amp; Tailwind Projects!</title>
      <dc:creator>Takshil Pandya</dc:creator>
      <pubDate>Tue, 20 May 2025 09:37:00 +0000</pubDate>
      <link>https://dev.to/takshil_pandya_d8453c036d/im-now-on-fiverr-offering-react-tailwind-projects-349n</link>
      <guid>https://dev.to/takshil_pandya_d8453c036d/im-now-on-fiverr-offering-react-tailwind-projects-349n</guid>
      <description>&lt;p&gt;Hey devs! 👋&lt;/p&gt;

&lt;p&gt;I'm excited to share that I’ve officially launched my &lt;strong&gt;Fiverr&lt;/strong&gt; profile where I’m offering freelance services in &lt;strong&gt;React.js&lt;/strong&gt; and &lt;strong&gt;Tailwind CSS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After building multiple personal projects and honing my frontend skills, I decided to take the leap into freelancing. If you're a designer, startup founder, or developer looking to bring your designs to life — I’d love to help!&lt;/p&gt;

&lt;h3&gt;
  
  
  🛠️ What I Offer:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Convert Figma/PSD designs to responsive React + Tailwind code&lt;/li&gt;
&lt;li&gt;Build personal portfolios or landing pages&lt;/li&gt;
&lt;li&gt;Clean UI with mobile-first design and fast performance&lt;/li&gt;
&lt;li&gt;Bug fixes and UI enhancements in existing React apps&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔗 Check it out:
&lt;/h3&gt;

&lt;p&gt;👉 &lt;a href="https://www.fiverr.com/takshil_dev" rel="noopener noreferrer"&gt;fiverr.com/takshil_dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm open to collaboration, feedback, or just connecting with other devs here!&lt;/p&gt;

&lt;p&gt;Let’s build something cool together. 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  react #tailwindcss #freelance #fiverr #webdev #frontend #devto
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Build a Portfolio with React &amp; GSAP</title>
      <dc:creator>Takshil Pandya</dc:creator>
      <pubDate>Mon, 12 May 2025 02:44:36 +0000</pubDate>
      <link>https://dev.to/takshil_pandya_d8453c036d/build-a-portfolio-with-react-gsap-3bah</link>
      <guid>https://dev.to/takshil_pandya_d8453c036d/build-a-portfolio-with-react-gsap-3bah</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I recently built my personal portfolio using React and Tailwind CSS&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Dark mode toggle&lt;/li&gt;
&lt;li&gt;Email contact form using EmailJS&lt;/li&gt;
&lt;li&gt;Smooth scroll animations with GSAP&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Live Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://takshilpandya.vercel.app/" rel="noopener noreferrer"&gt;takshil.dev&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Let me know your thoughts or questions in the comments!&lt;/p&gt;

</description>
      <category>react</category>
      <category>tailwindcss</category>
      <category>portfolio</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
