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

@rafichandra/dynamic-builder-ui

v1.0.1

Published

Vue 3 Dynamic UI Component Library powered by Shadcn and Reka UI

Readme

Dynamic Builder UI (Shadcn-Vue based)

Library Vue 3 komponen modern berbasis Shadcn UI & Reka UI yang dapat digunakan di berbagai framework (Vue, React, Angular, Svelte, Micro-frontend, dll.) untuk membuat Dynamic Form, Smart DataTable, BPMN Workflow Viewer, Leaflet Map Picker, Chart.js Dashboard, dan UI Controls otomatis dari JSON schema.


🚀 Fitur Utama

  • 🎨 Shadcn UI Primitives – Dibangun di atas Reka UI & Tailwind CSS dengan dukungan tema Dark Mode & Light Mode.
  • 📋 DynamicForm & AutoLayoutForm – Generate form dinamis lengkap dari JSON schema, validasi real-time, multi-bahasa (ID/EN/KR), dan conditional rules via json-logic-js.
  • 📊 DataTable & AutoLayoutDatatable – Tabel cerdas dengan fitur sorting, filtering per kolom, pagination, pencarian cepat, ekspor CSV, dan permission per action.
  • 🧩 Web Components (Micro-Frontend) – Tersedia custom elements <micro-dynamic-form> dan <micro-dynamic-datatable> untuk integrasi framework-agnostic.
  • 🗺️ Leaflet Map Picker (DCodeMapField) – Penempatan pin lokasi interaktif, pencarian alamat OpenStreetMap, dan deteksi GPS.
  • 🔄 BPMN Workflow Simulation (DCodeWorkflowBpmn) – Viewer diagram BPMN 2.0 interaktif dengan animasi token trace simulation.
  • 📈 Chart.js & Dashboard Cards (DCodeChart, CardSummary, DashboardActivityCard) – Grafik bar, line, pie, radar, donut dan kartu metrik KPI.
  • ✍️ Rich Text Editor (DCodeTextEditor) – Editor format teks kaya dengan headings, lists, dan visual styling.
  • ⚡ Logic Registry & API Adapter – Integrasi custom API host project via setApiConfig() dan custom handler registry via registerLogic().

📦 Instalasi

# npm
npm install dynamic-builder-ui

# pnpm
pnpm add dynamic-builder-ui

# yarn
yarn add dynamic-builder-ui

⚡ Konfigurasi API

Gunakan setApiConfig pada entry point aplikasi untuk menghubungkan library ke backend atau interceptor Axios host:

import { createApp } from 'vue'
import App from './App.vue'
import DynamicUI, { setApiConfig } from 'dynamic-builder-ui'
import 'dynamic-builder-ui/style.css'
import axiosInstance from './plugins/axios'

const app = createApp(App)

setApiConfig({
  apiBaseUrl: import.meta.env.VITE_API_BASE_URL,
  apiClient: async (url, method, data) => {
    return axiosInstance({ url, method, data })
  },
  getAuthToken: () => localStorage.getItem('access_token'),
})

app.use(DynamicUI)
app.mount('#app')

📋 Contoh Penggunaan: Dynamic Form

<script setup lang="ts">
import { ref } from 'vue'
import { DynamicForm } from 'dynamic-builder-ui'

const formSchema = {
  title: 'Formulir Registrasi Karyawan',
  description: 'Contoh form dinamis berbasis JSON schema.',
  columns: 2,
  fields: [
    {
      key: 'name',
      component: 'DCodeTextField',
      model: 'name',
      required: true,
      props: { label: 'Nama Lengkap', placeholder: 'Masukkan nama...' }
    },
    {
      key: 'salary',
      component: 'DCodeCurrencyField',
      model: 'salary',
      props: { label: 'Gaji Bulanan', currency: 'Rp ' }
    },
    {
      key: 'department',
      component: 'DCodeAutoComplete',
      model: 'department',
      props: {
        label: 'Departemen',
        options: [
          { label: 'Engineering', value: 'tech' },
          { label: 'Marketing', value: 'marketing' }
        ]
      }
    }
  ]
}

const model = ref({ name: 'Rafi Chandra', salary: 15000000 })

function onSubmit(data: any) {
  console.log('Saved:', data)
}
</script>

<template>
  <DynamicForm :schema="formSchema" :model="model" @submit="onSubmit" />
</template>

📊 Contoh Penggunaan: Smart DataTable

<script setup lang="ts">
import { ref } from 'vue'
import { DataTable } from 'dynamic-builder-ui'

const columns = [
  { key: 'id', title: 'ID', sortable: true, width: '100px' },
  { key: 'name', title: 'Customer Name', sortable: true },
  { key: 'revenue', title: 'Total Spend', type: 'currency', sortable: true },
  { key: 'status', title: 'Status', type: 'badge', badgeVariant: 'success' }
]

const data = ref([
  { id: '001', name: 'PT Telkom Indonesia', revenue: 250000000, status: 'Active' },
  { id: '002', name: 'Bank Mandiri', revenue: 480000000, status: 'Active' }
])
</script>

<template>
  <DataTable :columns="columns" :data="data" selectable has-actions />
</template>

🧩 Penggunaan Web Components (Micro-Frontend / Vanilla / React / Angular)

<!-- Load CSS & Script -->
<link rel="stylesheet" href="/node_modules/dynamic-builder-ui/dist/dynamic-builder-ui.css">
<script type="module" src="/node_modules/dynamic-builder-ui/dist/webcomponents/dynamic-ui.es.js"></script>

<!-- Gunakan Custom Elements -->
<micro-dynamic-form layout-code="EMPLOYEE_FORM"></micro-dynamic-form>
<micro-dynamic-datatable layout-code="USER_MANAGEMENT_TABLE"></micro-dynamic-datatable>

🛠️ Scripts & Development

  • npm run dev – Menjalankan Interactive Showcase & Component Playground
  • npm run build:lib – Mem-bundle library ESM & UMD
  • npm run build:webcomponent – Mem-bundle Web Components micro-frontend
  • npm run build:all – Menjalankan seluruh proses build secara otomatis