Hysen Labs
Open-source project
TryGhost/framework avatar
TryGhost

framework

A collection of handy components for building Node.js applications

37 stars26 forksJavaScriptMIT
DEEP OPEN-SOURCE ANALYSIS

Ghost framework packages shared libraries for Node.js services

Ghost framework is a monorepo of @tryghost scoped packages used across Ghost services, apps and tooling. Each package lives under packages and ships its own README with usage examples.

What is inside the monorepo

The repository collects the internal libraries that power Ghost, organized as separate packages under packages. The README points to api framework for API request pipeline helpers, errors for shared Ghost error types, security for token, password and identifier helpers, and express test for HTTP test helpers. Consumers install just the package they need from npm rather than the whole tree, and each package documents its own examples.

Development workflow

The monorepo is managed with Nx and uses corepack pinned pnpm at the root. A top level pnpm setup installs external dependencies and links internal ones, while pnpm dev acts as a placeholder and package specific scripts run from each package directory. Linting uses oxlint across all packages, formatting uses oxfmt for JavaScript, TypeScript, JSON and Markdown, and tests run through Nx with a dedicated continuous integration target.

Releasing packages

Release commands such as pnpm ship patch, pnpm ship minor and pnpm ship major bump every package in packages to the same version by default. A release can be scoped to specific packages with a projects argument listing npm package names, and a dry run previews the bump without committing. Continuous integration publishes packages through npm Trusted Publishing using OpenID Connect, with provenance attestations enabled and only unpublished versions sent to npm.

Editorial conclusion

Ghost framework is copyrighted by the Ghost Foundation from 2013 to 2026 and is released under the MIT license. Its packages publish to npm.

DEEP OPEN-SOURCE ANALYSIS

Official sources

Community notes

Community notes