george43ggeorge43gCommunityยท1 Agent Skills Included

better-firebase-functions

Auto-export Firebase functions with cold-start optimization

Automatically discovers and exports Firebase Cloud Functions from file paths, removing manual import boilerplate. Loads only the single invoked function module at runtime, cutting cold-start time and memory usage in large projects. Supports Gen 1, Gen 2, CJS, and ESM, with optional esbuild, webpack, and Rollup plugins for per-function bundling.
npx skills add george43g/better-firebase-functions --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install better-firebase-functions?โ–ผ

Run `npx skills add george43g/better-firebase-functions --all -g -y` in your terminal to install this skill globally.

How to reduce Firebase Functions cold-start time?โ–ผ

This library loads only the single function module being invoked instead of every module in your project, significantly reducing cold-start time and memory usage.

How to auto-export Firebase Cloud Functions?โ–ผ

Call exportFunctions once in your entry point and write each trigger as a default export; functions are named automatically from their file paths.

Does it work with Gen 2 functions and Cloud Run?โ–ผ

Yes. It supports Gen 1, Gen 2, and Cloud Run runtimes, plus both CommonJS and ESM entry points.

Can I bundle each Firebase function separately?โ–ผ

Yes. Optional esbuild, webpack, and Rollup plugins produce one tree-shaken bundle per function, inheriting your existing configuration automatically.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’