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

@cusmoedge/lowcode-materials

v1.1.5

Published

Memory LowCode Materials

Readme

Memory Materials

🌟 Introduction

Memory Materials is the material library for Memory LowCodeEditor. This template provides a minimal setup to enable React to work with Vite, including HMR (Hot Module Replacement) and some ESLint rules.

✨ Usage Documentation

npm i @cusmoedge/lowcode-materials

🚀 Development Documentation

Install Memory CLI

npm install @cusmoedge/memory-cli -g

Generate Material Template

memory create [materialName]

Material Types

// Material types
type MaterialType = 'unit' | 'area' | 'special'

// unit ---- Unit-level materials, such as Button, Input
// area ---- Area-level materials, such as Page, Container
// special ---- Special materials, such as FormItem, which can only be used inside a Form

Material Configuration

// A material will generate both dev and prod configurations for the editing and preview environments
MaterialConfig = {
    name: "test",  // Component name
    defaultProps: {},  // Default properties, can be configured as needed
    setter: [],  // Setters, can be added if needed
    desc: "test component description",  // Description of the component, displayed in the material library
    stylesSetter: [],  // Style setters, can be added if needed
    dev: {},  // Development environment configuration, can be added as needed
    prod: {},  // Production environment configuration, can be added as needed
    events: [],  // Events, specific event objects can be added
    methods: []  // Methods, specific component methods can be added
}

Register Materials

// src/materials/index.ts
MaterialConfigs: {
        Container: ContainerConfig,
        Button: ButtonConfig,
        Page: PageConfig,
        Modal: ModalConfig,
        Table: TableConfig,
        TableColumn: TableColumnConfig,
        Form: FormConfig,
        FormItem: FormItemConfig,
        new: newConfig
    }

📦 Rollup Multi-Entry Build Configuration - Memory Materials

This configuration is for multi-entry bundling of the Memory Materials library. It supports UMD and ESM output formats. It also handles TypeScript, CSS, images, and generates TypeScript declaration files.

Key Features

  1. Multi-Entry Bundling

    • Recursively scan the ./src/materials directory to collect all potential entry files (e.g., index.tsx, index.ts, index.js).
    • Exclude specified directories (e.g., business).
  2. Output Formats:

    • UMD:A universal format for both browser and Node.js environments.
    • ESM:A format for modern browsers and build tools.
  3. Common Configuration

    • Use the TypeScript plugin to transpile .tsx and .ts files.
    • Use the PostCSS plugin to handle Sass and auto-prefixing.
    • Use the Babel plugin to ensure compatibility with older browsers (e.g., IE11).
    • Use the Image plugin to handle image imports.
  4. TypeScript Declaration Files

    • Generate .d.ts files for TypeScript users.
  5. Clean Build Directory:

    • Automatically delete the dist directory before starting the build to ensure a clean output.
  6. Build Completion Log

    • Track the completion of all bundling tasks and print a success message when all tasks are finished.