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

vue-ascii-overlay

v0.1.1

Published

A Vue 3 component that renders an interactive ASCII character overlay with mouse-driven Navier-Stokes fluid simulation.

Readme

vue-ascii-overlay

npm

A Vue 3 component that renders an interactive ASCII character grid with mouse-driven Navier-Stokes fluid simulation. Hover, click, and drag to disturb the fluid field — characters shift in brightness to visualize the flow.

Install

npm install vue-ascii-overlay

Usage

<script setup>
import { AsciiOverlay } from 'vue-ascii-overlay'
</script>

<template>
  <div style="width: 100vw; height: 100vh">
    <AsciiOverlay />
  </div>
</template>

The component fills its parent container. Make sure the parent has explicit dimensions.

Props

All props are optional — the component works with zero configuration.

| Prop | Type | Default | Description | |------|------|---------|-------------| | fontSize | number | 14 | Base font size in pixels | | charWidth | number | 0.6 | Character width as a ratio of font size | | cellPadding | { x: number; y: number } | { x: 0, y: 0 } | Padding between grid cells in pixels | | fps | number | 30 | Target frames per second | | charset | string | ` .:-=+*#%@ `` | Characters used for brightness mapping (dark to light) | | contrast | number | 1 | Contrast multiplier for luma mapping | | gamma | number | 1 | Gamma correction exponent | | invertLuma | boolean | false | Invert the brightness mapping | | lumaValue | number | 0 | Base luma value (0–1) | | lumaSmoothingMs | number | 0 | Smoothing time for luma transitions in milliseconds | | backgroundColor | string | 'transparent' | Background color (CSS color string) | | color | string | '#ffffff' | Character color (CSS color string) | | fontFamily | string | 'monospace' | Font family for rendered characters | | fluid | AsciiOverlayFluidConfig | See below | Fluid simulation configuration | | disableHover | boolean | false | Disable hover interaction | | disableClick | boolean | false | Disable click splash effect | | disableDrag | boolean | false | Disable drag interaction |

Fluid Configuration

Pass a fluid prop to tune the Navier-Stokes simulation:

<AsciiOverlay
  :fluid="{
    enabled: true,
    forceScale: 50,
    hoverRadiusPx: 80,
    splashRangePx: 150,
  }"
/>

| Property | Type | Default | Description | |----------|------|---------|-------------| | enabled | boolean | true | Enable/disable fluid simulation | | resolutionScale | number | 1 | Grid resolution multiplier | | velocityDissipation | number | 0.98 | How quickly velocity decays (0–1) | | densityDissipation | number | 0.97 | How quickly density decays (0–1) | | diffusion | number | 0.0001 | Diffusion rate | | iterations | number | 4 | Solver iterations per step | | forceScale | number | 50 | Force multiplier for hover interaction | | hoverRadiusPx | number | 60 | Hover influence radius in pixels | | strength | number | 1 | Global force strength multiplier | | splashRangePx | number | 120 | Click splash radius in pixels | | splashVelocityScale | number | 1 | Velocity scale for splash rings | | splashForceScale | number | 1 | Force scale for splash rings | | splashDensity | number | 1 | Density injected by splash | | splashRandomness | number | 0.3 | Randomness in splash ring shape | | splashThicknessPx | number | 20 | Thickness of splash ring in pixels | | splashTravelEasePower | number | 2 | Easing power for splash travel | | splashForceDecayPower | number | 2 | Decay power for splash force | | splashDensityDecayPower | number | 2 | Decay power for splash density | | dragBoostScale | number | 1 | Force boost multiplier during drag | | dragBoostMaxPx | number | 200 | Max drag distance for boost calculation | | dragThresholdPx | number | 3 | Minimum drag distance to trigger boost | | project | boolean | true | Enable pressure projection (mass conservation) | | projectIterations | number | 4 | Pressure solver iterations |

TypeScript

Types are exported for use in your own code:

import type { AsciiOverlayProps, AsciiOverlayFluidConfig } from 'vue-ascii-overlay'

Requirements

  • Vue 3.3+
  • Modern browser with Canvas 2D support

License

MIT