CoreyTube: the tube of the AWS Community Builders Spotlight by Corey Strausman, built with Amplify Gen 2
DEV Community

CoreyTube: the tube of the AWS Community Builders Spotlight by Corey Strausman, built with Amplify Gen 2

TL;DR Corey Strausman writes a list of the best AWS articles every week, and he does it so well that I decided to build a website to read it for you.

The site has 1182 articles, 459 authors and 55 Five Timers, and it lives at coreytube.com.

Corey did the hard part, every week. I wrote a Lambda that reads his list again on Mondays, so you can click instead of scroll. 🙏

Why this exists

Corey does this every week, for the whole community: he reads, picks, writes, and keeps the series going.

Corey Tube does not replace any of that. It gives his work a different shape, one that is easier to navigate: filter by author, by country, by the 4x4 series, by AWSome picks, and see the numbers over time.

It also marks a moment for me. I joined the Five Timers last week, and I wanted to build something to celebrate it. It is also a small tribute to a habit I admire in this community: AWS Community Builders publish quality content, week after week, and that consistency deserves to be visible.

The idea was also inspired by Andrej Karpathy's HackerTube. He took the YouTube videos people link in Hacker News comments, filtered them, and turned the result into a browsable site in a couple of hours with Claude Code. The part I liked most is that the site does the filtering in advance, so the reader starts from a short, curated list instead of an endless stream. That is the same thing I wanted for CoreyTube.

When I shared the announcement, many builders replied with kind words. I'm glad it reached people I truly admire.

✨ What you can do

Browse the articles. Every spotlight and 4x4 pick is on one page, newest first. Filter by edition, author, country, topic, type or source, or search by title and abstract. The list loads more as you scroll, so there is no button to press.

Meet the authors. The Authors page is a wall of faces. Filter it to the Five Timers, the 4x4 authors, the AWSome picks or the User Group Leaders. Each face has a small tag, and clicking one opens a card with the person's latest articles and their Builder Center profile.

Read the numbers. The Stats page turns the archive into charts: articles, authors, countries, topics and the races over time, week by week.

Explore the globe. The same authors can be shown on a 3D globe, each face at their country. Zoomed out, nearby faces group into bubbles with a count, and zooming in brings the faces back. Click a face to open its card.

Find the surprises. There are a few hidden surprises across the site. The post's riddles above are the place to start looking.

🏗️ The architecture

The architecture has two halves that never talk to each other directly. One produces the data, the other shows it. Amplify Gen 2 deploys both from the same repository.

The deploy. Every push to main starts a build in AWS CodeBuild, run by Amplify Hosting. The first step deploys the backend with npx ampx pipeline-deploy, as a CloudFormation stack for that branch. The stack creates the Lambda and its IAM role, the EventBridge schedule, the bucket, the data distribution and a CloudWatch log group. Its outputs, the data URL and the bucket name, are written into amplify_outputs.json. The second step builds the frontend with that file, so the site knows where its data lives without any hard-coded URL.

The data. It moves in four steps:

  • EventBridge Scheduler starts the refresh Lambda every Monday at 09:00 UTC.
  • The Lambda reads the JSON files from the bucket, scrapes what is new, and writes the merged result back with PutObject.
  • The bucket is private and versioned. The only thing that can read it is the CloudFront data distribution, through Origin Access Control.
  • The browser fetches the JSON from that distribution, which sends the CORS headers the site needs.

The Lambda's role can read and write that one bucket, and its logs go to CloudWatch.

The site. Amplify Hosting publishes the static build, React, TypeScript, Vite, Tailwind and shadcn/ui, and stores it in its own storage behind its own CloudFront distribution. Route 53 holds the coreytube.com zone: an alias that points the domain at that distribution, and the CNAME that validates the ACM certificate. The browser resolves the domain through Route 53, reaches the Amplify distribution, and loads the static files. The site only knows the data URL, never the bucket.

Why two distributions. The site and the data have different lives. The site changes with every commit, the data changes once a week. Keeping them apart means the data can be cached, refreshed and rolled back without touching the site, and the bucket never receives public traffic directly.

⚡ Amplify Gen 2 makes this short

