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

@homie-rocks/props

v0.1.1

Published

Procedural scenery geometry for three.js: houses, boats, trackside furniture, landforms, rocks, vegetation, trusses and industrial fittings. Each generator takes numbers and an RNG and returns a BufferGeometry.

Downloads

500

Readme

@homie-rocks/props

Procedural scenery generators for three.js: a village house and its fittings, a lofted boat hull and a quayside, trackside furniture and a crowd, ridgelines and islands, angular rocks, palms and ferns and grass, and on the industrial side a truss bay, ladders, handrails, a gantry crane, a pressure bay and work lights. Every generator takes numbers (and an RNG where it needs one) and returns THREE.BufferGeometry. It owns no materials, no textures, no placement and no scene: where a prop goes and what it is made of are the caller's decisions.

Part of Homie's open game engine: the packages the Homie games are built on.

Install

npm install --save-exact @homie-rocks/[email protected] [email protected] [email protected]

npm installs its dependencies, @homie-rocks/geom, @homie-rocks/noise and @homie-rocks/render, with it.

Use

import * as THREE from 'three';
import { ridgeGeo } from '@homie-rocks/props/Landform.js';
import { angularRock } from '@homie-rocks/props/Rock.js';
import { mulberry32, hash2 } from '@homie-rocks/noise/Noise.js';

// A 1.2 km ridgeline, 400 m deep and 300 m high, with baked vertex colours.
const ridge = ridgeGeo({ length: 1200, depth: 400, height: 300, seed: 7 });
scene.add(new THREE.Mesh(ridge, new THREE.MeshStandardMaterial({ vertexColors: true })));

// A faceted boulder, radius about 1: the RNG and the hash are both yours.
const rng = mulberry32(42);
const rock = angularRock(2, rng, (x, y) => hash2(x, y, 42), 0.5);

Generators draw from the RNG in a fixed order, so the same seed rebuilds the same world. There is no barrel file: import the module you need.

Modules

| module | what it does | |---|---| | Village.js | buildHouse into shared accumulators, plus shutterGeo, doorGeo, balconyGeo, flowerBoxGeo, awningGeo, lampGeo | | Harbour.js | hullGeo (lofted cross-sections), boatGeo, and quayside clutter: bollardGeo, crateGeo, barrelGeo, netGeo, ropeGeo, tyreGeo | | Trackside.js | parasols, grandstand, bell tower, stalls, tents, start lights, signage, bunting, and spectatorGeo | | Landmark.js | gullGeo, lighthouseGeo, windmillGeo (separable rotor), landmassGeo, debrisGeo | | Landform.js | ridgeGeo and islandGeo with the surface handed back, ridgeContour, ribbonStrip, flankTerraces, flankSwitchback | | Rock.js | angularRock: a flat-faceted displaced icosahedron that stays closed along shared edges | | Vegetation.js | palm trunk and fronds, fern and heliconia leaves, buttressed trunk, sapling, fallen log, pine, cypress, grass clumpGeo / tuftGeo | | Cloth.js | hangingSheet: a static banner or tarp hung from one edge, with crease and sag callbacks | | Truss.js | trussBayGeo, trussShellGeo, ladderGeo, handrailGeo, footingGeo, portalGeo, conduitRunGeo, gantryCraneGeo, lattice mast sections | | Pressure.js | pressureBayGeo (optionally swept along a path), bayInnerR / bayOuterR, derelictRibGeo | | Spine.js | spineShellGeo and cutEdgeGeo: a long segmented hull and a torn edge where it ends | | Fixtures.js | work floods, flood mast and bracket, hazard beacon, radiator fin, docking clamp, deck lamp, batten, thermal panel, service cabinet, cable drum | | Kit.js | the RNG type, pick, and the smoothstep these generators were authored against |

License

Apache-2.0. See LICENSE and NOTICE.