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

@k-studio-pro/engine

v0.7.108

Published

Kajabi Studio engine — block library, renderer, theme exporter, and app shell shared between master and thin clients.

Downloads

1,813

Readme

@k-studio-pro/engine

The block library, renderer, and Kajabi theme exporter that powers Kajabi Studio (the master app) and every thin-client remix.

This package is consumed by:

  • Master (kajabi-studio-max) — the Lovable project where this engine is authored. It re-exports the package as @/blocks and @/engines via Vite aliases, so existing imports keep working.
  • Thin clients — per-expert remix projects that build sites for one client. They install this package and import the same surface.

Install

bun add @k-studio-pro/engine

React and React DOM are declared as peerDependencies, so the consumer's React copy is used. Do not pre-bundle this package with Vite — see Vite setup below.

Usage

import {
  exportFromTree,
  triggerDownload,
  HeaderSection,
  ContentSection,
  FooterSection,
  Text,
  CallToAction,
  // ...etc
} from '@k-studio-pro/engine';

const tree = (
  <>
    <HeaderSection>{/* logo + menu + cta */}</HeaderSection>
    <ContentSection name="Hero">{/* blocks */}</ContentSection>
    <FooterSection>{/* logo + links + copyright */}</FooterSection>
  </>
);

const blob = await exportFromTree(tree, { baseTheme: 'streamlined-home' });
triggerDownload(blob, 'site.zip');

For multi-page sites, pass a map keyed by Kajabi template name:

const blob = await exportFromTree(
  { index: homeTree, about: aboutTree, contact: contactTree },
  { baseTheme: 'streamlined-home-pro' },
);

Vite setup

This package ships raw TypeScript source (no build step) and consumes React. If Vite pre-bundles it via optimizeDeps, you'll end up with two copies of React — hooks resolve to null and the app blanks out with Cannot read properties of null (reading 'useEffect').

Add to your vite.config.ts:

export default defineConfig({
  // ...
  optimizeDeps: {
    exclude: ['@k-studio-pro/engine'],
  },
});

This forces Vite to process the package through the same React instance as the rest of your app. Hard refresh the preview after the change to clear the cached optimized deps.

Future: once the package ships pre-built ESM with proper externals, this step will go away.

Releases

Versions are published automatically by the GitHub Action in .github/workflows/publish-engine.yml whenever packages/engine/package.json's version field changes on the default branch. To cut a release: bump the version, save, and the bidirectional GitHub sync pushes the commit. The Action then publishes to npm.

License

UNLICENSED — internal Kajabi Studio package.