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

stingray-lang

v1.0.3

Published

Stingray - HTML + CSS + JS + React unified language. Extension: .stngr

Downloads

525

Readme

🐟 Stingray - HTML + CSS + JS + React in ONE file

A language where everything goes together. Write .stngr, get the web.

The Easiest Thing You'll Use

stingray init my-app     # Creates the entire project
cd my-app
stingray dev             # Starts dev server (auto-opens browser)

Have a .stngr file? Just pass it directly:

stingray app.stngr       # Compiles and opens automatically

Commands That Matter

| Command | What it does | |---------|----------| | stingray init <name> | Creates a ready-to-use project | | stingray dev | Dev server with hot reload + opens browser | | stingray build | Compiles for production | | stingray compile x.stngr | Compiles a file | | stingray run x.stngr | Compiles and executes | | stingray new component MyButton | Creates a component | | stingray new page Home | Creates a page | | stingray serve | Serves static files |

Shortcuts

sr init my-app        → stingray init my-app
stngr dev             → stingray dev
sb                    → stingray build
stingray app.stngr    → auto-compiles and opens

What is a .stngr file?

Everything in one. HTML, CSS, JS, and React in a single readable file:

component Counter {
  state {
    count = 0;
  }

  template {
    <div class="app">
      <h1>Counter: {count}</h1>
      <mdc-button @click="increment">+ Add</mdc-button>
      <mdc-button @click="decrement">- Subtract</mdc-button>
    </div>
  }

  script {
    function increment() { count++; }
    function decrement() { count--; }
  }

  style {
    .app { text-align: center; padding: 40px; }
    h1 { color: #0066cc; }
  }
}

Installation

Option 1: Automatic Installer (recommended)

# Installs everything: dependencies, PATH, file associations, VS Code
stingray --install

# Or with global npm
npm install -g stingray-lang

Option 2: Standalone Installer (.exe)

# Generate the installer
node bin/installer.js

# To create real .exe you need:
# Inno Setup: "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" Stingray.iss
# NSIS: makensis Stingray.nsi

Generates:

  • Stingray.iss → Inno Setup (compiles to .exe)
  • Stingray.nsi → NSIS (compiles to .exe)
  • Stingray-Installer.bat → Self-installer without dependencies
  • installer-dist/portable/ → Portable package (ZIP)

Option 3: Portable (no install)

node bin/installer.js portable
# Use: installer-dist/portable/start.bat

Option 4: From npm

npm install -g stingray-lang

System Integration

Windows

  • File association: double-click .stngr to compile
  • Context menu (right-click): Compile, Dev Server, Build
  • Drag and drop: drag .stngr to terminal
  • Quick scripts: stingray-dev.bat, stingray-build.bat, etc.
  • Auto PATH: stingray available from any folder
  • Environment variables: STINGRAY_HOME configured

VS Code

  • Auto installation with stingray --install
  • Syntax highlighting for HTML, CSS, JS inside .stngr
  • 40+ snippets (type stng-btn + Tab)
  • WUT? Errors with full stack trace
  • Autocompletion for Material Web components
  • Real-time validation on save

WUT? Errors

When something fails, you see exactly what:

╔══════════════════════════════════════════════════════╗
║                                                      ║
║   WUT?                                               ║
║                                                      ║
╚══════════════════════════════════════════════════════╝

  Full Error Log:
  ─────────────────────────────────────────────────────
    Timestamp:  2026-07-03T...
    File:       app.stngr
    Line:       15:3
    Error:      Unexpected token '}'
    
    Source Context:
      13:   <mdc-button>Submit</mdc-button>
      14: </div>
    > 15: }
      16:

File Extensions

  • .stngr - Stingray source file
  • Logo: https://stingray-lang.github.io/stingray/Assets/logo.png

Web Compatible

Stingray compiles to plain HTML/CSS/JS. Everything that works on the web, works with Stingray:

  • npm libraries
  • Browser APIs (fetch, localStorage, etc.)
  • React/Vue/Angular frameworks
  • Any CDN

Project Structure

my-app/
├── src/
│   ├── components/    ← Your components (.stngr)
│   ├── pages/         ← Pages (.stngr)
│   ├── hooks/         ← Custom hooks
│   └── styles/        ← Themes and styles
├── public/            ← Static files
├── stingray.json      ← Configuration
└── package.json       ← npm packages

Generate Installers

# Generate ALL (Inno Setup + NSIS + Self-installer + Portable)
node bin/installer.js

# Generate single type
node bin/installer.js npm          # npm package only
node bin/installer.js inno         # Inno Setup only
node bin/installer.js nsis         # NSIS only
node bin/installer.js self         # Self-installer only
node bin/installer.js portable     # Portable only

# Help
node bin/installer.js --help

License

MIT