Use this powerful n8n workflow to automatically scrape GitHub's daily, weekly, and monthly trending repositories using Firecrawl, extract key data with an AI Agent, and sync it directly to Supabase.
Download this n8n workflow template and start using it instantly.
Markdown-formatted:
Data engineers or developers tracking open-source trends.
Users who need reliable, scheduled web scraping delivered directly to a database.
Anyone seeking an advanced example of using the n8n AI Agent node with external tools (like databases).
System administrators looking for robust n8n templates for data pipeline creation.
Tracking GitHub trending repositories is crucial for understanding current developer interests and emerging technologies. However, manually gathering and structuring this data is time-consuming. This specialized n8n workflow solves this problem by automating the entire pipeline.
It leverages scheduled n8n triggers to run the collection process daily, weekly, and monthly. It uses the Firecrawl n8n node for high-fidelity web scraping and, most critically, utilizes an n8n AI Agent (powered by GPT-4o-mini) to reliably transform unstructured Markdown scrape output into clean, structured JSON data. This structured data is then inserted directly into your Supabase database, providing a centralized and searchable history of GitHub's hottest projects. This is one of the most comprehensive n8n templates available for combining scraping, AI extraction, and database management.
Markdown-formatted:
daily, weekly, or monthly.B1, B2, B3) that assign the appropriate timeframe (daily, weekly, or monthly) to a workflow variable. The consolidated B_ALL Set node prepares this variable for subsequent steps.https://github.com/trending?since=daily).githubtrending table, including the required type field.Markdown-formatted:
OpenAI Chat Model n8n node.firecrawl n8n node.Create a row in Supabase n8n node, ensuring it has permission to interact with your database.githubtrending table with the necessary schema:CREATE TABLE public.githubtrending (
id bigint GENERATED ALWAYS AS IDENTITY NOT NULL,
createdat timestamp with time zone NOT NULL DEFAULT now(),
datadate date DEFAULT now(),
url text,
projectid text,
projectdesc text,
codelanguage text,
stars bigint DEFAULT '0'::bigint,
type text,
CONSTRAINT githubtrendingpkey PRIMARY KEY (id)
);Markdown-formatted:
Schedule Trigger (daily, weekly, monthly): The primary n8n trigger nodes. They handle the execution frequency, ensuring the collection process runs automatically at the specified intervals.
Set (B1, B2, B3, B_ALL): Core Logic flow control. These n8n node instances define and pass the required timeframe variable (daily, weekly, or monthly) downstream, which is essential for determining the correct GitHub URL parameter.
Firecrawl: This dedicated scraping n8n node fetches the content from the GitHub Trending page.
Function: Reliable scraping, specifically targeting the main content and project listings (div[data-hpc]).
Key Configuration: URL is dynamic: =https://github.com/trending?since={{ $json.type }}.
AI Agent: The orchestrator of the data cleaning process.
Function: Uses the linked OpenAI Chat Model (GPT-4o-mini) and the Supabase tool to extract data from the scraped Markdown text and perform the insertion.
Key Configuration: Includes a strict System Message dictating the required JSON output format and field names (name, url, description, language, stars).
OpenAI Chat Model: Provides the necessary Large Language Model (LLM) capability for the AI Agent.
Function: Executes the prompt instructions given by the AI Agent to perform precise data structuring and extraction. Uses gpt-4o-mini for cost-effectiveness and speed.
Create a row in Supabase: This n8n node acts as a tool for the AI Agent.
Function: Inserts the extracted, structured data directly into the githubtrending table. Field mapping is configured using AI-driven output variables ($fromAI).
Use this powerful n8n workflow to automatically create GitHub Pull Requests and update JIRA task statuses directly from specified commands embedded within your Git commit messages.

Use this powerful n8n workflow to automatically lint, fix, and create new Pull Requests on GitHub using a Google Gemini AI Agent. Leverage n8n templates for streamlined DevOps automation.

Automate GitHub issue assignment triage using comment commands like 'assign me'. This n8n workflow utilizes conditional logic and a GitHub n8n trigger to manage assignments efficiently.

Use this powerful n8n workflow to automate checking, creating, closing, commenting on, and merging GitLab Merge Requests (MRs) directly using the HTTP Request n8n node.

Automate Gmail inbox management using this powerful n8n workflow. GPT-4o reasons through incoming emails and assigns relevant labels automatically using a dedicated n8n node.

AI startup/ indie developer/ solo founder/ super individual/ one-person business/ Google TFUG Organizer







































