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

@oliveai/loop-templates

v1.1.2

Published

Loop templates used by Olive's loop creator tools.

Readme

loop-creator-templates

These are the template files shared and used by our loop creator tools, such as:

While anybody can technically install this library, it's really only useful to the tools above. If you're looking to create a loop from a template, we recommend using one of them!

Flowchart

Overview

  • The template files make use of the Squirrelly template engine and end with .squirrelly.
  • Every directory contains an index.ts containing a fileMap object.
    • fileMap objects follow this structure, where the key is the name of an imported template file or directory of templates:
{
  [key: string]: {
    fileName: string, // Name that the file should be given when rendered
    aptitude: string, // An enum that determines which aptitudes will cause this to render
  }
}
  • The loop creators, loop-creator-npx and loop-creator-vscode, recursively loop through the fileMap objects in each directory and determine which files to render based on the aptitudes that the user selects.

Development

Prerequisites

  • Node
    • Check if you have it: run node --version in your terminal, should return a version number
    • If you don’t have it, use NVM

Creating/Updating Template Files

There is no VSCode extension for enabling syntax highlighting or other language features for Squirrelly template files. For creating templates, we've found the best luck with one of two methods:

  1. Write the "final" code as a standard TypeScript file, then change the file extension to Squirrelly and "template" the TypeScript syntax so it only renders if the user selects TypeScript.
    • We recommend creating a JavaScript Loop to confirm you didn't miss any of the TypeScript syntax, as trying to build a JS file with TS syntax in it will immediately point it out.
  2. Put <script> at the top of the file and </script> at the bottom, then change the language in VSCode to Handlebars. You can freely write JavaScript with templating and get syntax highlighting.

Development Steps

  1. Make changes/additions to the template files and any relevant fileMap objects.

  2. Run npm run build to compile the templates into importable code.

  3. Move to the loop creator directory.

  4. Update the dependency to point this project as a relative path. Example:

    "dependencies": {
        ...
        "@oliveai/loop-templates": "file:../loop-creator-templates",
        ...
    }
  5. Run npm install

  6. Run npm run dev -- this is effectively the same as running npx @oliveai/create-loop but it's just using your local script instead of the script in the npm registry.

This will create a Loop with the changes you made in the templates.