{"id":26106,"library":"prism-lang","title":"Prism Language Transpiler","description":"Prism is a small, expressive programming language that transpiles to TypeScript or JavaScript. Current stable version is 0.1.6, released as a work-in-progress. It supports typed variables, functions, classes, pattern matching, and error handling. Differentiator: designed as an alternative language that compiles to JS/TS with modern syntax features. Active development with CLI tools for compile, run, and check.","status":"active","version":"0.1.6","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install prism-lang","lang":"bash","label":"npm"},{"cmd":"yarn add prism-lang","lang":"bash","label":"yarn"},{"cmd":"pnpm add prism-lang","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; the package exports functions for programmatic use.","wrong":"const compile = require('prism-lang')","symbol":"compile","correct":"import { compile } from 'prism-lang'"},{"note":"Named export, not default.","wrong":"import * as prism from 'prism-lang'; prism.run(...)","symbol":"run","correct":"import { run } from 'prism-lang'"},{"note":"Main entry point; no subpath exports.","wrong":"import { check } from 'prism-lang/check'","symbol":"check","correct":"import { check } from 'prism-lang'"}],"quickstart":{"code":"// compile.prism\nfinal name: string = \"Prism\"\nmut count: int = 0\n\nfn greet(name: string): string {\n  return \"Hello, \" + name\n}\n\nprint(greet(\"World\"))\n\n// CLI: prism compile file.prism --js\n","lang":"typescript","description":"Shows basic Prism syntax: immutable/mutable variables, function with type annotations, and output."},"warnings":[{"fix":"Pin to a specific version and monitor releases for breaking changes.","message":"Prism is a work in progress; syntax may change without major version bump.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Add explicit type annotations when inference fails.","message":"Type inference is limited; explicit type annotations may be required in complex expressions.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Run `npm install -g prism-lang` or use `npx prism compile`.","message":"CLI requires `npm link` or global install; otherwise commands may not be found.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install prism-lang`.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'prism-lang'"},{"fix":"Install globally: `npm install -g prism-lang`","cause":"CLI binary not in PATH.","error":"prism: command not found"},{"fix":"Compile .prism files with the prism CLI before using.","cause":"Using Prism-specific syntax in JavaScript/TypeScript.","error":"SyntaxError: Unexpected token 'pub'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}