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

urbit-paper-collateral-renderer

v1.2.0

Published

[Github](https://github.com/urbit/PaperCollateralRenderer)

Downloads

9

Readme

PaperCollateralRenderer

Github

Figma

PaperCollateralRenderer generates PNG wallets that can be printed from keygen-js. The layouts and static text content exist in Figma, and are imported via the LayoutGenerator component. This JSON is then saved to disk and bundled with the PaperCollateralRenderer and PageRenderer for prod. The layout objects contain variable strings like @heading or @management.seed.length. PaperCollateralRenderer replaces these with real data. Variables can also specify special layout components like >sigil:@patp.

Install

Install deps via npm:

$ npm install

Build

How to build/run for development:

  1. Create a .env file in the root directory. Paste in Tlon's Figma API token like the following:

FIGMA_API_TOKEN="your-token-here-within-the-quotes"

  1. npm run convert translates the Figma design to JSON via the Figma API. You can target a specific Figma document by updating the document string and page name that are found in convert.js, lines 32 and 34. You can retrieve a Figma document string id by opening the document in your browser and copying the string that appears before the document name. Each document has pages, which you can target with a name string, such as our current page Registration 1.2.

  2. npm run start builds all files for development and will watch for any JavaScript changes and serve the build on localhost:8000.

  3. npm run build builds all files for production.

Making changes:

  1. If you make changes to your targeted Figma document, you must re-convert the JSON with npm run convert.

  2. Refreshing the webpage with cmd+shift+r will ensure that your browser doesn't render an older, cached version.

| Commands | Description | | -------------------------| --------------------------------------------- | |npm run convert | Import Figma design | |npm run build:dev | Run the development testing page | | or $ npm run build:prod| Build the library from source | |npm run serve | Serve & watch build on localhost:8000 |

Debug

See our documentation of frequent bugs and how to fix them.

Usage

<PaperCollateralRenderer
  wallet={wallet}
  className={'extremely-hidden'}
  callback={data => console.log(data)}
  mode={'REGISTRATION'}
/>

PaperCollateralRenderer has four props.

|Prop Name | Description | Type | -------------------- | --------------------------------------------- | ----- | wallet | A wallet in the format below | Transformed keygen-js wallet object | className| A class on the outer component div tag | string | callback | A function to call when all PNGs have been generated | function | mode | Allows you to select a preset collection of PNGs to generate | string, currently 'REGISTRATION' is the only option.

Sample Wallet Input

Here is a sample wallet's JSON. More sample wallets can be found in src/sampleWallets

License

This project is licensed under the MIT License - see the LICENSE.txt file for details