Skip to main content
ClaudeWave
ilopezluna avatar
ilopezluna

entiende-tu-factura

View on GitHub

Sube tu factura de la luz y entiende qué pagas: potencia, energía e impuestos. 100% en tu navegador, sin enviar datos.

PluginsOfficial Registry1 stars0 forksTypeScriptApache-2.0Updated today
ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Last scanned: 9/12/2026
Install as a Claude Code plugin
Method: Clone
Claude Code
/plugin marketplace add ilopezluna/entiende-tu-factura
/plugin install entiende-tu-factura
1. Inside Claude Code, add the marketplace and install the plugin with the commands above.
2. Follow any post-install configuration from the README.
3. Restart the session if commands or hooks do not show up immediately.
Use cases

Plugins overview

# Entiende tu factura

Aplicación **100% cliente** (sin backend) que explica tu factura de la luz. Sube tu
factura (PDF o imagen), el navegador lee el código QR de la CNMC y te muestra un
desglose claro de lo que estás pagando: potencia, energía, impuestos y contrato.

👉 **Pruébala en vivo: [entiende-tu-factura](https://ilopezluna.github.io/entiende-tu-factura/)**

> **Privacidad:** todo el procesamiento ocurre en tu navegador. Tu factura nunca
> se envía a ningún servidor.

## Stack

- **React 19 + Vite + TypeScript**
- **Tailwind CSS v4**
- Extracción de QR/PDF con `jsqr` + `pdfjs-dist`
- Tests con **Vitest**

## Para agentes

Si prefieres que sea tu agente quien lea la factura, hay un servidor MCP que expone la
misma lógica: [`factura-luz-mcp`](mcp/README.md). Se ejecuta en local, así que la factura
tampoco sale de tu ordenador.

```bash
claude plugin marketplace add ilopezluna/entiende-tu-factura
claude plugin install factura-luz@entiende-tu-factura
```

O, si prefieres solo el servidor MCP sin el comando `/entender`:

```bash
claude mcp add factura-luz -- npx -y factura-luz-mcp
```

## Más servicios

Si quieres comparar ofertas y ahorrar en tu factura, visita
**[InvoiceDown](https://www.invoicedown.com/)**.

## Requisitos

- Node.js (ver [`.nvmrc`](.nvmrc) → 22.20.0)

## Desarrollo

```bash
npm install
npm run dev        # http://localhost:5173
```

## Scripts

| Script              | Descripción                                 |
| ------------------- | ------------------------------------------- |
| `npm run dev`       | Servidor de desarrollo (Vite)               |
| `npm run build`     | Typecheck + build de producción a `dist/`   |
| `npm run preview`   | Sirve el build de producción                |
| `npm test`          | Tests (Vitest)                              |
| `npm run typecheck` | Comprobación de tipos sin emitir            |
| `npm run format`    | Formatea con Prettier                       |
| `npm run validate`  | `format:check` + `typecheck` + `test` + MCP |
| `npm run build:mcp` | Compila el servidor MCP a `mcp/dist`        |
| `npm run test:mcp`  | Typecheck + tests del servidor MCP          |

## Estructura

```
src/
├── lib/cnmc/          # Extracción y cálculo (lógica CNMC propia)
│   ├── extraction/    # scan/pdf (agnósticos) + extractor (navegador) + validadores
│   ├── parsing/       # parseo de parámetros del QR
│   ├── types/         # QrParameters + enums
│   ├── content/       # vocabulario y explicaciones en español
│   ├── format/        # formateo de números en es-ES
│   ├── utils/         # cálculo de costes y análisis de potencia
│   └── __tests__/     # tests de lógica pura
├── styles/            # Tailwind v4 + design tokens
├── App.tsx
└── main.tsx
mcp/                   # servidor MCP (paquete npm factura-luz-mcp)
```

`src/lib/cnmc/` es compartido: la web y el servidor MCP calculan con el mismo código.
Solo `extraction/extractor.ts` depende del navegador; `extraction/scan.ts` y
`extraction/pdf.ts` no tocan el DOM y se reutilizan en Node.

## Despliegue

Push a `main` despliega automáticamente a GitHub Pages
([`.github/workflows/deploy.yml`](.github/workflows/deploy.yml)), disponible en
**https://ilopezluna.github.io/entiende-tu-factura/**. El `base` de Vite es
relativo (`./`), por lo que funciona tanto en `usuario.github.io/<repo>/` como en un
dominio propio.

What people ask about entiende-tu-factura

What is ilopezluna/entiende-tu-factura?

+

ilopezluna/entiende-tu-factura is plugins for the Claude AI ecosystem. Sube tu factura de la luz y entiende qué pagas: potencia, energía e impuestos. 100% en tu navegador, sin enviar datos. It has 1 GitHub stars and its last recorded update is dated 2026-09-11.

How do I install entiende-tu-factura?

+

You can install entiende-tu-factura by cloning the repository (https://github.com/ilopezluna/entiende-tu-factura) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is ilopezluna/entiende-tu-factura safe to use?

+

Our security agent has analyzed ilopezluna/entiende-tu-factura and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains ilopezluna/entiende-tu-factura?

+

ilopezluna/entiende-tu-factura is maintained by ilopezluna. The last recorded GitHub activity is dated 2026-09-11, with 2 open issues.

Are there alternatives to entiende-tu-factura?

+

Yes. On ClaudeWave you can browse similar plugins at /categories/plugins, sorted by popularity or recent activity.

Deploy entiende-tu-factura to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: ilopezluna/entiende-tu-factura
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ilopezluna-entiende-tu-factura)](https://claudewave.com/repo/ilopezluna-entiende-tu-factura)
<a href="https://claudewave.com/repo/ilopezluna-entiende-tu-factura"><img src="https://claudewave.com/api/badge/ilopezluna-entiende-tu-factura" alt="Featured on ClaudeWave: ilopezluna/entiende-tu-factura" width="320" height="64" /></a>