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

troll-engine

v0.0.11

Published

The Troll Engine

Readme

EARLY WORK - NOT YET USABLE

npm i -s troll-engine

Troll Engine received its name from the core project it is based around: Ogre3D. This project aims to simplify the process of making a cross platform project that utilizes fully native projects.

Essentially, making a project for Troll Engine is a matter of creating the C++ source code for your game and then letting Troll Engine use it to generate the source files for the native project.

Troll Engine aims to offer lots of configuration options but does not aim to be a compiler of any sort. It creates proper native projects that if compiled by other tools correctly will result in awesomeness. You're still going to need to learn how to compile your project.

Gettings started

  1. Run npm init @troll-engine and follow the instructions to generate your Troll Engine project
  2. Run npm run build:[platform] to build your project
  3. Run troll commands using npm run troll -- [arguments]

While you can install troll-engine globally to access it directly from the command line it's recommended to install it locally for your project so you can have a project specific version for it. The only difference between a global and a local installation is that you either run the troll command by either using troll [args] or npm run troll -- [args], but you get the benefit of versioning Troll Engine so your code doesn't suddenly stop compiling, and all your developers will have the same version of the software installed.

Commands

  • troll - Launches an interactive console for running the Troll Engine
  • troll build - Launches a non-interactive build for your project
  • troll start [platform] - Launches the project either for the current or the specified platform
  • troll add [library] - Adds a library to your project
  • troll search [query] - Searches the repository for libraries
  • troll rm [library] - Removes a library from your project

Project structure

  • assets/ Game assets
  • code/ Game code
    • include/ C++ header files
    • src/ C++ source files
  • docs/ Doxygen documentation files for your project
  • platforms/ Files to override or patch files generated by Troll Engine
    • android/
    • browser/
    • ios/
    • linux/
    • mac/
    • windows/
  • troll.config.js Config file for Troll Engine

Platforms

  • Android: Android native app with instant app capabilities
  • Browser: A Nuxt based project is created for you with your project turned into WASM code.
  • IOS: C++ project
  • Linux: C++ project
  • Mac: C++ project
  • Windows: C++ project compiled using VS 2017

Base features

The base project without any plugins is intended to be an as minimal a project as possible that gives you access to the full capabilities of Ogre3D. Additional features can easily be added using plugins.

  • Ogre3D renderer
  • OIS for input handling

Plugins

  • @troll-engine/plugin-lua - Adds Lua to your game