{"repo":"george43g/better-firebase-functions","free":true,"listed":false,"github":"https://github.com/george43g/better-firebase-functions","clone":"git clone https://github.com/george43g/better-firebase-functions.git","description":"This repo provides functionality for a better way of organising files, imports and function triggers in Firebase Cloud Functions","language":"TypeScript","stars":183,"topics":["firebase","cloud-functions","firebase-cloud-functions","firebase-cloud","optimization"],"license":"MPL-2.0","category":"saas-starters-boilerplates","readme_excerpt":"better-firebase-functions Auto-export Firebase Cloud Functions with cold-start optimization built in. --- What is this? better-firebase-functions replaces the boilerplate of manually importing and exporting every trigger with a single call. More importantly, it implements a cold-start optimization : at runtime, only the single function module that is actually being invoked is loaded — not every function in your project. In large projects with many functions this can reduce cold-start time and memory usage significantly. In single-function projects it adds zero overhead. Supports: - Gen 1 functions ( FUNCTION NAME ) - Gen 2 functions / Cloud Run ( K SERVICE , FUNCTION TARGET ) - CJS and ESM entry points - esbuild, webpack, and Rollup for per-function bundling (optional, takes the optimization further) --- Packages Package Description --- --- better-firebase-functions Core runtime library. Zero dependencies. better-firebase-functions-esbuild esbuild build helper for per-function bundles better-firebase-functions-webpack webpack plugin for per-function bundles better-firebase-functions-rollup Rollup plugin for per-function bundles --- Quick Start 1. Install 2. Replace your entry point Note on searchGlob : the glob should match files as they exist at runtime after compilation (i.e. .js files). If you run TypeScript natively (via tsx , ts-node , etc.) you can glob .ts directly. Bundler plugins automatically expand .js globs to include .ts source files at build time. 3. Write each ","default_branch":null,"files":null,"tree":[],"storefront":"/r/george43g","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/george43g/better-firebase-functions/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."}