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

dex-syntax

v0.2.0

Published

Syntax highlighting and tooling starter for DEX server synthesis files.

Downloads

119

Readme

DEX Syntax

DEX Syntax es un paquete local para trabajar con archivos .dex, el lenguaje de sintesis para redisenar servidores de Discord.

Incluye:

  • resaltado para VS Code, Cursor, VSCodium y editores compatibles con TextMate
  • resaltado para nano
  • resaltado para Vim
  • bot Python minimo para extract y apply
  • auto-configuracion local para nano y vim/vi cuando se ejecute postinstall
  • logo local y estructura lista para empaquetar

DEX logo

Estructura

  • package.json: manifiesto de extension para editores compatibles con VS Code
  • language-configuration.json: comentarios, pares y configuracion basica
  • syntaxes/dex.tmLanguage.json: gramática principal
  • dex.nanorc: resaltado para nano
  • vim/: archivos de sintaxis y deteccion para Vim
  • python/: bot independiente y runtime minimo
  • scripts/: instaladores locales

Soporte actual

  • VS Code / Cursor / VSCodium
  • Nano
  • Vim
  • Cualquier editor capaz de abrir el paquete como referencia local

Instalar en nano

sh /data/data/com.termux/files/home/dex-syntax/scripts/install-nano.sh

Instalar en Vim

sh /data/data/com.termux/files/home/dex-syntax/scripts/install-vim.sh

Extension local para VS Code compatibles

  1. Abre la carpeta dex-syntax.
  2. Si vas a empaquetarla, usa tu flujo habitual de extensiones.
  3. Para pruebas locales, puedes cargar la extension desde la carpeta.

Bot Python independiente

Si no quieres usar el bot principal, el paquete incluye un bot simple en python/bot.py.

Comandos:

  • extract <txt|md|json|dex>
  • apply
  • apply yes
  • helpdex

Requisitos:

pip install -r /data/data/com.termux/files/home/dex-syntax/python/requirements.txt

Ejecucion:

export DEX_TOKEN="tu_token"
python /data/data/com.termux/files/home/dex-syntax/python/bot.py

Variables opcionales:

  • DEX_PREFIX: prefijo del bot, por defecto !

Auto-configuracion local

El paquete incluye scripts/postinstall.sh.

Ese script:

  • detecta si existe nano
  • detecta si existe vim o vi
  • instala automaticamente la configuracion disponible para cada editor detectado

Puedes ejecutarlo manualmente asi:

sh /data/data/com.termux/files/home/dex-syntax/scripts/postinstall.sh

CLI temporal del paquete

Tambien incluye una CLI para flujos rapidos sin mantener el bot principal activo:

python /data/data/com.termux/files/home/dex-syntax/python/cli.py invite --token TU_TOKEN
python /data/data/com.termux/files/home/dex-syntax/python/cli.py extract --token TU_TOKEN --guild-id GUILD_ID
python /data/data/com.termux/files/home/dex-syntax/python/cli.py preview ./MiServidor.dex
python /data/data/com.termux/files/home/dex-syntax/python/cli.py apply ./MiServidor.dex --token TU_TOKEN --guild-id GUILD_ID

Si no pasas --token, la CLI te lo pedira directamente en la terminal sin eco visible. Ese token se guarda de forma temporal en runtime y se elimina automaticamente al salir o cerrar la ejecucion.

Comandos disponibles:

  • invite: genera URL de invitacion, espera a que el bot entre, extrae archivos y se apaga solo
  • extract: extrae un servidor ya accesible por el bot
  • preview: muestra en terminal una vista tipo Discord de un archivo .dex/.txt/.md/.json
  • apply: aplica un plan a un servidor usando el token dado

Notas

  • El bot independiente es minimo y esta pensado para pruebas y automatizacion ligera.
  • El modulo principal del proyecto sigue teniendo mas funciones que este runtime reducido.
  • Si un archivo no es compatible con DEX, el flujo recomendado sigue siendo extraer primero desde Discord.