Registry / serialization / speedyjs-compiler

speedyjs-compiler

JSON →
library0.0.19jsnpmunverified

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.

npm install speedyjs-compiler
INSTALL
IMPORT
SIG · SPEEDYJS-COMPILER
S
speedyjs-compiler
serializationjavascriptv0.0.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compile
import { compile } from 'speedyjs-compiler'
const compiler = require('speedyjs-compiler')
Package may have ESM exports; CommonJS require may fail.
default export
import Speedy from 'speedyjs-compiler'
const Speedy = require('speedyjs-compiler').default
Default export likely available, but named export compile is preferred.
transpileModule
import { transpileModule } from 'speedyjs-compiler'
Hypothetical function; check actual API as documentation is incomplete.

Demonstrates compiling a simple TypeScript function (subset) into a WebAssembly module using the compile function.

import { compile } from 'speedyjs-compiler'; const wasmModule = compile(` function add(a: i32, b: i32): i32 { return a + b; } `, { optimize: true }); console.log(wasmModule);
speedyjs --version
Debug
Known issues
gotchaSupports only a subset of TypeScript types (e.g., i32, f64), not full TypeScript.
fix
Restrict TypeScript code to supported types: i32, i64, f32, f64, bool, void, arrays, pointers, strings.
affects: >=0.0.0
deprecatedProject appears abandoned; no updates since 2018.
fix
Consider alternatives like AssemblyScript or Emscripten.
affects: >=0.0.0
gotchaDocumentation is minimal; expect breaking changes or missing features.
fix
Refer to GitHub repo for examples and issues.
affects: >=0.0.0
breakingRequires Node.js version 8 or higher due to WebAssembly support.
fix
Ensure Node.js version >= 8 or use polyfills.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'speedyjs-compiler'
Package not installed or not found in node_modules.
fix
Run 'npm install speedyjs-compiler' and ensure it's listed in package.json.
TypeError: compile is not a function
Incorrect import method (CommonJS vs ESM).
fix
Use proper import: import { compile } from 'speedyjs-compiler'
Error: Unsupported type 'string' at position X
Speedy.js does not support full TypeScript type system; string is not supported.
fix
Replace TypeScript types with supported ones: use i32, f64, bool, etc.
Upgrade
Version history
0.0.19latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
speedyjs-compiler — npm install speedyjs-compiler · libregistry