{"id":24915,"library":"appbot-compiler","title":"AppBot Compiler","description":"Experimental CommonJS module compiler for target-specific modular design, enabling device-tailored app versions from a shared codebase. Current version 0.0.19 (unstable, low release cadence). Dynamically compiles CommonJS modules based on screen width or device type, serving conditional bundles (e.g., mobile vs web). A proof-of-concept for server-side module compilation with query parameter routing, not production-ready. Differentiators: runtime module assembly per device, mirror module names across targets. Risks: no active maintenance, no security audits, single author.","status":"deprecated","version":"0.0.19","language":"javascript","source_language":"en","source_url":"git://github.com/rodriguezartav/appbot-compiler","tags":["javascript","nodejs","commonjs"],"install":[{"cmd":"npm install appbot-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add appbot-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add appbot-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is experimental; no stable ESM/CJS module.","wrong":"const Compiler = require('appbot-compiler')","symbol":"Compiler","correct":"import { Compiler } from 'appbot-compiler'"},{"note":"Named export only; default export does not exist.","wrong":"import compile from 'appbot-compiler'","symbol":"compile","correct":"import { compile } from 'appbot-compiler'"},{"note":"CommonJS only; no ESM support. Use require.","wrong":"import * as appbot from 'appbot-compiler'","symbol":"require","correct":"const appbot = require('appbot-compiler')"}],"quickstart":{"code":"const { compile } = require('appbot-compiler');\nconst result = compile({\n  dir: './app',\n  target: 'mobile',\n  width: 320\n});\nconsole.log(result.bundle);","lang":"javascript","description":"Shows how to compile a CommonJS app for mobile target with width query parameter."},"warnings":[{"fix":"Pin to exact version; no SemVer guarantees.","message":"Package is experimental and may have breaking changes between minor versions.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Migrate to a maintained modular compilation solution.","message":"No updates since 2014; considered abandoned.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure all modules use synchronous require; no dynamic imports.","message":"Compiler only works with synchronous require-based CommonJS modules.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install appbot-compiler --save-dev`.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'appbot-compiler'"},{"fix":"Use `const { compile } = require('appbot-compiler');`.","cause":"Import style mismatch (tried default import instead of named).","error":"compile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}