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

@dblimp/core

v1.0.3

Published

Core framework components

Readme

@dblimp/core

Núcleo del framework DBLimp. Proporciona el motor de renderizado declarativo Goat, la jerarquía de componentes base, controladores de vista, enrutamiento mediante esquemas y contenedores fundamentales.

Instalación

npm install @dblimp/core
# o con yarn
yarn add @dblimp/core

Dependencias de pares (Peer Dependencies)

  • react: ^18.3.1 || ^19.0.0
  • react-dom: ^18.3.1 || ^19.0.0
  • react-router-dom: ^7.0.0
  • dbl-utils: ^1.0.12

Características Principales

  1. Goat Engine (Goat): Motor declarativo que transforma estructuras JSON / objetos JS en componentes React en tiempo de ejecución, gestionando referencias $props, resoluciones automáticas y mutaciones dinámicas.
  2. Jerarquía de Componentes Base:
    • Component: Clase base para componentes con soporte para mutaciones y ciclo de vida de estilos.
    • ComplexComponent: Soporta esquemas anidados con slots y reglas de sustitución.
    • ComplexResponsiveComponent: Agrega detección de dimensiones y puntos de interrupción responsivos.
  3. Controladores:
    • Controller: Componente desacoplado para coordinar estados y vistas hijo.
    • TitleController: Controlador con encabezado integrado.
    • appCtrl: Bus central de eventos y estado de la aplicación.
  4. Enrutamiento por Esquema:
    • Route, SchemaController, withRouteWrapper: Generación de rutas React Router a partir de definiciones declarativas.
  5. Formularios y Campos Base:
    • Form: Manejador de estado y validaciones de formularios.
    • Campos desacoplados: AutocompleteField, CheckboxField, DateRangeField, Field, GroupField, HiddenField, JsonEditorField, NoWrapField, PaginationField, RadioField, SelectField, TextareaField.
    • Grupos: Group, CardGroup, GridGroup.
  6. Contenedores Esenciales:
    • Container, DetailsContainer, FormContainer, GoatContainer, GridContainer, ListContainer, AutoResponsiveContainer, FullscreenContainer, ProportionalContainer, ScrollContainer.
  7. Medios:
    • Image, Svg, SvgImports, Video.

Ejemplos de Uso

1. Renderizado declarativo con Goat

import React from "react";
import { Goat, addComponents } from "@dblimp/core";

const schema = {
  name: "profile-card",
  component: "Container",
  classes: "profile-wrapper",
  content: [
    {
      name: "avatar",
      component: "Image",
      src: "https://example.com/avatar.jpg",
      alt: "User Avatar"
    },
    {
      name: "user-name",
      tag: "h2",
      content: "John Doe"
    }
  ]
};

export const Profile = () => {
  const goat = new Goat({ name: "profile" });
  return <div>{goat.buildContent(schema)}</div>;
};

2. Registrar componentes personalizados en el registro de Goat

import { addComponents } from "@dblimp/core";
import MyCustomWidget from "./MyCustomWidget";

addComponents({
  MyCustomWidget
});

3. Crear un controlador

import React from "react";
import { Controller } from "@dblimp/core";

export default class DashboardController extends Controller {
  static jsClass = "DashboardController";

  content() {
    return (
      <div className="dashboard">
        <h1>Dashboard Central</h1>
        {super.content()}
      </div>
    );
  }
}

Licencia

ISC