OneIDE

raw JSON →
0.0.2 verified Fri May 01 auth: no javascript

Web-based IDE for the OneLang transpiler (onelang.io). Current stable version: 0.0.2. Release cadence is early/experimental — no regular schedule yet. It provides a browser-based editing and transpilation environment for OneLang, a source-to-source transpiler that targets multiple languages. Key differentiators: focused specifically on OneLang workflow, integrates transpilation preview and multi-language output. Not yet production-ready; likely experimental and unstable.

error Error: Cannot find module 'onelang-ide'
cause Package not installed or not found in node_modules.
fix
Run npm install onelang-ide in your project directory.
error TypeError: ide.transpile is not a function
cause IDE instance not created correctly or import wrong.
fix
Ensure you use import { IDE } from 'onelang-ide' and then new IDE().
breaking Package version 0.0.2 is an early release and APIs may change without notice. Not recommended for production use.
fix Pin to a specific version or wait for stable release.
gotcha The package is experimental; no binary or CLI provided. Works only in browser environments (no Node.js runtime).
fix Use in a web application with bundler (Webpack, Vite) — not in Node scripts.
deprecated The transpile method currently takes only one target language per call; multi-target output is not yet supported.
fix Call transpile separately for each target language.
npm install onelang-ide
yarn add onelang-ide
pnpm add onelang-ide

Creates a OneLang IDE instance, transpiles a simple print statement to JavaScript, and logs the output.

import { IDE } from 'onelang-ide';

const ide = new IDE();
const code = 'print("Hello World");';
const result = ide.transpile(code, { target: 'javascript' });
console.log(result);