Files
kuentagym/website
dsantillan 22654c61fc
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Podcasts: en español solamente, y se acuerdan de dónde ibas
Música tiene una sección **Podcasts**: programas por categoría —Salud y fitness,
Deporte, Comedia, Noticias, Historia, Crímenes reales, Ciencia, Tecnología,
Sociedad y cultura, Negocios, Ficción, Educación, Música, Ocio— que suenan mientras
entrenás y siguen donde los dejaste. Sin dependencias nuevas y sin clave de API: el
directorio de Apple es público.

**En español se comprueba, no se supone.** La tienda dice dónde se *vende* un
podcast, no en qué idioma está —en el ranking español de comedia hay uno en catalán
y en el argentino uno en inglés—, así que se lee el `<language>` del feed de cada
programa (los primeros 64 KB, con una petición `Range`: el idioma está en las
primeras líneas) y se descarta lo que no sea español. Un feed sin etiqueta se queda:
feeds genuinamente españoles la omiten, y tirarlos por una omisión sería sacar
podcasts buenos de la lista. La respuesta cuenta cuántos quedaron afuera y por qué
(`skipped`), así que una lista corta nunca es un misterio, y abrir un programa en
otro idioma se contesta con `spanish:false` en vez de con una lista vacía.

Es la otra mitad de la radio y es lo contrario en todo lo que le importa al
reproductor: un podcast es un **archivo** —tiene principio, final y un minuto en el
que ibas—. Por eso hay un módulo de reglas puras (`lib/podcast-view.js`: dónde
retomar, qué cuenta como escuchado, cuál sigue, cuántas posiciones se guardan) y
por eso `lib/radio-player.js` pasa a ser `lib/player.js`: **un solo elemento de
audio** para las dos cosas, que es lo que impide que una emisora y un episodio suenen
a la vez. La barra crece línea de progreso, −15 s, +30 s, siguiente episodio y reloj;
la posición se guarda por perfil (con tope de 200, lo más nuevo primero) en pausa, al
parar, al terminar y cuando la app se va al fondo, porque con la pantalla bloqueada
iOS suspende los temporizadores y un guardado sólo desde el tick perdería lo
escuchado con el teléfono guardado. Media Session muestra episodio, programa y
progreso en la pantalla bloqueada.

Nada se descarga y nada pasa por el servidor: el episodio llega como la URL del
`enclosure` y el audio va de quien lo publica al teléfono. Acá no hay lista blanca
posible —un feed vive en cualquier host—, así que la puerta es **https, host real y
nunca una dirección privada**, comprobada en la URL y en dónde terminó el pedido, con
el cuerpo leído a tope y la conexión cortada al llegar: este contenedor vive adentro
de una casa.

Verificado con datos reales: 20 programas en español por categoría (idiomas es, es-ES,
es-mx), un feed de 40 episodios parseado, un feed en inglés contestado como
`spanish:false` y la dirección de metadatos rechazada con 400 sin hacer el pedido.

Fuera de los podcasts: la página de la API ocultaba `health` y `music` enteras —el
generador sólo dibuja las secciones de su tabla de etiquetas—, así que ahora están,
con radio y podcasts incluidas.
2026-09-23 21:11:20 -04:00
..

KuentaGYM website

Source of the project website — plain hand-written HTML/CSS/JS, no build step, served as static files. It is not part of any pipeline here: .gitea/workflows/ builds and pushes the container images and nothing else, and this site is not deployed for this fork. Every page's canonical and og: URLs assume it is served alongside the app at https://gym.dploy.lol.

Not in this folder (added when the pages are published):

  • img/ — built by build-images.sh <dist>/img: the five screenshots from ../assets/screenshots/ as PNG plus WebP at 480/600/1170 px (served through <picture>), banner.png, and social.jpg (1200×630, the og:image on every page)
  • icon-180.png / icon-512.png — copied from ../frontend/public/ (the same icons the PWA uses, so the browser tab, home screen and app all match)

There is no KuentaGYM.apk and no demo/ here. This fork publishes no APK, so the mobile app is whatever you build from ../frontend yourself (see ../docs/MOBILE.md); there is no public demo instance, so nothing is framed or linked as one. Both belonged to the upstream project, and the sections and links that promised them are gone.

Navigation is a topic rail (.side): one title/subtitle list of everything on the site, a fixed column beside the page from 1300 px up and the hamburger sheet below that, with a scrollspy lighting the section under the reader. The top bar keeps only the brand, the source repository and the "Get started" button.

site.js carries the pieces that are left, each failing soft so the page is complete without any of them: the two panel controllers (header sheet, contents drawer), the scrollspy and the chapter groups, the scroll reveals, the feature-rail arrows and the hero intro handoff. It makes no third-party request. The repo star/issue counts, the Discord member count and the About page's release timeline were removed with the upstream links they belonged to: they read api.github.com and discord.com, which know nothing about this fork's repository — and the About page's timeline is now static, marked up in the HTML.

Every page starts with a "Skip to content" link (.skip, visible on focus) that targets <main id="main">. Screenshots change under the same file name, and nginx caches images for seven days — bump the name if a new one must show up at once.

api.html is the one generated file in here: node scripts/build-api-docs.mjs rewrites it from ../api/openapi.yaml. Edit the spec, re-run the script, commit both — never hand-edit api.html, the next run overwrites it. The page is static HTML in this site's own design (no Swagger UI, nothing rendered at view time); the only script of its own it carries is the contents drawer and the card expand/collapse.

api.html is generated — never edit it by hand. Its whole chrome (nav, nav sheet, contents rail, footer, the "Get started" button, the no-analytics comment, the cache-busters, the spec download link) lives in scripts/build-api-docs.mjs, outside this folder, which renders the page from ../api/openapi.yaml. Change the generator, then re-run node scripts/build-api-docs.mjs; anything typed into api.html is overwritten wholesale. Keep the four pages' ?v=N values in step when styles.css or site.js changes — three pages carry their own tags, and the generator writes api.html's.

styles.css and site.js are cache-busted with ?v=N — nginx serves the site with no-cache, must-revalidate, but the query bump is what saves a Cloudflare edge from handing out an old stylesheet with new markup. Bump it on every change.