{"id":26060,"library":"paperclip-compiler-html","title":"Paperclip HTML Compiler","description":"The paperclip-compiler-html package at version 18.3.8 is an HTML compiler component of the Paperclip framework. It compiles Paperclip design documents into HTML. The library is currently a work in progress (WIP). Release cadence is unclear due to its early stage. Key differentiators: designed specifically for Paperclip's design-to-code pipeline. No stable releases yet; use with caution.","status":"active","version":"18.3.8","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install paperclip-compiler-html","lang":"bash","label":"npm"},{"cmd":"yarn add paperclip-compiler-html","lang":"bash","label":"yarn"},{"cmd":"pnpm add paperclip-compiler-html","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; no CommonJS support.","wrong":"const compileHTML = require('paperclip-compiler-html');","symbol":"compileHTML","correct":"import { compileHTML } from 'paperclip-compiler-html'"},{"note":"Named export, not default.","wrong":"import compileFile from 'paperclip-compiler-html';","symbol":"compileFile","correct":"import { compileFile } from 'paperclip-compiler-html'"},{"note":"Default export is available, but named exports are preferred.","wrong":"import { default as htmlCompiler } from 'paperclip-compiler-html';","symbol":"default","correct":"import htmlCompiler from 'paperclip-compiler-html'"}],"quickstart":{"code":"import { compileHTML } from 'paperclip-compiler-html';\n\nconst input = `<div>Hello</div>`;\nconst result = compileHTML(input, { mode: 'design' });\nconsole.log(result);","lang":"typescript","description":"Shows basic usage of compileHTML function to compile a Paperclip design string to HTML."},"warnings":[{"fix":"Pin to specific version and update frequently.","message":"Package is in early WIP state; API may change without notice.","severity":"gotcha","affected_versions":">=0"},{"fix":"Watch for changelog and update dependencies carefully.","message":"No stable release; expect breaking changes between minor versions.","severity":"gotcha","affected_versions":">=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 paperclip-compiler-html` and use correct import.","cause":"Package not installed or incorrect import path.","error":"Cannot find module 'paperclip-compiler-html'"},{"fix":"Use `import { compileHTML } from 'paperclip-compiler-html'`.","cause":"Import mistake: likely using default import instead of named.","error":"compileHTML is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}