🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@caleblawson/blog-shell

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@caleblawson/blog-shell

Reusable blog shell package for multi-tenant blog generation

latest
npmnpm
Version
0.3.3
Version published
Maintainers
1
Created
Source

@caleblawson/blog-shell

A reusable blog shell package that provides components and utilities for creating branded blogs. This package is designed for multi-tenant blog generation systems.

Installation

npm install @caleblawson/blog-shell

Usage

Components

import Header from "@caleblawson/blog-shell/Header";
import PostsIndexClient from "@caleblawson/blog-shell/PostsIndexClient";
import PostCard from "@caleblawson/blog-shell/PostCard";

Server Functions

import { loadPosts, loadSite } from "@caleblawson/blog-shell/server";

Utility Functions

import {
  defineBrandConfig,
  createBlogShell,
} from "@caleblawson/blog-shell/utils";
// Note: createBlogShell is also available from the main export for backward compatibility
import { createBlogShell } from "@caleblawson/blog-shell";

Styles

@import "@caleblawson/blog-shell/styles/globals.css";

API

Components

  • Header - Navigation header with mobile menu
  • PostsIndexClient - Client-side posts listing with search and filtering
  • PostCard - Post preview card with multiple variants

Utilities

  • loadPosts() - Load posts from database
  • loadSite() - Load site configuration
  • createBlogShell(config) - Initialize blog shell with branding

Build Process

The package automatically processes CSS during build:

  • CSS Processing: The build script processes src/index.css with Tailwind CLI to generate all necessary utilities
  • Asset Copying: Processed CSS is copied to dist/styles/globals.css with Tailwind directives removed
  • TypeScript: Component types are generated for better development experience

The resulting package exports processed CSS that can be imported directly without requiring consumers to configure Tailwind.

Development

This package is part of the blog-generator monorepo. To build:

npm run build

To publish:

npm run prepublishOnly
npm publish --access public

FAQs

Package last updated on 18 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts