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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@techandsoftware/teletext-plugin-smooth-mosaic

v0.1.8

Published

Plugin for @techandsoftware/teletext - render mosaic graphics smoothly using hqx

Readme

This is a plugin for @techandsoftware/teletext, which uses a pixel art scaling algorithm to create a smooth rendition of teletext mosaic graphics. The scaling algorithm used is hqx.

The following image shows a page from Ceefax with normal rendering and with smoothed graphics on the right: A Ceefax page with a map of the UK in teletext blocky format and with smoothed graphics

Demo

See https://teletextmoduledemo.tech-and-software.ltd.uk/ . Press 'p' or click the button marked with 'p' to load the plugin.

See the docs directory in the repo for an SVG created with the plugin.

Using

ES6 module

The easiest option is to use jsdelivr:

const module = await import('https://cdn.jsdelivr.net/npm/@techandsoftware/teletext-plugin-smooth-mosaic@latest/dist/teletext-plugin-smooth-mosaic.min.js');

// teletext is the @techandsoftware/teletext instance
teletext.registerViewPlugin(module.SmoothMosaicPlugin);

If installing from npm, you'll also need to use tooling like rollup to resolve the dependency for your browser.

import { SmoothMosaicPlugin } from '@techandsoftware/teletext-plugin-smooth-mosaic';
teletext.registerViewPlugin(SmoothMosaicPlugin);

As the module is fairly large, you could import dynamically:

const module = await import('@techandsoftware/teletext-plugin-smooth-mosaic');
teletext.registerViewPlugin(module.SmoothMosaicPlugin);

Non-ES6

If you want to support browsers that can't use ES6 modules, a UMD version is also available in the dist directory for importing with <script>. It exports the module in the global ttxsmooth. It's likely you'll also need to transpile the code for your target browsers.

Dependencies

Credits