Registry / data / paperclip-interim

paperclip-interim

JSON →
library18.3.8jsnpmunverified

Interim compiler step for Paperclip, a visual programming language. Current stable version 18.3.8. Acts as an intermediate representation layer between Paperclip engines and output compilers like React. Bundles AST transformations and provides a uniform interface for compiler backends. Differentiates by being part of the Paperclip ecosystem, designed for multi-target code generation with a focus on UI components. Release cadence is tied to Paperclip monorepo releases, roughly monthly.

npm install paperclip-interim
INSTALL
IMPORT
SIG · PAPERCLIP-INTERIM
P
paperclip-interim
datajavascriptv18.3.8
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.

InterimCompiler
✓ import { InterimCompiler } from 'paperclip-interim'
✗ const { InterimCompiler } = require('paperclip-interim')
ESM-only since v18. CommonJS require will fail.
InterimCompiler (default)
✓ import InterimCompiler from 'paperclip-interim'
✗ import { default } from 'paperclip-interim'
Default export also available for convenience, but named export is preferred for tree-shaking.
InterimNode
✓ import { InterimNode } from 'paperclip-interim'
✗ import InterimNode from 'paperclip-interim'
InterimNode is a type export, available from named exports for TypeScript usage.

Shows basic usage of InterimCompiler with an existing engine and serialization of the intermediate representation.

import { InterimCompiler } from 'paperclip-interim'; import { existingEngine } from './engine'; // hypothetical const compiler = new InterimCompiler(existingEngine); console.log(compiler.toString()); // serialized IR
Debug
Known issues
gotchaInterimCompiler constructor expects an engine instance; passing a string will throw silently.
fix
Ensure first argument is a compatible Paperclip engine object.
affects: >=18.0
gotchatoString() method may produce undefined if not preprocessed; check engine state.
fix
Run engine's compile() before accessing InterimCompiler's output methods.
affects: >=18.0
deprecatedInterimCompiler.serialize() is deprecated in v18, use toString() instead.
fix
Replace serialize() calls with toString().
affects: >=18.0
Errors
Common errors & fixes
TypeError: InterimCompiler is not a constructor
Using CommonJS require() in ESM-only package.
fix
Use import { InterimCompiler } from 'paperclip-interim' or ensure your module system is ESM.
Cannot find module 'paperclip-interim'
Package not installed or missing from dependencies.
fix
Run npm install paperclip-interim@18.3.8
Upgrade
Version history
18.3.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
paperclip-interim — npm install paperclip-interim · libregistry