Foundry lets you build your Firebase Cloud Functions notably faster, with less configuration, and with easy access to your production data.
Foundry consists of an open-sourced command-line tool called Foundry CLI and a pre-configured cloud environment for your development.
Develop with a copy of your production data
Specify what data you want to copy from your production Firestore, RealtimeDB and production users. We copy the data and fill the emulated Firestore, RealtimeDB and Firebase Auth. No need to maintain any custom scripts. You access this data as you would normally in your Firebase functions code - with the official Admin SDK.
You don't have to manually trigger your functions to run them, Foundry triggers them for you every time you make a change in your code and sends you back the output usually within 1-2 seconds. You just define your Cloud Functions and how you want to trigger them in the configuration file. It's like Read-Eval-Print-Loop for your Cloud Functions.
Develop in the environment identical to the production environment
Your Firebase Cloud Functions will run in a cloud environment that is identical to the environment where your functions are deployed. This way, you won't have unexpected production bugs. You don't have to create a separate Firebase project as your staging environment. Foundry is your staging environment.
Zero environment configuration
There isn't any configuration. Just run
$ foundry init and then
$ foundry go and you're ready.
Easily test integration of your Cloud Functions
Foundry gives you an access the emulated Firestore database, emulated RealtimeDB and emulated users. You can specify with what data they should be filled with and what parts of production Firestore, production RealtimeDB and users data should be copied to the cloud development environment. Together with the specification of how your Cloud Functions should be triggered every time you save your code, Foundry can load and trigger your Cloud Functions in the same way as they would be triggered on the Firebase platform.
Foundry doesn't deploy your Firebase Functions onto the Firebase platform. To deploy functions onto the Firebase platform use the official Firebase tool.
See how to set up Foundry and use in your project:
Explore examples to see Foundry in action with different use cases such as:
Easy access to production data during development
HTTPS cloud functions and HTTPS Callable cloud functions
Firestore, Firebase Auth, and RealtimeDB cloud functions