Transp is a client-side transpilation library that transparently transpiles TypeScript, JSX, and other modern JavaScript dialects directly in the browser using Babel Standalone, without requiring Node.js or a build step. Current stable version is 0.0.4. It provides a JavaScript API with drop-in replacements for dynamic import() and eval(), as well as a custom HTML element <trans-script> for inline or external scripts. Released with an irregular cadence as it is primarily a proof-of-concept for development/debugging, not production use due to large bundle size. Key differentiators: no build tooling needed, uses full Babel Standalone, supports custom presets/plugins, and enables external library loading via CDN.
npm install transpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to use Transp in a browser environment: importing the ESM bundle, dynamic import of a TypeScript file, inline evaluation with TypeScript, and the <trans-script> custom element.
Only use for development or debugging; not suitable for production. Consider server-side transpilation or smaller alternatives like esbuild.
Always alias the import when using in a module environment: import { import as transpImport } from 'transp'.Use the JavaScript API or ensure scripts are independent.
Check Babel compatibility for specific TypeScript features or JSX configurations.
Use named imports: import { import as transpImport, eval as transpEval, configure, initCustomElement } from 'transp'.Either load transp as an ES module, or alias the import: import { import as transpImport } from 'transp' inside a <script type="module">.Verify the CDN URL or bundle path. For local usage, ensure npm install and use correct path: './node_modules/transp/dist/transp.esm.js'.
No dependency data recorded yet.