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

@aorizondo/lowcoder-agent-sdk-core

v0.3.1

Published

SDK TypeScript para crear aplicaciones Lowcoder desde código. Convierte llamadas fluent en el JSON DSL correcto que Lowcoder acepta, sin que el usuario tenga que conocer la estructura interna.

Readme

@aorizondo/lowcoder-agent-sdk-core

SDK TypeScript para crear aplicaciones Lowcoder desde código en lugar de arrastrar elementos.

Instalación

npm install @aorizondo/lowcoder-agent-sdk-core

Uso básico

import { LowcoderApp, LowcoderClient } from "@aorizondo/lowcoder-agent-sdk-core";

// 1. Construir la app
const app = new LowcoderApp("Mi Dashboard")
  .addText("title", { text: "## Bienvenido" })
  .addButton("refresh", { text: "Cargar", onClick: "loadData" })
  .addTable("table1", {
    data: "{{loadData.data}}",
    columns: [
      { title: "ID", dataIndex: "id" },
      { title: "Nombre", dataIndex: "name" },
    ],
  })
  .addFetchQuery("loadData", {
    url: "https://jsonplaceholder.typicode.com/users",
    triggerType: "automatic",
  });

// 2. Inspeccionar el DSL generado (sin desplegar)
console.log(app.toJSON());

// 3. Desplegar a una instancia Lowcoder
const client = new LowcoderClient({
  baseUrl: "https://tu-lowcoder.ejemplo.com",
  apiKey: process.env.LOWCODER_API_KEY!,
});
// orgId es opcional — se auto-detecta llamando /api/v1/users/me
const result = await app.deploy(client);
console.log(`https://tu-lowcoder.ejemplo.com/apps/${result.applicationInfoView.applicationId}/edit`);

API

LowcoderApp

Builder fluido para construir el DSL de una app.

Componentes (todos retornan this para chaining)

| Método | Descripción | | --- | --- | | addButton(id, opts) | Botón con text, onClick (nombre de query), disabled, loading | | addInput(id, opts) | Input de texto con label, placeholder, defaultValue | | addTextArea(id, opts) | Área de texto multilínea | | addNumberInput(id, opts) | Input numérico con min, max, step | | addText(id, { text }) | Markdown/HTML estático | | addTable(id, opts) | Tabla con data, columns, pageSize | | addSelect(id, opts) | Select con options: [{label, value}] | | addMultiSelect(id, opts) | Multi-select | | addCheckbox(id, opts) | Checkbox | | addSlider(id, opts) | Slider con min/max/step | | addDivider(id, opts) | Línea divisoria con title opcional | | addImage(id, { src }) | Imagen | | addContainer(id, opts) | Contenedor | | addCard(id, opts) | Card con sombra | | addLineChart(id, opts) | Line chart con data, xAxisKey, yAxisKeys | | addBarChart(id, opts) | Bar chart | | addPieChart(id, opts) | Pie chart con labelKey, valueKey, donut? | | addFunnelChart(id, opts) | Funnel chart | | addRadarChart(id, opts) | Radar chart | | addHeatmapChart(id, opts) | Heatmap | | addGaugeChart(id, opts) | Gauge con value, min, max, unit | | addProgress(id, opts) | Progress bar lineal | | addProgressCircle(id, opts) | Progress circular | | addTimer(id, opts) | Cronómetro / countdown | | addAvatar(id, opts) | Avatar con src o text | | addMermaid(id, { diagram }) | Diagrama Mermaid | | addIcon(id, opts), addIconButton(id, opts) | Iconos | | addLink(id, opts), addFloatingButton(id, opts) | Links y botones flotantes | | addJsonLottie(id, opts) | Animación Lottie | | addComponent(id, type, opts) | Genérico — usa cualquier compType nativo o de plugin |

Cualquier método de componente acepta at: { x, y, w?, h? } opcional para layout manual en grid de 24 columnas. Sin at, el SDK auto-posiciona con bin-packing.

Queries

| Método | Descripción | | --- | --- | | addFetchQuery(id, { url, method?, body?, triggerType? }) | Recomendado para APIs públicas. Genera JS query con fetch interno, sin necesitar datasource configurado | | addJsQuery(id, { script, triggerType? }) | JS query custom. El script debe return una Promise (sin await top-level) | | addRestQuery(id, opts) | REST query (requiere datasourceId configurado en la instancia) | | addSqlQuery(id, { sql, datasourceId, dbType? }) | SQL para mysql, postgres, mssql | | addQuery(id, type, opts) | Genérico para cualquier tipo de datasource |

Estado y configuración

| Método | Descripción | | --- | --- | | addTempState(name, initialValue) | Estado temporal accesible vía {{stateName.value}} | | withSettings({ description?, category?, gridPaddingX?, ... }) | Configuración general | | withPreload({ script?, css?, libs? }) | JS y CSS globales |

Salida

| Método | Descripción | | --- | --- | | build() | Retorna el LowcoderDSL (objeto JS) | | toJSON() | String JSON formateado | | deploy(client, orgId?, { publish?, folderId? }) | Crea la app en Lowcoder via API. orgId opcional — auto-detectado del workspace activo si se omite |

LowcoderClient

Cliente HTTP para la REST API de Lowcoder.

const client = new LowcoderClient({
  baseUrl: "https://lowcoder.example.com",
  apiKey: "...",       // O usar email + password
});

// Apps
await client.createApp({ orgId, name, applicationType: 1, editingApplicationDSL });
await client.updateApp(appId, dsl);
await client.getApp(appId);
await client.publishApp(appId);
await client.listApps(orgId);
await client.deleteApp(appId);

// Usuario y organizaciones (descubrir orgId)
await client.getCurrentUser();    // { id, currentOrgId, username, orgAndRoles, ... }
await client.getCurrentOrgId();   // "69b44d7a..." — el workspace activo
await client.listMyOrgs();        // [{ id, name, role, isCurrent }, ...] ordenadas

Expresiones {{ }}

En cualquier propiedad puedes usar JavaScript entre llaves dobles:

{
  data: "{{loadUsers.data}}",
  disabled: "{{!form1.valid}}",
  text: "Hola {{currentUser.name}}",
  options: "{{query.data.map(x => ({label: x.name, value: x.id}))}}",
}

Librerías globales: dayjs, lodash, numbro, uuid, papaparse.

Requisitos

  • Node.js >= 18
  • Lowcoder >= 2.7.0 (versiones anteriores tienen bug con queries JS — ver troubleshooting)

Datasources

El SDK también permite gestionar datasources (BD, APIs, SaaS) con builder fluido:

import { datasource } from "@aorizondo/lowcoder-agent-sdk-core";

const req = datasource("Prod Postgres")
  .postgres({ host: "...", database: "...", username: "u", password: "p" })
  .inOrg(orgId)
  .build();

const ds = await client.createDatasource(req);

// Y luego usar el ID en queries:
app.addSqlQuery("loadUsers", {
  sql: "SELECT * FROM users",
  datasourceId: ds.id,
  dbType: "postgres",
});

Soporta: postgres, mysql, mariadb, mssql, oracle, clickHouse, snowflake, mongodb, redis, es, smtp, restApi, graphql, googleSheets, y ~60 plugins JS (S3, Slack, Jira, OpenAI, Stripe, etc.) via .jsPlugin(pluginId, config).

Ver docs/datasources.md para detalles.

Documentación completa

Licencia

MIT © Antonio Orizondo Leyva