For a site like this, Amplify Gen 2 is a very good fit. It takes care of the deploy, the hosting and the provisioning of the resources, so the whole project lives in one repository and every push deploys it. Connecting a custom domain comes down to a few DNS records that Amplify gives you, plus a certificate it issues for you.

The backend is a TypeScript project too: a function definition next to its code, and one file that wires the rest. The scheduled function is declared with its code (simplified):

// amplify/functions/refresh/resource.ts
export const refresh = defineFunction(
  {
    name: "refresh",
    schedule: "0 9 ? * 2 *", // Mondays, 09:00 UTC
  }
);

The CDK pieces (bucket, CloudFront distribution, cache policy) sit in amplify/backend.ts, next to the function. The key line is the one that gives the frontend its data URL:

backend.addOutput(
  {
    custom: {
      dataUrl: `https://${cdn.distributionDomainName}`,
      dataBucket: bucket.bucketName
    },
  }
);

Amplify writes that into amplify_outputs.json, and the site reads it at build time. Adding a service, changing a permission or a schedule is a commit, and the pipeline deploys it. I did not write a CloudFormation template by hand.

Two details took me longer than they should have:

  • The Lambda needs bucket.grantReadWrite and the bucket name as an environment variable. Forgetting either gives you a function that runs fine and writes nothing.
  • The browser sends a CORS preflight before fetching a file from another origin. The bucket needs CORS rules, CloudFront must allow OPTIONS and forward Origin, and Origin must be part of the cache key. Otherwise a copy cached for a plain request gets served to the browser without the CORS header, and the page quietly shows "No data yet".

🗄️ No database, on purpose

The dataset is small and changes once a week. A database would add a service to run, a schema to migrate and a bill, and the site would get nothing it needs from it.

So the "database" is four JSON files:

  • articles.json, the archive
  • authors.json, the Builder Center profiles
  • five-timers.json, the club
  • profile.json, Corey's own card

The bucket is private and versioned. Every refresh writes new versions, and the old ones stay for 30 days, so a bad scrape can be rolled back. The site downloads the files once and filters them in memory. 1,182 articles fit in memory without any trouble.

The trade-off is real. Writes happen in batches, not live. The refresh reads everything before it writes, so the whole dataset lives in memory during a run. For a weekly archive that is fine. If the data ever needed live updates or per-user state, that is the point where I would add a table.

🕷️ The scraper

The refresh Lambda is the part where the architecture earns its keep. It runs once a week, reads what is already stored, fetches only what is new, and writes the result back. Here is the entry point, simplified:

// amplify/functions/refresh/handler.ts
export const handler = async (event: { full?: boolean } = {}) => {
  const existing = event.full ? {} : {
    articles: await readJson<Article[]>("articles.json"),
    authors: await readJson<Author[]>("authors.json"),
    fiveTimers: await readJson<FiveTimer[]>("five-timers.json"),
  };
  const next = await refreshDataset(existing);
  await Promise.all([
    writeJson("articles.json", next.articles),
    writeJson("authors.json", next.authors),
    writeJson("five-timers.json", next.fiveTimers),
  ]);
  return { ...next.added, total: next.articles.length };
};

Every write sets a short cache header, so the site picks up a refresh within minutes and I never need to invalidate CloudFront by hand:

const writeJson = (Key: string, data: unknown) =>
  s3.send(new PutObjectCommand({
    Bucket,
    Key,
    Body: JSON.stringify(data),
    ContentType: "application/json",
    CacheControl: "public, max-age=300",
  }));

The work itself happens in refreshDataset, in four steps.

  1. Find the new editions. The crawler starts from a seed page and follows the links between editions. It keeps a list of the editions it already has, so it only fetches the ones it does not know:
export async function discoverEditions(seeds: string[], known: Set<string>) {
  const seen = new Set<string>();
  const queue = [...seeds];
  const out: Edition[] = [];
  while (queue.length) {
    const path = queue.shift()!;
    const id = /\/content\/([A-Za-z0-9]+)\//.exec(path)?.[1];
    if (!id || seen.has(id)) continue;
    seen.add(id);
    const ed = await parseEdition(path);
    if (!ed) continue;
    // still follow the links of known editions, so a new one linked from them is found
    if (!known.has(id)) out.push(ed);
    queue.push(...ed.linkedEditions);
  }
  return out;
}
  1. Enrich each article. For every new article the Lambda reads its page. Videos get a thumbnail with no extra request, because YouTube serves it from a predictable URL:
