{"repo":"johansatge/standalone-preact-builder","free":true,"listed":false,"github":"https://github.com/johansatge/standalone-preact-builder","clone":"git clone https://github.com/johansatge/standalone-preact-builder.git","description":"⚛️ Build custom, self-contained & self-hosted Preact script in the browser","language":"JavaScript","stars":39,"topics":["bundle","esbuild","esbuild-wasm","javascript","js","preact","preactjs","preact-demos","preact-signals","react"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Standalone Preact Builder ⚛️ Build custom, self-contained & self-hosted Preact script in the browser --- What is this tool Usage What is the point? Changelog License What is this tool Standalone Preact Builder generates a standalone JavaScript file that contains Preact and its most popular dependencies, to be self-hosted along with the rest of a JS app. The generator runs in the browser; no installation is needed. Usage - Open standalonepreact.satge.net - Check/uncheck the needed imports - Choose the desired output format - ESM will allow the script to be imported from a - IIFE will expose a window.standalonePreact object in the browser context, containing the requested imports - Download the generated script or copy it to the clipboard - Self-host it: it's small enough to be committed in the app's Git project, and deployed with the rest of the app What is the point? Preact offers two major advantages compared to the original React: - It's lightweight - It offers a no build tools route When using Preact without build tools, users are advised to rely on a CDN to import Preact into their app ( esm.sh/preact for instance, and a few other CDNs provide the same feature) but : - The whole Preact package is usually exposed (it's lightweight, but still) - Things may get complicated when other packages are needed: effects, signals, htm... CDNs don't always provide a clear documentation and finding the right URL with the right module to have everything working together is cumbersome - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/johansatge","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/johansatge/standalone-preact-builder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}