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

@adatechnology/game-floorplan-commercial

v6.0.0

Published

Commercial content pack for @adatechnology/game-floorplan: market and pharmacy templates, shop catalogue, slot libraries, commercial style and en / pt-BR names. Extends the residential pack.

Readme

@adatechnology/game-floorplan-commercial

Commercial content for @adatechnology/game-floorplan: the market and the pharmacy templates, the interior buildings of a city (supermarket, drugstore, gun shop, police station, emergency room, school, gas station, church, metalworks, farm), the shop item catalogue (gondolas, freezers, checkouts, display cases...), their slot libraries, the commercial and farm styles and palettes, and the commercial, industrial and agricultural zones of region br. It reuses the garage, yard and bathroom libraries of the residential pack, so register that one first.

Install

pnpm add @adatechnology/game-floorplan @adatechnology/game-floorplan-residential @adatechnology/game-floorplan-commercial

Browser without a bundler (the global is GameFloorplanCommercial):

<script src="https://unpkg.com/@adatechnology/game-floorplan/dist/index.global.js"></script>
<script src="https://unpkg.com/@adatechnology/game-floorplan-residential/dist/index.global.js"></script>
<script src="https://unpkg.com/@adatechnology/game-floorplan-commercial/dist/index.global.js"></script>
<script>
  GameFloorplanResidential.register(GameFloorplan.engine)
  GameFloorplanCommercial.register(GameFloorplan.engine, { region: 'br' })
</script>

Usage

import { engine } from '@adatechnology/game-floorplan'
import { register as residential } from '@adatechnology/game-floorplan-residential'
import { register as commercial, commercialTemplateIds } from '@adatechnology/game-floorplan-commercial'

residential(engine); commercial(engine, { region: 'br' })
const shop = engine.generate('market', { seed: 4, zone: 'zc' })

Content

| Template | Use | Notes | |---|---|---| | market | commercial | checkouts, shop floor, stockroom, bathroom, office; steel front door, cargo gate, no garden; party walls left and right | | pharmacy | commercial | counter, shop floor, consulting room; same shell rules | | supermarket | commercial | 18 x 13 m: checkouts, shop floor with four gondola runs, bakery, butcher with cold chamber, stockroom, manager's office with safe | | drugstore | commercial | 11 x 9 m: sales floor, dispensing counter, compounding room, grated store with vaccine fridge and safe | | gun_shop | commercial | 20 x 9 m: long-gun rack, showcase, reload bench, trophies, armored vault, four-lane shooting range | | police_station | institutional | 16 x 11 m: reception, chief's office, squad room, two cells, arsenal, locker room, evidence depot, patrol yard in front | | emergency_room | institutional | 18 x 11 m: emergency floor (stretchers, crash cart, oxygen cylinders), wards A and B, ICU | | school | institutional | 18 x 15 m: library, cafeteria, kitchen, locker corridor, classroom with 16 desks, sports court | | gas_station | commercial | 22 x 7 m building (convenience store, outside restroom, utility room, oil-change bay) and a forecourt with three pump islands and four canopy columns | | church | institutional | 12 x 20 m, 7 m ceiling: parish hall, nave with 14 pews, sanctuary with altar and cross, sacristy, bell tower in the lot | | metalworks | industrial | 30 x 20 m, 8 m ceiling: presses, conveyor line, furnace, pallet racks, forklift, canteen, lockers, mezzanine office | | farm | agricultural | 12 x 9 m farmhouse (style farm) with veranda posts, well, coop, corral, barn, silo, machine shed, tractors and hay bales in the lot |

office_tower (officeTowerTemplate, OFFICE_TOWER_DEFAULTS, use: commercial) is the plan of an office skyscraper built from the layout of game-floorplan-structure (skyscraperLayout): 40 storeys by default (floors, 20 to 60: the default maximum, SKYSCRAPER_MAX_STOREYS, because above about 60 the drift at the top passes H/500), 3.6 m clear height, 12 m bays, a glass curtain wall, a plant floor every 20 storeys and a damper above 150 m. The ground floor has the entrance lobby (3 m door), reception and the security desk; a typical storey has open-plan suites (library office_open) on the four sides of the core, with restrooms; the plant floors have plant rooms and no windows. buildOfficeTower(options) is the destructible tower of the same layout (core, piles, glass, wind). options.tower takes any SkyscraperOptions; officeTowerTemplate(preset, plan) builds a template with other numbers. The zone for it, zt, is in the residential pack.

Each interior building declares place and construction; interiorFindsHints[templateId] lists what each place can hold (the loot pins of the team's gallery scene) for the finds provider.

Zones in region br: zc (commercial / central, up to 24 floors and 80 m, institutional, mixed and multi-family allowed), zi (industrial, 4 floors, 20 m, large lots) and za (agricultural, large lots). A shop placed in a houses-only zone such as zr1 is reported as a use violation.

See MIGRATION.md for the old-to-new tables.

Português

Conteúdo comercial para o @adatechnology/game-floorplan: os modelos market (mercadinho) e pharmacy (farmácia), o catálogo de itens de loja, bibliotecas de slots, estilo e paleta commercial e as zonas comercial (zc) e industrial (zi) da região br. Usa as bibliotecas de garagem, quintal e banheiro do pacote residencial, que deve ser registrado antes.

commercial(engine, { region: 'br' })
engine.generate('market', { seed: 4, locale: 'pt-BR' })   // "Mercadinho"

mercado é market e farmacia é pharmacy. Uma loja em zona só de casas (ZR1) aparece como violação de use. Tabelas completas em MIGRATION.md.

Configurar pelo jogo (torre de escritórios)

Tudo é opção na hora de gerar: floors é o número de andares (vence tower.storeys) e tower aceita qualquer SkyscraperOptions (andares, pé-direito height, vão bay, facade, mechanicalEvery, damperAbove, piles, wind, range). O máximo padrão é 60 andares; o jogo o sobe com range (a zona zt também limita a 60: sem zona, ou com uma zona própria, vale o range).

const plan = engine.generate('office_tower', {
  seed: 7, floors: 72,
  tower: { range: [20, 80], height: 3.4, bay: [10, 10], facade: 'curtain', mechanicalEvery: 18, damperAbove: 120, wind: { speed: 35, terrain: 'III' }, piles: { diameter: 1.4 } },
})
const structure = buildOfficeTower({ storeys: 72, range: [20, 80] })