SPB Git

spb/airiskindex Public

The most methodologically rigorous, fully transparent AI job-exposure index.

TypeScript 88% Python 6.1% SQL 2.7% CSS 1.2% JavaScript 0.9% Shell 0.8%
1.1 KB · 37 lines typescript
Raw Blame History
1//  File:    route.ts2//  Path:    apps/web/app/api/v1/methodology/route.ts3//  Project: AI Risk Index — airiskindex.io4//  Author:  Simon-Pierre Boucher5//  Contact: contact@spboucher.ai6//  Copyright © 2026 Simon-Pierre Boucher. All rights reserved.7//8//  Description: Public API: machine-readable weights and version metadata.910import {11  DIMENSIONS,12  EXPOSURE_DIMENSIONS,13  HIGH_EXPOSURE_THRESHOLD,14  INDEX_VERSION,15  INVERTED_DIMENSIONS,16  WEIGHTS,17} from "@airiskindex/scoring";1819export function GET(): Response {20  return Response.json(21    {22      index_version: INDEX_VERSION,23      dimensions: DIMENSIONS,24      weights: WEIGHTS,25      inverted_dimensions: [...INVERTED_DIMENSIONS],26      exposure_dimensions: EXPOSURE_DIMENSIONS,27      high_exposure_threshold: HIGH_EXPOSURE_THRESHOLD,28      scales: {29        ratings: "1-5 per task and dimension, multi-model LLM panel with expert overrides",30        scores: "0-100, each with low/score/high confidence bounds",31      },32      documentation: "https://www.airiskindex.io/methodology",33    },34    { headers: { "Cache-Control": "public, max-age=3600" } },35  );36}37