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

@richardmcquiston01/house-number-generator

v0.1.1

Published

Generates SVG/DXF laser-cutter files for house number signs.

Downloads

482

Readme

House Number Sign Generator

Live demo

Overview

  • User chooses sign style(numbers only or name + numbers).

  • User enters digits representing their house's street number.

  • User chooses from list of fonts for numbers -- If user chose "name + numbers", user can also choose a font for name

  • User chooses sign shape(square, rectangle, or round)

  • User selects sign margin(i.e. 1/2")

  • User selects assembly type(hardware(i.e. screw) or non-hardware(i.e. glued, adhesive paper, etc.) -- If user chooses Hardware assembly type, user should select screw size(i.e. M3, 3/8", etc.).

  • Generate DXF(or SVG) for each Number for cutting out on Laser Cutter. -- If user selected Hardware assembly type, we'll need to add holes for affixing number(s) to sign backer using screw hardware

  • If user chose "name + numbers", generate a cut file for the Name as well. -- If user selected Hardware assembly type, we'll need to add holes for affixing name layer to sign backer using screw hardware

  • Generate sign backer based upon sign shape such that all numbers fit within the bounds of the sign including the margin selected for each edge(top, bottom, left, and right). -- If user selected Hardware assembly type, we should add engraving marks to sign backer where screws for number(s) and/or name will be attached to sign backer.

Getting Started

This package is under active development (see CHANGELOG.md for progress).

Prerequisites

  • Node.js >= 18

Installation

npm install @richardmcquiston01/house-number-generator

Usage

import {
  createFontRegistry,
  generateSign,
} from '@richardmcquiston01/house-number-generator';
import {readFileSync, writeFileSync, mkdirSync} from 'node:fs';

const fonts = createFontRegistry();
const fontBytes = new Uint8Array(readFileSync('./fonts/DejaVuSans.ttf')).buffer;
fonts.register('digits', fontBytes);

const result = generateSign({
  config: {
    style: 'numbersOnly',
    houseNumber: '742',
    font: {numberFont: 'digits'},
    shape: 'rectangle',
    numberHeight: 4, // inches
    margin: 0.5,
    unit: 'in',
    assembly: {type: 'hardware', screwSize: 'M3'},
  },
  fonts,
  format: 'both', // 'svg' | 'dxf' | 'both'
});

if (!result.ok) {
  // result.error.stage is 'validation' | 'font' | 'layout'
  throw new Error(`Sign generation failed at ${result.error.stage} stage`);
}

mkdirSync('./output', {recursive: true});
for (const file of result.value) {
  writeFileSync(`./output/${file.name}`, file.content);
}

Each call to generateSign() returns one file per physical laser-cut piece — a separate file per house number digit (and per name letter, if style is nameAndNumbers), plus one backer file for the sign's backing plate.

Examples

The package also installs a CLI for local testing, without writing any code:

npx house-number-generator \
  --config sign.json \
  --number-font ./fonts/DejaVuSans.ttf \
  --out ./output

Where sign.json holds the SignConfig fields shown above (minus font, which the CLI fills in from --number-font/--name-font):

{
  "style": "numbersOnly",
  "houseNumber": "742",
  "shape": "rectangle",
  "numberHeight": 4,
  "margin": 0.5,
  "unit": "in",
  "assembly": {"type": "hardware", "screwSize": "M3"}
}

Development

npm install
npm run build      # compile to dist/ (ESM + CJS + types)
npm test           # run unit tests
npm run lint        # lint with ESLint
npm run format      # format with Prettier
npm run typecheck   # type-check without emitting

Buy Me a Coffee

If this app, code, or repository has helped you or someone you know, please consider donating. I appreciate any help to offset the costs of development and/or AI Credits.

Donate via Stripe, or scan:

Donate via Stripe

License

Apache 2

Copyright

(c)2026 Richard McQuiston. All rights reserved.