Monorepo for Aesthetic.Computer
aesthetic.computer
1// kidlisp-analyzer.mjs - KidLisp source analysis for NFT metadata
2// Keeps it simple: character count is the only trait.
3
4export function analyzeKidLisp(source, options = {}) {
5 if (!source || typeof source !== "string") {
6 return { error: "Invalid source", chars: 0, lines: 0, traits: [] };
7 }
8
9 const chars = source.length;
10 const lines = source.split("\n").filter(l => l.trim() && !l.trim().startsWith(";")).length;
11
12 return {
13 chars,
14 lines,
15 traits: [
16 { name: "Length", value: String(chars) },
17 ],
18 };
19}
20
21// Export version for tracking
22export const ANALYZER_VERSION = "3.0.0";