Chaque produit a ces champs. Les champs facultatifs sont omis quand ils sont vides.
id · string- Id stable, aussi la fin de l’adresse de la page du produit.
name · string- Nom du produit.
description · string- Description en une phrase.
audience · string[]- À qui il s’adresse : b2b, individual ou les deux.
country · string- Pays d’origine.
website · uri- Le site web du produit.
longDescription · string- Quelques paragraphes sur le produit.
features · string[]- Fonctionnalités principales.
useCases · string[]- Un à quatre ids de cas d’usage.
category · string- Id de catégorie, comme dans /categories/{id}.
verified · boolean- facultatif · true quand le créateur a vérifié qu’il en est propriétaire ; absent sinon.
logoUrl · uri- facultatif · Logo (PNG, JPEG ou WebP) ; absent s’il n’y en a pas.
La même chose en types TypeScript :
export interface Software {
/** Stable id, also the end of the product’s page address. */
id: string;
/** Product name. */
name: string;
/** One-sentence description. */
description: string;
/** Who it’s for: b2b, individual or both. */
audience: ("b2b" | "individual")[];
/** Country of origin. */
country: string;
/** The product’s website. */
website: string;
/** A few paragraphs about the product. */
longDescription: string;
/** Main features. */
features: string[];
/** One to four use-case ids. */
useCases: string[];
/** Category id, as in /categories/{id}. */
category: string;
/** true when the maker verified ownership; absent otherwise. */
verified?: true;
/** Logo (PNG, JPEG or WebP); absent when there is none. */
logoUrl?: string;
}
/** countries.json, GET /api/software/countries */
export type Countries = string[];
/** categories.json, GET /api/categories/counts */
export type CategoryCounts = Record<string, number>;
/** One entry of alternatives.json */
export interface Alternative {
tool: string;
name: string;
page: string;
ids: string[];
}