{"library":"sparkar-bundler","title":"Meta Spark Studio TypeScript Bundler","type":"library","description":"sparkar-bundler is a command-line interface (CLI) tool designed to bundle TypeScript projects specifically for use within Meta Spark Studio. It leverages `esbuild` for high-performance bundling, enabling developers to write Spark AR scripts in TypeScript while benefiting from features like IntelliSense for both Meta Spark API definitions and external Node.js modules. This tool aims to streamline the development workflow by abstracting away complex bundling configurations. Currently at version 0.3.0, it is in active development with a focus on providing a seamless experience for integrating modern JavaScript/TypeScript practices into the Spark AR ecosystem. Its primary differentiator is the specialized handling of Meta Spark API type definitions, which is crucial for developer tooling in a proprietary environment. The release cadence is currently irregular as it's an early-stage project.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install sparkar-bundler"],"cli":{"name":"sparkar-bundler","version":null}},"imports":["npm install -g sparkar-bundler"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/pofulu/sparkar-bundler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sparkar-bundler","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"npm install -g sparkar-bundler\n\n# Navigate into your Meta Spark Studio project directory\ncd ~/mySparkProject\n\n# Ensure you have an empty JavaScript file saved in Spark AR Studio\n# (e.g., scripts/script.js, ensure it's referenced in the project)\n\n# Run the bundler, it will guide you to select the target script\nsparkar-bundler\n\n# The bundled output (e.g., main.js) will be written to your selected script file.\n# You should see 'hello, world' (or your script's output) in Meta Spark Studio console.","lang":"typescript","description":"Demonstrates the global installation and basic command-line usage to bundle a TypeScript source file into a Meta Spark Studio project.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}