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 🙏

© 2024 – Pkg Stats / Ryan Hefner

runtemplate

v0.9.18

Published

PDF template editor that is designed non-techs. Renderer service is standalone.

Downloads

8

Readme

runtemplate

https://img.shields.io/npm/v/runtemplate.svg state npm npm

Beta Version

PDF template editor that is designed non-techs. Renderer service is standalone.

runtemplate.com is the online pdf template editor.

Online Editor Features

  • Upload logo and images
  • Support markdown

Standalone Server Features

  • start microservice or middleware in your server
  • smartly cache template from cloud
  • render pdf in local microservice (work even network is disconnected)
  • Non-developers can edit via online editor and microservice will get updated
  • based on pdfmake and pdfkit

Usage

microservice

npm install --global runtemplate
runtemplate

middleware

import { pdfMiddleware } from 'runtemplate'

const response = await pdfMiddleware({
  method: request.method,
  path: request.path,
  query: request.query,
  reqBody: request.body,

  // optional
  saveOutput: async output => {
    cacheTable.set(output.code, output)
    return output
  },
  loadOutput: async ({ code }) => {
    return cacheTable.get(code).body
  },
})
// Use method=POST to generate pdf
// response.body = { url, code, ... }
// And http GET the response url

// if method=GET
// response.type = 'application/pdf'
// response.body = pdf stream

example http POST

http://localhost:8899/pdf/demo/new__Receipt-Number?auth=YOUR_AUTH_OR_EMPTY

{"data":{"number":"Receipt-Number","timeAt":"2019-02-18T15:31:08.067Z","items":[{"type":"Product","name":"A","quantity":1,"price":12},{"type":"Product","name":"B","quantity":1,"price":1}]}}'

example http GET

http://localhost:8899/pdf/demo/new__Receipt-Number?auth=YOUR_AUTH_OR_EMPTY