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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@giaminh/sho-lpb-core

v1.0.31

Published

A powerful React page builder library with drag-and-drop, resizable blocks, and visual editing capabilities

Readme

@giaminh/sho-lpb-core

A powerful React page builder library with drag-and-drop, resizable blocks, and visual editing capabilities. Build landing pages and web interfaces with an intuitive visual editor.

npm version npm downloads

Features

  • Visual Editor - Drag-and-drop interface for building pages visually
  • 🎯 Block System - Pre-built blocks (Container, Section, Column, Text, Button, etc.)
  • 📐 Resizable Blocks - Interactive resizing with visual guidelines
  • 🎨 Style Management - Built-in CSS property management and styling
  • 🔄 Undo/Redo - Full history support with temporal state management
  • 🎭 Responsive - Breakpoint-based responsive design support
  • Performance - Optimized with Zustand for state management

Installation

```bash

With Bun (recommended)

bun add @giaminh/sho-lpb-core

With npm

npm install @giaminh/sho-lpb-core

With yarn

yarn add @giaminh/sho-lpb-core

With pnpm

pnpm add @giaminh/sho-lpb-core ```

Peer Dependencies

This library requires React 18+:

```json { "react": "^18.3.1", "react-dom": "^18.3.1" } ```

Quick Start

```tsx import { Editor } from '@giaminh/sho-lpb-core'; import { PageViewer, SectionViewer, ColViewer, ButtonViewer, TextViewer, ContainerViewer } from '@giaminh/sho-lpb-core';

// Define your block views const BLOCK_VIEWS = { page: PageViewer, section: SectionViewer, col: ColViewer, button: ButtonViewer, text: TextViewer, container: ContainerViewer, };

function App() { return (

export default App; ```

State Management

useBlockStore

Manages block data and hierarchy.

```tsx import { useBlockStore } from '@giaminh/sho-lpb-core';

const blocks = useBlockStore((state) => state.blocks); const addBlock = useBlockStore((state) => state.addBlock); const removeBlock = useBlockStore((state) => state.removeBlock); ```

useBuilderStore

Manages editor UI state.

```tsx import { useBuilderStore } from '@giaminh/sho-lpb-core';

const selectedBlockId = useBuilderStore((state) => state.selectedBlockId); const selectBlock = useBuilderStore((state) => state.selectBlock); ```

Development Scripts

For contributors and maintainers:

Version Management

```bash

Increment PATCH version (1.0.1 → 1.0.2)

Use for bug fixes

bun run version:patch

Increment MINOR version (1.0.1 → 1.1.0)

Use for new features (backward compatible)

bun run version:minor

Increment MAJOR version (1.0.1 → 2.0.0)

Use for breaking changes

bun run version:major ```

Release & Publish

```bash

Release PATCH (bug fixes)

- Bump version

- Build library

- Publish to npm

- Push git tags

bun run release:patch

Release MINOR (new features)

bun run release:minor

Release MAJOR (breaking changes)

bun run release:major

Quick release (defaults to patch)

bun run release ```

Manual Publish

```bash

Build library only

bun run build:lib

Publish without version bump

bun run pub ```

Release Workflow Examples

Fix a Bug

```bash

1. Fix the bug

2. Release patch version

bun run release:patch

Output: 1.0.1 → 1.0.2 → published ✅

```

Add New Feature

```bash

1. Implement feature

2. Release minor version

bun run release:minor

Output: 1.0.1 → 1.1.0 → published ✅

```

Breaking Changes

```bash

1. Make breaking changes

2. Release major version

bun run release:major

Output: 1.0.1 → 2.0.0 → published ✅

```

Controlled Release

```bash

Step 1: Update version only

bun run version:minor

Step 2: Test build

bun run build:lib

Step 3: Verify & publish when ready

bun run pub ```

Semantic Versioning

We follow Semantic Versioning:

  • PATCH (1.0.1 → 1.0.2): Bug fixes, no API changes
  • MINOR (1.0.1 → 1.1.0): New features, backward compatible
  • MAJOR (1.0.1 → 2.0.0): Breaking changes

TypeScript Support

Full TypeScript support with type definitions included.

```tsx import type { Auto_BlockData, Auto_BlockType } from '@giaminh/sho-lpb-core'; ```

License

MIT License - see LICENSE file

Links


Made with ❤️ by GiaMinh Media