export async function enrich(a: Omit<Article, "abstract" | "imageUrl">): Promise<Article> {
  let imageUrl = "";
  const yt = /(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]{11})/.exec(a.url);
  if (yt) imageUrl = `https://i.ytimg.com/vi/${yt[1]}/hqdefault.jpg`;
  const html = await fetchText(a.url); // null on timeout or error: never throws
  const $ = html ? cheerio.load(html) : null;
  const meta = (...names: string[]) => { /* first og:/twitter: tag that exists */ };
  return {
    ...a,
    abstract: $ ? meta("og:description", "twitter:description") : "",
    imageUrl: imageUrl || (html ? meta("og:image") : "")
  }
}

The article list is de-duplicated by id before enrichment, because the same article often appears in two editions. And enrichment runs with a concurrency limit of eight, so the function reads the sites politely and stays inside its time budget:

const uniq = [...new Map(raw.map((a) => [a.id, a])).values()];
return mapLimit(uniq, 8, enrich);
  1. Re-read the authors. Each author's Builder Center profile is read again, so a change of location or a new program shows up. Here is the fallback I like most:
export async function scrapeAuthors(handles: string[], previous: Author[] = []) {
  const prev = new Map(previous.map((a) => [a.id, a]));
  const all = await mapLimit([...new Set(handles)], 8, async (h) =>
    (await scrapeAuthor(h)) ?? prev.get(h) ?? null, // profile failed: keep the last good one
  );
  return all.filter(Boolean) as Author[];
}

A scraper that works most of the time is useful. A scraper that silently drops people when one page is slow is misleading, and this line is why it does not.

  1. Merge. New articles are added to the old ones, keyed by id, and the result is sorted by edition date. Nothing that was stored is removed, so a bad run cannot erase the archive.

Locally, the re-read of every author profile takes about four minutes. The first run from an empty bucket takes much longer, which is why I seeded the bucket with the data I had already scraped.

🎉 The easter eggs

I had a lot of fun hiding surprises in the site. Some of them wake up when you hover, some when you type, and one of them is a small rabbit hiding behind the filters. I won't list them here, because the best part is finding them yourself.

So here is a set of riddles to get you started. Solve them, explore, and tell me which ones you found in the comments.

  • Hold your mouse on the photo at the top of the sidebar for as long as it takes to make a choice. Something will fall from the sky, and a face will appear to tell you who was picked.
  • The name of the site has a rhythm. Tap it five times, quickly, and the logo remembers.
  • Type a number in the search box and watch the screen count along with you. Four builds a grid. Five builds a club.
  • Some authors have written more than ten articles. Find one of them and look closely at the card: there is a trophy waiting.
  • The number at the bottom of the sidebar is shy. Click it and it will tell you how many there are.
  • Search for something that does not exist, and listen to what the page says about it.
  • On the Authors page, hold a face for ten seconds. A shower will follow, and a card will open with the person's latest work.
  • Zoom out on the globe. Faces hide in the clusters, and a bubble is only a crowd waiting for you to come closer.

🤖 How it was built

I built all of this with Kiro, using the official Power for Amplify Gen 2. The Power gives the assistant the Amplify documentation and the patterns that go with it, so the code it writes for the backend, the functions and the deploy follows the way Amplify expects a project to look.

Without it, going from an idea to a deployed site in a day would not have been possible for me. Not with this many moving parts: a scheduled function, a bucket, a CDN, a frontend, a domain, and a set of small interactions on top.

This is one more confirmation of how our work has changed. Things that used to take weeks of setup, reading and trial and error now fit inside a working day, and the time goes into the decisions: what to store, what to scrape, what the user should find on the page. That is the part I enjoy, and I think it is the part that matters for the community.

🙌 Thanks

Thank you, Corey, for every Spotlight. And tha

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.