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

@crediblemark/build-ui

v0.25.15

Published

Visual Builder companion blocks for Crediblemark

Readme

@crediblemark/build-ui

The official companion visual blocks library for https://www.npmjs.com/package/@crediblemark/build . Packaged with 45+ highly polished, production-ready premium blocks (from business layouts, headers, hero blocks, to grids and custom pricing panels) to speed up your page-building workflow.

npm version License: MIT


⚡ Zero-Config Quick Start (Recommended)

The easiest way to integrate @crediblemark/build-ui into a project already using @crediblemark/build is by using the intelligent Crediblemark CLI.

Inside your project root, run:

npx credbuild add build-ui

This dynamic command will automatically:

  1. Detect your package manager (bun, pnpm, yarn, npm) and install @crediblemark/build-ui.
  2. Find your global CSS file (e.g. app/globals.css, src/index.css) and prepend the neat sidebar import stylesheet.
  3. Automatically generate a ready-to-use credbuild.config.tsx with all the companion presets imported.

🛠️ Manual Installation

If you prefer to configure the blocks manually, follow these three simple steps:

1. Install the Package

Add the library as a dependency to your React project:

bun add @crediblemark/build-ui
# or npm install @crediblemark/build-ui
# or pnpm add @crediblemark/build-ui

2. Import the Stylesheets

In your main global CSS stylesheet (e.g., app/globals.css, src/index.css), add the companion stylesheet import statement at the very top (before any other rules):

@import "@crediblemark/build-ui/sidebar-neat.css";

3. Register the Preset in your Config

Import and export buildUiPreset inside your editor configuration file credbuild.config.tsx:

import { buildUiPreset } from "@crediblemark/build-ui";

// Crediblemark Visual Editor Configuration
const config = buildUiPreset;

export default config;

🧩 Mixing Package Blocks & Custom Local Blocks

When you install @crediblemark/build-ui, all the 45+ companion blocks are installed inside your project's node_modules. This keeps your project's codebase completely clean and allows you to update the companion library effortlessly with a single command (npm update @crediblemark/build-ui) whenever new features or bug fixes are released.

If you want to create your own local custom blocks (e.g., in components/credbuild/) and mix them with the companion blocks, you can easily combine them inside credbuild.config.tsx:

import { buildUiPreset } from "@crediblemark/build-ui";
import MyLocalCustomHero from "@/components/credbuild/MyLocalCustomHero";

// Combine companion package blocks with your local custom blocks
const config = {
  ...buildUiPreset,
  components: {
    ...buildUiPreset.components,       // Expose all 45+ package blocks
    "my-local-hero": MyLocalCustomHero // Expose your custom local block
  }
};

export default config;

🎨 Block Library Highlights

@crediblemark/build-ui brings highly stylized, beautifully structured vanilla CSS responsive blocks to your visual builder:

  • Modular Sections: Rich Heading Blocks, Flex Columns, dynamic Container wrappers.
  • Thematic Elements: Feature Items with customizable icons, grid blocks, pricing models, and customizable buttons.
  • High-Fidelity Animations: Native support for micro-animations like fadeIn, slideUp, zoomIn, and slideRight built directly into the render blocks.
  • Aesthetic Precision: Tailored to adhere to Crediblemark's signature premium neutral-dark layouts.

🖼️ Media Library Setup (Next.js)

The companion blocks (like Hero sections and Galleries) utilize a built-in Media Picker which expects two Next.js API endpoints to function properly: /api/media for uploading/listing files, and /api/media/proxy for avoiding CORS issues on external images.

You must implement these endpoints in your project. Below is a simple local storage simulator (saving to public/uploads) you can use during development:

1. src/app/api/media/proxy/route.ts (CORS Proxy)

import { NextResponse } from 'next/server';

export async function GET(request: Request) {
  const url = new URL(request.url).searchParams.get('url');
  if (!url) return new NextResponse('Missing url parameter', { status: 400 });

  try {
    const response = await fetch(url);
    const buffer = await response.arrayBuffer();
    return new NextResponse(buffer, {
      headers: { 'Content-Type': response.headers.get('content-type') || 'image/jpeg' },
    });
  } catch (error) {
    return new NextResponse('Error fetching image', { status: 500 });
  }
}

2. src/app/api/media/route.ts (Uploads & Gallery)

import { NextResponse } from 'next/server';
import { writeFile, mkdir } from 'fs/promises';
import { join } from 'path';

let mediaStore: any[] = []; // In-memory database for dev

export async function GET() {
  return NextResponse.json({ data: mediaStore });
}

export async function POST(request: Request) {
  const file = (await request.formData()).get('file') as File;
  if (!file) return NextResponse.json({ error: "No file" }, { status: 400 });

  const buffer = Buffer.from(await file.arrayBuffer());
  const filename = `${Date.now()}-${file.name.replace(/[^a-zA-Z0-9.-]/g, '_')}`;
  
  await mkdir(join(process.cwd(), 'public', 'uploads'), { recursive: true });
  await writeFile(join(process.cwd(), 'public', 'uploads', filename), buffer);

  const mediaItem = {
    id: Date.now().toString(), filename: file.name,
    url: `/uploads/${filename}`, mimeType: file.type, size: file.size,
  };
  mediaStore = [mediaItem, ...mediaStore];
  
  return NextResponse.json(mediaItem);
}

📜 License

MIT © Rasyiqi Crediblemark