<?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: Elliot Harris</title>
    <description>The latest articles on DEV Community by Elliot Harris (@eharris733).</description>
    <link>https://dev.to/eharris733</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%2F4207148%2F4d4cefd2-1cfd-46d3-ada2-fb9523068103.jpg</url>
      <title>DEV Community: Elliot Harris</title>
      <link>https://dev.to/eharris733</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eharris733"/>
    <language>en</language>
    <item>
      <title>Add a Live Local Events Feed to a Lovable App in 5 Minutes</title>
      <dc:creator>Elliot Harris</dc:creator>
      <pubDate>Sun, 25 Oct 2026 18:32:07 +0000</pubDate>
      <link>https://dev.to/eharris733/add-a-live-local-events-feed-to-a-lovable-app-in-5-minutes-57hh</link>
      <guid>https://dev.to/eharris733/add-a-live-local-events-feed-to-a-lovable-app-in-5-minutes-57hh</guid>
      <description>&lt;p&gt;Most "things to do near me" apps built with AI tools hit the same wall: the app looks great, but the events are made up, or scraped from a site that breaks next week. This guide wires a &lt;a href="https://lovable.dev" rel="noopener noreferrer"&gt;Lovable&lt;/a&gt; app to real, daily-updated event data from FindLocal: concerts, comedy, trivia nights, open mics, author readings and library storytimes in US metros and London. It takes about five minutes.&lt;/p&gt;

&lt;p&gt;The same steps work in Bolt, v0, Replit or Cursor. Only the "where do I put the secret" step changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Get a free API key
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://findlocal.community/signup?from=devto" rel="noopener noreferrer"&gt;Create a FindLocal account&lt;/a&gt; and make a key on the dashboard. The free plan has no card. Calls per month are on the &lt;a href="https://findlocal.community/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Keep the key secret. It goes in a server-side secret, never in browser code.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Store the key as a secret
&lt;/h2&gt;

&lt;p&gt;In Lovable, connect Supabase (Lovable's built-in backend) and add a secret named &lt;code&gt;FINDLOCAL_KEY&lt;/code&gt; with your key as the value. On other platforms, use the environment-variable or secrets panel for server code.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Paste this prompt
&lt;/h2&gt;

&lt;p&gt;Give Lovable this prompt as it is, and change the city if you like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Add an "Events this week" page.

Create a Supabase Edge Function called `events` that calls
GET https://findlocal.community/api/events?city=austin&amp;amp;when=week&amp;amp;sort=featured
with the header `Authorization: Bearer ${FINDLOCAL_KEY}` (read FINDLOCAL_KEY from
the function's secrets — never expose it to the browser). Accept optional `city`,
`when` and `cat` query params and pass them through. Return the JSON unchanged.
Cache the response for 10 minutes.

On the page, call that function and render `data` as a responsive card grid:
image_url (hide if null), title, event_date + start_time, venue_name, price,
and a button linking to ticket_page_url (fall back to detail_page_url).
Add filter chips for when = today | weekend | week and cat = music | comedy |
trivia | family | literary. Show "Event data by FindLocal" linking to
https://findlocal.community in the page footer.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all of it. Lovable writes the function, the page and the filters.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the API returns
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;/api/events&lt;/code&gt; returns &lt;code&gt;{ data: [...], meta: {...} }&lt;/code&gt;. Each event is flat JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Tuesday Trivia"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"event_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-10-27"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"start_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"19:30"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"trivia"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Free"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"venue_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"venue_lat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;30.26&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"venue_lng"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;-97.74&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"image_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ticket_page_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://…"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dates and times are in the venue's own time zone, so you never have to convert them. The full field list and every filter are in the &lt;a href="https://findlocal.community/docs" rel="noopener noreferrer"&gt;docs&lt;/a&gt;, and you can try queries there without a key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Useful variations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Near the user:&lt;/strong&gt; replace &lt;code&gt;city=&lt;/code&gt; with &lt;code&gt;near=&amp;lt;lat&amp;gt;,&amp;lt;lng&amp;gt;&amp;amp;radius_km=10&lt;/code&gt; to sort by distance from the browser's location.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only free events:&lt;/strong&gt; add &lt;code&gt;free=1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search:&lt;/strong&gt; &lt;code&gt;q=jazz&lt;/code&gt; matches titles, venues, performers and descriptions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One category:&lt;/strong&gt; &lt;code&gt;cat=comedy&lt;/code&gt; or &lt;code&gt;cat=literary&lt;/code&gt; (bookstores and libraries).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Things that commonly go wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The key ends up in the browser.&lt;/strong&gt; If the AI tool puts the fetch in a React component, ask it to move the call into the Edge Function. Anyone can read a key that ships to the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calling on every render.&lt;/strong&gt; Cache in the function (the prompt asks for 10 minutes). Listings refresh daily, so you don't need anything fresher.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credit line.&lt;/strong&gt; On the Free plan, keep the "Event data by FindLocal" link visible where the events appear (see the &lt;a href="https://findlocal.community/terms#api" rel="noopener noreferrer"&gt;API terms&lt;/a&gt;). Paid plans don't need it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  No backend at all? Use the widget
&lt;/h2&gt;

&lt;p&gt;If you just want events on a page and don't need your own design, the &lt;a href="https://findlocal.community/widgets" rel="noopener noreferrer"&gt;FindLocal widget&lt;/a&gt; is one script tag with no key. It gives you a list, calendar and map with filters, and you can paste it into any site builder that accepts HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building an agent instead?
&lt;/h2&gt;

&lt;p&gt;The same key works with the &lt;a href="https://findlocal.community/mcp" rel="noopener noreferrer"&gt;FindLocal MCP server&lt;/a&gt;, so Claude, Cursor or any MCP client can search events directly.&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>loveable</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
