Ogni prodotto ha questi campi. Quelli facoltativi mancano quando sono vuoti.
id · string- Id stabile, anche la parte finale dell’indirizzo della pagina del prodotto.
name · string- Nome del prodotto.
description · string- Descrizione in una frase.
audience · string[]- A chi si rivolge: b2b, individual o entrambi.
country · string- Paese di origine.
website · uri- Il sito web del prodotto.
longDescription · string- Qualche paragrafo sul prodotto.
features · string[]- Funzioni principali.
useCases · string[]- Da uno a quattro id di casi d’uso.
category · string- Id di categoria, come in /categories/{id}.
verified · boolean- facoltativo · true quando il creatore ha verificato di esserne il proprietario; altrimenti manca.
logoUrl · uri- facoltativo · Logo (PNG, JPEG o WebP); manca se non c’è.
Lo stesso come tipi 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[];
}