npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@techrox/page-studio-blocks

v1.0.0

Published

50 production-ready content blocks (Hero, Pricing, FAQ, Contact, …) plus the Puck config builder for @techrox/page-studio. SSR-safe, brand-themable via CSS variables, host-extensible.

Readme

@techrox/page-studio-blocks

50 production-ready content blocks + the Puck config builder + the StudioProvider context.

Shared by both @techrox/page-studio (editor) and @techrox/page-studio-renderer (public render).

pnpm add @techrox/page-studio-blocks
pnpm add @puckeditor/core antd @ant-design/icons   # peers

Block catalogue

| Category | Blocks | |---|---| | Page sections | Hero, SectionHeader, CTABanner, Banner, AnnouncementBar, InlineCTA | | Content | RichText, PrinciplesList, TwoColumn, ThreeColumn, ImageText, Quote, KeyValueList, Container, CodeBlock | | Cards | IconCards, MetricCards, ImageOverlayCards | | Pricing | PricingTable, PricingComparison | | Lists | StatsStrip, CountUpStats, PillarsRow, ApproachSteps, StepsVertical, ServicesGrid, TeamGrid | | Articles | ArticleFeatured, ArticleGrid, ArticleList | | Trust | LogoStrip, PressMentions, AwardsBar, TestimonialQuote, TestimonialGrid | | Interactive | FAQ, AccordionBlock, TabsBlock, Timeline, EventsList | | Media | VideoEmbed, ImageGallery, ImageCaption, MapEmbed | | Forms | ContactSection, NewsletterSignup, ContactInfo, SocialLinks | | Layout | Spacer, Divider, RawHtml |

Each block is a Puck-shaped object: { label, fields, defaultProps, render }.

Usage

import { createPuckConfig, PageStudioProvider } from '@techrox/page-studio-blocks';
import '@techrox/page-studio-blocks/styles.css';

const config = createPuckConfig();   // all 50 blocks + reveal animations

To swap or extend blocks:

import { createPuckConfig, defaultBlocks, Hero } from '@techrox/page-studio-blocks';
import { MyBlock } from './my-block';

const config = createPuckConfig({
  blocks: {
    ...defaultBlocks,
    Hero: MyCustomHero,   // override
    MyBlock,              // add
  },
  categories: {
    ...defaultCategories,
    Custom: { components: ['MyBlock'] },
  },
});

StudioProvider

Several blocks need host-provided primitives at render time. Wrap your editor and your renderer:

import { PageStudioProvider } from '@techrox/page-studio-blocks';
import NextLink from 'next/link';

<PageStudioProvider value={{
  Link: NextLink,                                    // optional, default <a>
  services: [{ slug, short, eyebrow, summary, icon }],
  site: { email, phone, social: { linkedin } },
  submitLead: async (payload) => { /* POST to your backend */ },
  subscribeNewsletter: async (payload) => { /* POST */ },
  track: (eventType, props) => analytics.capture(eventType, props),
}}>
  {/* <PageStudio /> or <PageStudioRender /> */}
</PageStudioProvider>

| Key | Type | Default | Used by | |---|---|---|---| | Link | Component<{ href, children, ... }> | <a> | Any block with links (Hero, CTABanner, ServicesGrid, …) | | services | Service[] | [] | ServicesGrid, ContactSection | | site | { email, phone, social } | { email: '', phone: '', social: {} } | ContactSection | | submitLead | (payload) => Promise<void> | throws | ContactSection | | subscribeNewsletter | (payload) => Promise<void> | throws | NewsletterSignup | | track | (type, props) => void | no-op | ContactSection (and any host-extended blocks) |

Service shape:

type Service = {
  slug: string;
  short: string;        // short label, shown in cards + the dropdown
  eyebrow?: string;
  summary?: string;
  icon: React.ComponentType;
};

Required host CSS

Blocks reference typography/layout classes the host provides. The full list:

| Class | Purpose | |---|---| | .tps-section, .tps-section-soft | Standard section wrapper + soft-background variant | | .tps-container | Max-width centered container | | .tps-hero, .tps-hero-inner | Hero block's gradient-halo variant | | .tps-service-hero | ContactSection's hero region | | .tps-eyebrow | Small caps eyebrow text | | .tps-h1, .tps-h2, .tps-h3 | Brand heading sizes | | .tps-lede | Lede paragraph | | .tps-form-card | ContactSection form card | | .tps-service-icon | Wrapper for service icons in ServicesGrid |

CSS variables (with --psd-* defaults in the package's styles.css):

| Variable | Default | |---|---| | --psd-primary | #0F766E | | --psd-primary-dark | #0B5550 | | --psd-accent | #F59E0B | | --psd-ink | #0F172A | | --psd-muted | #64748B | | --psd-line | #E2E8F0 | | --psd-bg-soft | #F8FAFC | | --psd-radius | 8px |

Many blocks also read --tps-* legacy variables for backwards compatibility with the original Page Studio host — alias these to your brand if you don't want to rewrite block code.

Exports

  • createPuckConfig({ blocks?, categories?, reveal?, root? })
  • defaultBlocks, defaultCategories, defaultOverrides, emptyPuckData
  • PageStudioProvider, useStudio, StudioLink
  • withReveal(block, animation) — wrap a block with a scroll-reveal animation
  • BlockThumbnail, BLOCK_DESCRIPTIONS — picker preview helpers
  • Every block by name (e.g. Hero, RichText, Spacer) for cherry-picking

License

MIT.