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

@flancer32/teq-tmpl

v0.3.0

Published

Node.js package for multilingual template management and rendering with flexible overrides, supporting Mustache, Nunjucks, and other engines.

Readme

@flancer32/teq-tmpl

A universal package for managing and rendering text templates in Node.js applications with support for multilingualism and flexible overrides. Enables easy creation of localized content for web pages, email campaigns, and any other text-based formats.


Key Features

  • Multilingual Support
    Automatic template selection considering user, application, and plugin locales with fallback logic.

  • Flexible Override System
    Allows overriding plugin templates at the application level without modifying the original code.

  • Template Engine Abstraction
    Supports various engines (Mustache, Nunjucks, etc.) through a unified interface, with an easily extensible architecture.

  • Versatility
    Suitable for generating HTML, JSON, XML, YAML, email, and other text formats.

  • Easy Integration
    Easily integrates with any Node.js application and can be used as a standalone module.


How It Works (Briefly)

  1. Defines the target template considering type (web, email, text), name, package, and locales.
  2. Searches the template file in a strict order based on locales and overrides.
  3. Loads the found template from disk.
  4. Renders the template with data via the configured engine.
  5. Returns the ready localized content.

Integration Requirements

Applications must provide a template engine implementation that fulfills the Fl32_Tmpl_Back_Api_Engine interface. Use the DI container's replace.add() method to map Fl32_Tmpl_Back_Api_Engine$ to the desired engine service:

replace.add('Fl32_Tmpl_Back_Api_Engine$', 'Fl32_Tmpl_Back_Service_Engine_Mustache$');

Available engine implementations include:

  • Fl32_Tmpl_Back_Service_Engine_Mustache
  • Fl32_Tmpl_Back_Service_Engine_Nunjucks
  • Fl32_Tmpl_Back_Service_Engine_Simple

Custom engines can also be supplied as long as they conform to Fl32_Tmpl_Back_Api_Engine.


Who Benefits

  • Developers building multilingual web applications and mailing services.
  • Teams working with plugins and complex modular architectures.
  • Projects needing a flexible and extensible template system without lock-in to a specific templating engine.

Testing

Run unit tests with Node.js built-in runner:

npm test

Status and Documentation

The package is actively developed and successfully used in projects with modular architecture. It is created following the TeqFW philosophy, ensuring clear separation of concerns, modularity, and extensibility. Documentation follows the 3DP methodology, providing clear structure and separation between code, documentation, and iterations.


License

Apache-2.0 © Alex Gusev