AI Automation & Publishing SystemFull-Stack Engineering Case Study

Stanley’s Log

A fully autonomous AI research and publishing engine. Features headless scrapers monitoring 15+ African tech/venture sources, content noise filtering, deduplication history, Gemini multi-model fallback (Flash/Pro), and automated GitHub Action commits directly to Git history.

Autonomous AI Content & Scraping EngineLive System
/blog● live
Stanley’s Log interface preview
Technical Case Study

Viewing System

Stanley’s Log

ProjectsExecutive Summary
01

Executive Summary

The Business Challenge

Technical blogging and market analysis require consistent manual research, RSS feed parsing, drafting, and publishing, which often fall behind due to high client project workloads.

The Architectural Solution

Stanley's Log automates the entire editorial lifecycle. A daily GitHub Action runs a headless scraper across 15+ tech news sources (TechCabal, Techpoint, Benjamindada, WeeTracker), filters political noise, synthesizes field notes using Gemini AI, and commits Markdown files straight to Git repository history.

Core Capabilities & System Highlights

Web Research01

15+ Tech Source Scraper & Filter

Parses RSS feeds and web articles across top African tech & startup publishers, filtering out geopolitical noise to focus strictly on technology & venture insights.

AI Resilience02

Multi-Model Resiliency Fallback

Uses Gemini 2.5 Flash as primary LLM generator with automatic fallback to Gemini 2.5 Pro if rate limits or API throttles occur.

GitOps Persistence03

GitOps Markdown Persistence

Articles are committed directly to `/content/blog` as version-controlled Markdown files, leaving an immutable audit trail with zero database hosting costs.

Deduplication04

History Deduplication Engine

Tracks processed subjects inside `agent-history.json` to prevent repetitive content generation across daily publishing runs.

02

System Architecture & Specs

Content Engine
Gemini 2.5 APINode.jsTypeScriptGoogle Generative AI SDK

Gemini 2.5 API & Multi-Model Chain

Prompt-engineered LLM pipeline producing structured JSON containing markdown body, category tags, read times, and summaries.

Scraper & RSS Parser
Cheeriorss-parserAxios

Cheerio & RSS Parser Pipeline

Fetches live RSS feeds and web pages, stripping HTML boilerplate and extracting core article text for AI prompt context.

CI/CD & GitOps
GitHub ActionsGit CLIpnpm script

Scheduled GitHub Actions Workflow

Executes CLI script (`scripts/agent.ts`) daily via GitHub Actions, committing new Markdown files directly to the main branch.

Key Engineering Trade-offs & Operational Notes

01. Scheduled serverless research

GitHub Actions trigger research runs on a timer without keeping a server awake.

02. Inspectable Git history

Articles are saved directly to the code repository, ensuring full revision control.

03. Self-healing pipeline

Automatic fallback to secondary AI models prevents failed runs when an API rate limit is reached.

03

Tech Stack & Role Matrix

Every library and framework in Stanley’s Log was chosen with intentional architectural trade-offs to balance speed, type safety, security, and scalability.

TechnologyCategorySystem RolePerformance Rationale
Next.jsFrameworkBlog Rendering & MDX Content PipelineStatically generates blog pages for zero-latency reading.
Gemini AIAI / MLAutonomous Research & SynthesisDelivers deep contextual understanding and structured markdown generation.
GitHub ActionsCI/CDHeadless Daily Cron ExecutionEliminates server hosting costs by running on-demand scheduled jobs.
TypeScriptLanguageCLI Script & Pipeline LogicPrevents runtime failures during news parsing and file writing.
CheerioScrapingFast HTML Parsing & Content ExtractionLightweight server-side HTML scraping without heavy browser overhead.
04

Live Preview & Showcase

05

Metrics & Reliability

$0 / mo

Publishing Cost

Runs via free-tier GitHub Actions & Gemini API

100%

Pipeline Reliability

Multi-model AI fallback prevents failed runs

100% Git

Content Control

Articles are version-controlled Markdown files

Start a Project

Ready to engineer your next product?

Available for full-stack web applications, SaaS platform development, and senior technical consulting.