{"id":25584,"library":"firebase-bolt-transpiler","title":"Firebase Bolt Transpiler","description":"Transpile Firebase Bolt type definitions to TypeScript interfaces. Current version 0.1.0, experimental. No active maintenance. Converts Bolt schemas like 'type Person { name: String }' to TypeScript interfaces. Limited by Bolt compiler's handling of arrays and inheritance. Alternatives: write TypeScript manually.","status":"abandoned","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/fny/firebase-bolt-transpiler","tags":["javascript","firebase","bolt","typescript"],"install":[{"cmd":"npm install firebase-bolt-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add firebase-bolt-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add firebase-bolt-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CommonJS only; no ESM module available.","wrong":"import boltTranspiler from 'boltTranspiler';","symbol":"boltTranspiler","correct":"const boltTranspiler = require('boltTranspiler');"},{"note":"Function name is lowercase 'typescript'.","wrong":"boltTranspiler.TypeScript('type Person { name: String }')","symbol":"typescript","correct":"boltTranspiler.typescript('type Person { name: String }')"},{"note":"Not yet implemented; returns undefined.","wrong":"boltTranspiler.Swift('type Person { name: String }')","symbol":"swift","correct":"boltTranspiler.swift('type Person { name: String }')"}],"quickstart":{"code":"const boltTranspiler = require('boltTranspiler');\nconst boltCode = `type Person {\n  name: String\n  age: Number\n  address: String?\n}`;\nconst tsOutput = boltTranspiler.typescript(boltCode);\nconsole.log(tsOutput);\n// Output:\n// interface Person {\n//   name: string;\n//   age: number;\n//   address?: string;\n// }","lang":"javascript","description":"Demonstrates transpiling a simple Bolt type definition to TypeScript interface."},"warnings":[{"fix":"Manually edit the generated TypeScript to use actual arrays.","message":"Array types (e.g. Object[]) are not translated to arrays; they become Map<String, Object> generics.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Remove 'extends Object' from input Bolt code.","message":"ExtendedObject extends Object {} does not produce 'extends Object' in output; Bolt compiler marks everything as derived from Object.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Avoid using this package; use alternative tools or write TypeScript manually.","message":"Package is abandoned; no releases or updates since 2016.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Do not rely on swift() or java() methods; they return undefined.","message":"Swift and Java transpilation methods are documented but not implemented.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure package is installed: npm install firebase-bolt-transpiler. Use: const boltTranspiler = require('boltTranspiler');","cause":"Package not installed correctly or imported with wrong case.","error":"TypeError: boltTranspiler.typescript is not a function"},{"fix":"Install correct package: npm install firebase-bolt-transpiler, then: const boltTranspiler = require('firebase-bolt-transpiler');","cause":"Import path is wrong; package name is 'firebase-bolt-transpiler' not 'boltTranspiler'.","error":"Cannot find module 'boltTranspiler'"},{"fix":"Use only typescript() method; ignore dart(), java(), swift() stubs.","cause":"No Dart support exists; only TypeScript, Swift, Java stubs.","error":"boltTranspiler.dart is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}