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

@creatiosoft/localization-types

v0.0.2

Published

Types only package for Localization Service

Downloads

18

Readme

@creatiosoft/localization-types

Shared TypeScript types package for the Localization Service platform.


Purpose

This package defines the canonical domain interfaces used across all components of the localization service — the API, the translation editor, the build pipeline, the CDN delivery layer, and any other service that needs to operate on localization data.

By centralising types in a single published package, all services share a common contract. Any breaking change to the domain model is surfaced as a compile-time error across every consumer, preventing silent mismatches between services.

Domain Model Overview

IProject
  ├── IProjectMember[]   — users with roles (owner, developer, translator, viewer)
  ├── INamespace[]       — logical groupings of translation keys (e.g. "auth", "ui")
  │     └── IDictionaryEntry[]  — key → translated value, per language
  └── IVersion[]         — published build snapshots of the full translation set

ILanguage              — global catalogue of supported languages (e.g. "en", "hi", "fr")
IAudit                 — base interface extended by all entities (id, timestamps, actors)

Getting Started

Installation

Install the package from the npm registry (or your private registry):

npm install @creatiosoft/localization-types

If you are working in the monorepo and consuming this package locally, link it using your package manager's workspace or npm link:

# From the localization-types directory
npm link

# From the consuming service directory
npm link @creatiosoft/localization-types

Usage

Import types directly from the package root:

import {
    IProject,
    INamespace,
    IProjectMember,
    ProjectRole,
    IDictionaryEntry,
    TranslationSource,
    ILanguage,
    IVersion,
    VersionStatus,
    IAudit,
} from '@creatiosoft/localization-types';

Build

The package must be built before it can be consumed. The build compiles the TypeScript source in src/ and emits JavaScript along with .d.ts declaration files into dist/.

Prerequisites

  • Node.js >= 18
  • npm >= 9

Install dependencies

npm install

Compile

npm run build

This runs tsc using tsconfig.json and outputs to dist/.

Publish

The prepublishOnly script runs the build automatically before publishing, so you do not need to build manually before running npm publish:

npm publish

Package Structure

localization-types/
├── src/
│   ├── index.ts                      # Root barrel export
│   ├── common/
│   │   ├── audit.ts                  # IAudit — base entity interface
│   │   └── index.ts
│   ├── language/
│   │   ├── language.ts               # ILanguage
│   │   └── index.ts
│   ├── project/
│   │   ├── project.ts                # IProject
│   │   ├── project-member.ts         # IProjectMember, ProjectRole
│   │   ├── namespace.ts              # INamespace
│   │   └── index.ts
│   ├── dictionary/
│   │   ├── dictionary-entry.ts       # IDictionaryEntry, TranslationSource
│   │   └── index.ts
│   └── version/
│       ├── version.ts                # IVersion, VersionStatus
│       └── index.ts
├── dist/                             # Compiled output (generated, not committed)
├── tsconfig.json
└── package.json

Author

Vikas Sood — Nth Bit Labs