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

@tomtom-org/maps-sdk-plugin-map-effects

v0.0.2

Published

Practical post-processing for a TomTomMap: bloom for emphasis, tint/grade/vignette to mute the base map under data, fog and edge blur for focus — plus high-DPI capture

Readme

Map Effects Plugin

Plugin for the TomTom Maps SDK for JavaScript that adds practical post-processing to a TomTomMap: effects computed from the rendered map's own pixels, so they work on every style (custom ones included), survive every style release, and cannot be reproduced by editing the style.

Every effect is named by the problem it solves, and off by default:

| Effect | Knobs | Solves | | --- | --- | --- | | Bloom | bloom.intensity, bloom.radius, bloom.threshold | Emphasis on dark and driving styles — lit roads, traffic tubes, route lines glow | | Grade | grade.brightness, grade.contrast, grade.saturation | Muting the base map under a data overlay | | Tint | tint.color, tint.opacity | Muting the base map; matching a brand | | Fog | fog.intensity, fog.reach | Depth cue and de-emphasis of far context | | Edge blur | edgeBlur.intensity, edgeBlur.reach | Focus on the centre of the view | | Vignette | vignette.intensity, vignette.reach | Focus on the centre of the view |

Docs & examples

  • Developer guide: https://docs.tomtom.com/maps-sdk-js/guides/plugins/map-effects
  • Example: https://docs.tomtom.com/maps-sdk-js/examples/map-effects-playground

Quickstart

Note: this plugin declares @tomtom-org/maps-sdk and maplibre-gl as peer dependencies — ensure both are installed in your project.

npm install @tomtom-org/maps-sdk maplibre-gl @tomtom-org/maps-sdk-plugin-map-effects
  1. Follow the SDK Project setup or the Map quickstart to create and initialize a TomTomMap. For bloom and capture, create it with mapLibre: { canvasContextAttributes: { preserveDrawingBuffer: true } }.

  2. Import and use the plugin:

import { MapEffects } from '@tomtom-org/maps-sdk-plugin-map-effects';

// assume `map` is your initialized TomTomMap instance
const effects = new MapEffects(map);

// A quiet base under your own data layers:
effects.set({ 'grade.saturation': 0.4, 'grade.brightness': 0.85, 'tint.opacity': 0.15 });

// Emphasis on a dark style:
effects.set({ 'bloom.intensity': 0.5, 'bloom.threshold': 0.6 });

effects.reset();                 // everything off
effects.describe();              // the knob catalogue, same shape as StylingModule.describe()
await effects.capture({ pixelRatio: 3 }); // map + effects as a canvas, for print

License

See LICENSE.txt.