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

pal-city-models

v1.0.12

Published

Shared TypeScript data models for the **Pal City** platform. This package provides a centralized, type-safe model layer used across the Pal City ecosystem — including the dashboard, mobile app, and backend services.

Readme

Pal City Models

Shared TypeScript data models for the Pal City platform. This package provides a centralized, type-safe model layer used across the Pal City ecosystem — including the dashboard, mobile app, and backend services.

Installation

npm install pal-city-models

Quick Start

import { EventModel, BusinessModel, AddressModel } from "pal-city-models";

// Create an event from API data
const event = new EventModel(apiResponse);
console.log(event.title, event.startDate);

// Create a business with an address
const business = new BusinessModel({
  id: 1,
  identifier: "cafe-123",
  status: "active",
  type: "restaurant",
  title: "Downtown Café",
  summary: "A cozy café in the heart of the city.",
  description: "Full description here...",
  coverImage: "/images/cafe.jpg",
  tags: ["coffee", "brunch"],
  address: {
    country: "Palestine",
    state: "West Bank",
    city: "Ramallah",
    addressLine1: "Main Street 12",
    addressLine2: "",
    zipCode: "00970",
  },
});

Models

Events

| Model | Description | | ------------ | ---------------------------------------------------------------------------------------- | | EventModel | Represents a platform event with scheduling, media, registration, and ticketing details. |

Key properties: id, identifier, category, tags, status, visibility, type, title, shortDescription, longDescription, startDate, endDate, isFullDay, coverImage, media, registrationStatus, ticketType, sequence

Entities

All entity models extend the base EntityModel.

| Model | Extends | Description | | --------------- | ------------- | --------------------------------------------------------------------------------------------- | | EntityModel | — | Base model with id, identifier, status, and type. | | BusinessModel | EntityModel | A business entity with title, description, cover image, tags, and an optional AddressModel. | | BuildingModel | EntityModel | Represents a building entity. | | PlaceModel | EntityModel | Represents a place / point-of-interest entity. | | ProfileModel | EntityModel | Represents a user profile entity. |

Address

| Model | Description | | -------------- | -------------------------------------------------------------------------------------------------- | | AddressModel | Structured address with country, state, city, addressLine1, addressLine2, and zipCode. |

Project Structure

src/
├── index.ts              # Package entry – re-exports all models
├── address/
│   └── Address.model.ts  # AddressModel
├── entities/
│   ├── Entity.model.ts   # Base EntityModel
│   ├── Business.model.ts # BusinessModel (extends Entity)
│   ├── Building.model.ts # BuildingModel (extends Entity)
│   ├── Place.model.ts    # PlaceModel (extends Entity)
│   └── Profile.model.ts  # ProfileModel (extends Entity)
└── events/
    └── Event.model.ts    # EventModel

Development

Prerequisites

  • Node.js ≥ 18
  • TypeScript ≥ 6.0

Build

npm run build

Compiles TypeScript from src/ to dist/ with declaration files (.d.ts).

Configuration

| Setting | Value | | ----------------- | ------------ | | Target | ES2019 | | Module | ESNext | | Strict mode | ✅ Enabled | | Declaration files | ✅ Generated |

License

Private — Pal City © 2026