# Ghost | Ghost | Knowledge Base | Instagit

Independent technology for modern publishing, memberships, subscriptions and newsletters.

GitHub Stars: 53.5k

Repository: https://github.com/TryGhost/Ghost

---

## Articles

### [How Ghost Recommendations and Discovery Features Work: A Complete Technical Guide](/TryGhost/Ghost/ghost-recommendations-discovery-features)

Discover how Ghost recommendations and discovery features work. Explore their service-repository architecture, engagement tracking, and cross-site synchronization powered by web mentions in this technical guide.

- Tags: deep-dive
- Published: 2026-05-18

### [How Ghost Implements Brute Force Protection for API Endpoints](/TryGhost/Ghost/ghost-api-brute-force-protection)

Discover how Ghost protects API endpoints with layered rate-limiting via express-brute and brute-knex blocking abuse while ensuring smooth access for legitimate users.

- Tags: internals
- Published: 2026-05-18

### [How Ghost Newsletters and Automated Emails Work: A Technical Architecture Guide](/TryGhost/Ghost/ghost-newsletters-automated-emails)

Explore Ghost's four-layer architecture for newsletters and automated emails. Learn how it manages subscriptions and delivers campaigns via configurable mail transports.

- Tags: architecture
- Published: 2026-05-18

### [How Ghost Renders Themes: The Complete Frontend Rendering Pipeline Explained](/TryGhost/Ghost/ghost-theme-rendering-frontend-pipeline)

Discover how Ghost renders themes with its five-stage frontend pipeline. Learn about routing, data fetching, Handlebars compilation, and asset optimization for efficient theme delivery.

- Tags: internals
- Published: 2026-05-18

### [How Sentry is Integrated for Error Tracking in Ghost: Backend and Frontend Implementation](/TryGhost/Ghost/ghost-sentry-error-tracking-integration)

Discover how Ghost integrates Sentry for comprehensive error tracking. Explore backend Node.js and frontend Ember implementation, noise filtering, and context enrichment.

- Tags: internals
- Published: 2026-05-18

### [How Ghost Handles CORS for Its API Endpoints: Express Middleware Deep Dive](/TryGhost/Ghost/ghost-api-cors-handling)

Ghost manages CORS for API endpoints using express cors middleware and a custom delegate function. Discover how Ghost validates requests against a dynamic allow-list of trusted origins.

- Tags: deep-dive
- Published: 2026-05-18

### [How the Ghost Comments System Works: Architecture, Features, and Moderation](/TryGhost/Ghost/ghost-comments-system-moderation)

Explore the Ghost comments system architecture, features, and moderation tools. Learn how Ghost handles comments with its robust three-layer design and powerful admin controls.

- Tags: architecture
- Published: 2026-05-18

### [How Ghost Sends Emails and Which Email Providers Are Supported](/TryGhost/Ghost/ghost-email-sending-providers)

Discover how Ghost sends emails using a dual-path architecture for transactional and bulk messages. Learn about supported email providers like Mailgun.

- Tags: how-to-guide
- Published: 2026-05-18

### [How Ghost Content API Authentication Differs from the Admin API](/TryGhost/Ghost/ghost-content-api-vs-admin-api-authentication)

Discover how Ghost Content API authentication uses a simple API key. Contrast this with the Admin API's JWT token for secure access.

- Tags: deep-dive
- Published: 2026-05-18

### [How Ghost Integrates with Stripe for Subscription Payments](/TryGhost/Ghost/ghost-stripe-integration-subscriptions)

Discover how Ghost integrates with Stripe for subscription payments using its three-layer architecture. Secure checkouts, webhook handling, and subscription management are streamlined.

- Tags: how-to-guide
- Published: 2026-05-18

### [How Ghost Frontend Helpers Work: A Complete Guide to Creating Custom Handlebars Helpers](/TryGhost/Ghost/ghost-frontend-helpers-custom-handlebars-helpers)

Learn how Ghost frontend helpers work and build custom Handlebars helpers using ghost.helperService. This guide covers registering helpers for your Ghost site.

- Tags: deep-dive
- Published: 2026-05-18

### [How Ghost Generates Pretty URLs and Manages URL Redirects](/TryGhost/Ghost/ghost-pretty-urls-url-redirects)

Discover how Ghost generates pretty URLs using permalink templates and manages redirects with Express middleware, ensuring efficient SEO and user experience.

- Tags: internals
- Published: 2026-05-18

### [How Ghost Implements Spam Prevention in Its API: Express-Brute and Knex Store Architecture](/TryGhost/Ghost/ghost-api-spam-prevention)

Learn how Ghost prevents API spam with express-brute and its Knex store architecture. Discover how request counters and HTTP 429 errors block unwanted traffic efficiently.

- Tags: internals
- Published: 2026-05-18

### [How Ghost Webhooks Work and How to Create Custom Webhooks](/TryGhost/Ghost/ghost-webhooks-custom-webhooks)

Explore Ghost webhooks explained. Learn how they function and get step-by-step guidance to create your own custom webhooks for seamless integrations.

- Tags: how-to-guide
- Published: 2026-05-18

### [Ghost Admin API Endpoints and Routing Pattern: A Complete Technical Guide](/TryGhost/Ghost/ghost-admin-api-endpoints-routing-pattern)

Explore Ghost's Admin API endpoints and routing pattern. Learn how Ghost uses Express routers to structure modular RESTful routes for CRUD operations and custom actions. Understand the admin API structure now.

- Tags: api-reference
- Published: 2026-05-18

### [How Custom Theme Settings Work and Are Cached in Ghost](/TryGhost/Ghost/ghost-custom-theme-settings-caching)

Explore how Ghost caches custom theme settings for the frontend and admin UI. Understand the two-tier system and database synchronization with CustomThemeSettingsService.activateTheme.

- Tags: internals
- Published: 2026-05-18

### [How Ghost's Settings Cache System Works and Handles Invalidation](/TryGhost/Ghost/ghost-settings-cache-invalidation)

Discover how Ghost's settings cache system works and handles invalidation. Learn how the CacheManager optimizes performance by reducing database lookups.

- Tags: internals
- Published: 2026-05-18

### [How Ghost Manages Database Migrations Using knex-migrator and DatabaseStateManager](/TryGhost/Ghost/ghost-database-migrations-knex-database-state-manager)

Discover how Ghost uses knex-migrator and DatabaseStateManager for seamless database migrations. Learn how it ensures efficient updates and maintains database integrity.

- Tags: internals
- Published: 2026-05-18

### [Ghost Boot Sequence Explained: From Cold Start to Running Server in TryGhost/Ghost](/TryGhost/Ghost/ghost-boot-sequence-initialization)

Explore the Ghost boot sequence in TryGhost Ghost. Understand the 10 initialization phases, from configuration to running server, governed by bootGhost() for a smooth platform startup.

- Tags: internals
- Published: 2026-05-18

### [How Ghost Handles Feature Flags in Labs: GA, Beta, and Private Tiers Explained](/TryGhost/Ghost/ghost-feature-flags-labs-tiers)

Understand how Ghost uses feature flags like GA, Beta, and Private tiers. Learn about labs.js and conditional UI components for managing features in Ghost Admin.

- Tags: internals
- Published: 2026-05-18

