Full-Stack Publishing & Marketing

TroveTrends

A content platform and its admin dashboard: SEO-first publishing, a newsletter and email campaigns in one stack.

TroveTrends publishes articles on technology, software, health and finance, and grows an audience through search, a double opt-in newsletter, lead magnets and email campaigns, with subscribers, campaigns and analytics run from its own admin dashboard.

Live in production2 apps

2

Next.js apps, one database

10

Public API routes

8

Article block types

4

Content verticals

The challenge

A publisher needed more than a blog: pages that rank, a subscriber list it owns, campaigns it can send and measure, and an editorial workflow, without paying for and stitching together a CMS, an email platform and an analytics tool.

What we built

We built two Next.js applications on one Firestore database: a fast, SEO-first public site and a private admin dashboard for subscribers, campaigns and analytics, with Resend handling every email and its delivery events.

Features

Public site

  • Server rendering with incremental static regeneration on every article and category page
  • JSON-LD structured data, canonical URLs, dynamic sitemap and RSS
  • Command-palette search (Ctrl+K) with trending articles and recent searches
  • Free tools hub with a Financial Health Calculator, plus recipe pages with click-to-load embeds

Audience growth

  • Double opt-in newsletter with confirmation, welcome and one-click unsubscribe
  • Lead-magnet popups and JWT-protected PDF downloads
  • Rate-limited, validated contact and signup endpoints
  • Maintenance mode controlled by middleware

Admin & content model

  • Firebase Auth with email and Google sign-in; ID tokens verified on every admin API route
  • Typed article model: content blocks, SEO metadata, draft, published and archived status
  • Articles dashboard with view counts and affiliate click tracking per article
  • Contacts and newsletter subscribers managed in one place

Email marketing & analytics

  • Templates with variable substitution, scheduled and immediate campaigns
  • Subscriber segmentation, engagement scoring and preferences
  • Resend delivery events through signed (Svix) webhooks: opens, clicks, bounces
  • KPI dashboard with campaign, subscriber and article performance charts

Architecture

Both apps share one Firestore database. Security rules validate every client create, limit client updates to a few fields and block client deletes; privileged writes run through the Admin SDK on the server.

  1. Users

    Readers

    trovetrends.com, any device

    Editors & admins

    Private dashboard, Firebase sign-in

  2. Applications on Vercel

    Public site (Next.js App Router)

    Server Components, ISR, rate-limited API routes, middleware

    Admin dashboard (Next.js 14)

    Campaign and subscriber services, analytics API

  3. Data

    Firebase Firestore

    Articles, categories, subscribers, contacts, campaigns, settings

    Firebase Auth

    Email and Google sign-in, verified ID tokens

  4. Services

    Resend

    Newsletter, campaigns, signed webhooks

    Analytics

    Google Analytics, Pinterest

Engineering highlights

SEO-first rendering

Content pages are server-rendered or regenerated so crawlers get full HTML; interactive tools render on the client where SSR adds nothing.

Content as data, not HTML

Articles are typed sequences of content blocks with their own metadata, so pages, feeds or a future app can read the structure without parsing markup.

A list worth sending to

Double opt-in, tokenized confirmation and one-click unsubscribe keep the subscriber base real, which protects deliverability.

Hardened for the open web

CSP and HSTS headers, per-IP rate limits on public forms, error boundaries around each region of the page, and a WCAG AA contrast target.

Tech stack

Public site
Next.js 13.5 (App Router), TypeScript 5 strict
Admin
Next.js 14, React 18, ApexCharts, React Quill
UI
Tailwind CSS, shadcn/ui (Radix), Lucide icons
Database
Firebase Firestore (client + Admin SDK)
Auth
Firebase Authentication, server-side token verification
Email
Resend with Svix-signed webhooks
Testing & deploy
Jest, live check scripts, Vercel

Building something similar?

Tell us what you need. We'll come back with a plan and a realistic estimate.