Aller au contenu
Krizaka TypeScript
Krizaka TypeScript

@krizaka/org

Les faits publics de Krizaka dans un seul JSON validé que lisent tous les pieds de page, sites et applications : identité légale, marques, produits en ligne, sites, ligne de pied de page.

Installer

bashTerminal
npm install @krizaka/org

Aussi publié en sous-chemins : @krizaka/org/org.json, @krizaka/org/org.schema.json, @krizaka/org/apps/*.json.

Le README ci-dessous est celui du paquet sur npm, en anglais.

The public facts about Krizaka, in one validated JSON. The legal name, the NEQ, « Fait à Montréal » in French and English, the brand marks, the default avatars, the live products (Orazaka, Yomizaka, Akinaza), the sites, the public contact, the footer line and the legal links — read by every footer, site and app, so changing one takes one pull request here.

import { footerLine, org } from "@krizaka/org";

footerLine("fr"); // « Une entreprise de Technologies Krizaka · Fait à Montréal »
org.company.legalName; // « Technologies Krizaka Inc. »

Without a build step, read it from the CDN: krizaka-assets.b-cdn.net/org/v1/org.json (an immutable copy sits beside it, org.<hash>.json). Also exported: @krizaka/org/org.json, @krizaka/org/org.schema.json and @krizaka/org/apps/<product>.json.

  • Public facts only. Never an address, a phone number, figures, a secret, an IP address or an internal host: the test scans for them and the schema refuses any field it does not list.
  • Validated. orgSchema (JSON Schema 2020-12) and the types Org, AppConfig…; a test validates the data and requests every URL in it.
  • Mobile runtime config. apps/<product>.json holds what a client may know — the API base URL per environment, feature flags, the minimum app version — never a secret. An app reads it at start, with a copy built into the binary as fallback.
  • Published on each release by the Release workflow (pnpm run publish:cdn), needing the organisation secrets MEDIA_STORAGE_API_KEY and MEDIA_STORAGE_ZONE; without them it warns and publishes nothing.

Apache-2.0 · Krizaka TypeScript

Exports

Les 20 noms que le paquet exporte, lus dans ses types.

NomNatureCe que c’est
APP_SCHEMA_URLconstante
AppConfigtype
AppEnvironmenttypeThe part of an app's runtime config that depends on the environment.
appsconstanteThe runtime config a mobile app may know, per live product.
appSchemaconstanteThe JSON Schema of apps/&lt;product>.json.
CDNconstanteThe pull zone that serves the brand files and this JSON.
footerLinefonctionThe footer line of the family, « Une entreprise de Technologies Krizaka · Fait à Montréal ».
localizedfonctionThe text of a localized pair for a language (fr or en; anything else reads English).
LocalizedtypeA text in both languages.
orgconstanteThe public facts about Krizaka.
Orgtype
ORG_SCHEMA_URLconstante
ORG_URLconstante
OrgAvatartype
OrgBannertype
OrgMarktype
OrgProducttype
orgSchemaconstanteThe JSON Schema of org/v1/org.json.
OrgSitetype
ProductStatustype

@krizaka/org/org.json

NomNatureCe que c’est

@krizaka/org/org.schema.json

NomNatureCe que c’est

@krizaka/org/apps/*.json

NomNatureCe que c’est

Paquet

Version sur npm0.1.0 (npm)
LicenceApache-2.0
Node.js>=22
Dépendancesaucune
Code sourceorg

Journal des versions

0.1.0

Minor changes

  • First release: the public facts about Krizaka in one validated JSON (company, brand, default avatars, live products, sites, contact, footer line), its JSON Schema and types, the mobile apps' public runtime config, and the CDN publish of org/v1/org.json.

Sur cette page