{"id":26420,"library":"speedyjs-compiler","title":"Speedy.js Compiler","description":"A TypeScript to WebAssembly compiler that generates WebAssembly modules from TypeScript input files. Version 0.0.19, released as an early-stage experimental tool. Key differentiator: compiles a subset of TypeScript to optimize performance-critical code for web assembly, targeting browser and Node.js environments. Development appears stalled with no commits since 2018, making it suitable only for experimental use.","status":"abandoned","version":"0.0.19","language":"javascript","source_language":"en","source_url":"https://github.com/MichaReiser/speedy.js","tags":["javascript"],"install":[{"cmd":"npm install speedyjs-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add speedyjs-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add speedyjs-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package may have ESM exports; CommonJS require may fail.","wrong":"const compiler = require('speedyjs-compiler')","symbol":"compile","correct":"import { compile } from 'speedyjs-compiler'"},{"note":"Default export likely available, but named export compile is preferred.","wrong":"const Speedy = require('speedyjs-compiler').default","symbol":"default export","correct":"import Speedy from 'speedyjs-compiler'"},{"note":"Hypothetical function; check actual API as documentation is incomplete.","wrong":"","symbol":"transpileModule","correct":"import { transpileModule } from 'speedyjs-compiler'"}],"quickstart":{"code":"import { compile } from 'speedyjs-compiler';\n\nconst wasmModule = compile(`\n  function add(a: i32, b: i32): i32 {\n    return a + b;\n  }\n`, { optimize: true });\n\nconsole.log(wasmModule);","lang":"typescript","description":"Demonstrates compiling a simple TypeScript function (subset) into a WebAssembly module using the compile function."},"warnings":[{"fix":"Restrict TypeScript code to supported types: i32, i64, f32, f64, bool, void, arrays, pointers, strings.","message":"Supports only a subset of TypeScript types (e.g., i32, f64), not full TypeScript.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider alternatives like AssemblyScript or Emscripten.","message":"Project appears abandoned; no updates since 2018.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Refer to GitHub repo for examples and issues.","message":"Documentation is minimal; expect breaking changes or missing features.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure Node.js version >= 8 or use polyfills.","message":"Requires Node.js version 8 or higher due to WebAssembly support.","severity":"breaking","affected_versions":">=0.0.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 speedyjs-compiler' and ensure it's listed in package.json.","cause":"Package not installed or not found in node_modules.","error":"Cannot find module 'speedyjs-compiler'"},{"fix":"Use proper import: import { compile } from 'speedyjs-compiler'","cause":"Incorrect import method (CommonJS vs ESM).","error":"TypeError: compile is not a function"},{"fix":"Replace TypeScript types with supported ones: use i32, f64, bool, etc.","cause":"Speedy.js does not support full TypeScript type system; string is not supported.","error":"Error: Unsupported type 'string' at position X"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}