Get started with firebase CDN

Apache-2.0 licensed

Firebase: JS-based BaaS with real-time database and authentication for web/mobile apps.

Tags:
  • authentication
  • database
  • Firebase
  • firebase
  • realtime
  • storage

Stable version

Copied!

How to start using firebase CDN


// Import the Firebase library
import firebase from 'https://cdn.cdnhub.io/firebase/10.9.0/firebase-app.js';

// Initialize Firebase with your project configuration
const firebaseConfig = {
  apiKey: "your-api-key",
  authDomain: "your-auth-domain",
  projectId: "your-project-id",
  storageBucket: "your-storage-bucket",
  messagingSenderId: "your-messaging-sender-id",
  appId: "your-app-id"
};
firebase.initializeApp(firebaseConfig);

// Get a reference to the database service
const database = firebase.database();

// Set value in the database
database.ref('path/to/location').set({
  name: "John Doe",
  age: 30
});

// Listen for data changes in the database
database.ref('path/to/location').on('value', (snapshot) => {
  const data = snapshot.val();
  console.log('Data:', data);
});
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions

0.800.10 0.800.11 0.800.2 0.800.3 0.800.4 0.800.5 0.800.6 0.800.7 0.800.8 0.800.9 0.900.1 0.900.10 0.900.11 0.900.12 0.900.13 0.900.14 0.900.15 0.900.16 0.900.17 0.900.18 0.900.19 0.900.2 0.900.20 0.900.21 0.900.22 0.900.23 0.900.24 0.900.25 0.900.3 0.900.4 0.900.5 0.900.6 0.900.7 0.900.8 0.900.9 10.0.0 10.0.0-20230706020734 10.0.0-20230706224113 10.1.0 10.1.0-20230718222737 10.1.0-20230718235906 10.10.0 10.10.0-20240326182825 10.10.0-vertex-preview.8b70fc586 10.10.0-vertexai-preview.3d11ecc97 10.10.0-vertexai-preview.597bf4fbd 10.10.0-vertexai-preview.8b70fc586 10.10.0-vertexai-preview.cdcc49eb9 10.10.0-vertexai-preview.f25ccbbaf 10.11.0 10.11.0-20240409134135 10.11.0-20240410213044 10.11.0-passkey-preview.103ead202 10.11.0-vertexai-preview.1aadc47ed 10.11.1 10.11.1-20240424141009 10.11.1-dataconnect-preview.323fdc1b8 10.11.1-dataconnect-preview.42eb5e521 10.11.1-dataconnect-preview.4f89ef789 10.11.1-dataconnect-preview.81ee5169c 10.11.1-dataconnect-preview.b8e015c81 10.11.1-dataconnect-preview.f2a1a4bfb 10.11.1-dataconnect-preview.f2ddc3d7b 10.12.0 10.12.0-20240508213348 10.12.0-20240508224036 10.12.0-20240509155850 10.12.0-dataconnect-preview.388b61c7e 10.12.0-dataconnect-preview.877f8b7d0 10.12.1 10.12.1-20240520195236 *** 10.12.2 10.12.2-20240523185724 10.2.0 10.2.0-20230815211035 10.3.0 10.3.0-20230822180558 10.3.1 10.3.1-20230829150503 10.4.0 10.4.0-20230912221625 10.5.0 10.5.0-20231010210210 10.5.0-20231011154928 10.5.1 10.5.1-20231025123451 10.5.2 10.5.2-20231027003707 10.6.0 10.6.0-20231107192534 10.7.0 10.7.0-20231112213030 10.7.0-20231120214520 10.7.0-20231122201901 10.7.1 10.7.1-20231204143120 10.7.2 10.7.2-20240116185626 10.7.3-20240130223218 10.8.0 10.8.0-20240201000521 10.8.1 10.8.1-20240227144051 10.8.2-20240311134132 10.9.0 10.9.0-20240312134553 7.14.0 7.14.1 7.14.1-0 7.14.2-0 7.14.3 7.14.3-0 7.14.4 7.14.4-0 7.14.5 7.14.5-0 7.14.6 7.14.6-0 7.15.0 7.15.0-0 7.15.1-0 7.15.2 7.15.2-0 7.15.3 7.15.3-0 7.15.4 7.15.4-0 7.15.5 7.15.5-0 7.16.0 7.16.0-202067221036 7.16.1 7.16.1-2020615181619 7.17.0 7.17.0-2020621221717 7.17.1 7.17.1-20206244562 7.17.2 7.17.2-20206291717 7.17.2-20207421553 7.18.0 7.18.0-202071122108 7.19.0 7.19.0-202071902151 7.19.1 7.19.1-202072605451 7.20.0 7.20.0-202088235442 7.21.0 7.21.0-2020815231418 7.21.0-eap-auth-emulator.16fda4fd2 7.21.1 7.21.1-2020822235757 7.21.1-eap-auth-emulator.8fbbe234f 7.21.1-eap-auth-emulator.df41ee388 7.22.0 7.22.0-2020829204247 7.22.0-202083005649 7.22.0-2020830171442 7.22.0-2020830175047 7.22.0-20209118324 7.22.1 7.22.1-202095155838 7.22.1-alpha.01492c06e 7.22.1-alpha.6b865e005 7.22.1-alpha.96ae6a5fe 7.23.0 7.23.0-202096215419 7.24.0 7.24.0-20209141635 8.0.0 8.0.0-2020922203858 8.0.0-2020926155854 8.0.1 8.0.1-2020103231751 8.0.2 8.0.2-20201010222127 8.0.2-20201012233953 8.1.0 8.1.0-202010180421 8.1.1 8.1.1-1.0.0-eap-firestore-debug.9c6096f43 8.1.1-2020102005919 8.1.1-BundlePrerelease.f8bb4d8b7 8.1.2 8.1.2-BundlePrerelease.116cd82a2 8.1.2-BundlePrerelease.2c91fd1e5 8.1.2-BundlePrerelease.aae995629 8.1.2-BundlePrerelease.b662f8c0a 8.1.2-BundlePrerelease.dee1ef083 8.10.0 8.10.0-20217172214 8.10.1 8.10.1-2022028193537 8.2.0 8.2.0-202011822428 8.2.0-202011823329 8.2.1 8.2.1-20201116165133 8.2.10 8.2.10-20212222149 8.2.11-202121002818 8.2.2 8.2.2-202105235553 8.2.2-20210721223 8.2.2-longpoll.66863f547 8.2.3 8.2.3-2021012224526 8.2.4 8.2.4-2021019222814 8.2.5 8.2.5-2021026232412 8.2.6 8.2.6-202112213818 8.2.7 8.2.7-2021110183037 8.2.7-2021110184936 8.2.7-202119234540 8.2.8 8.2.8-202111622333 8.2.9 8.2.9-2021119233939 8.2.9-eap-storage-emulator.ed256f582 8.3.0 8.3.0-2021210184049 8.3.0-202121019112 8.3.1 8.3.1-2021216212658 8.3.1-2021217204338 8.3.2 8.3.2-2021230222248 8.3.3 8.3.3-20213623619 8.4.0 8.4.0-202131218423 8.4.0-202131220326 8.4.1 8.4.1-202131362347 8.4.2 8.4.2-20213211990 8.4.2-canary.8d63eacf9 8.4.2-canary.ac6997626 8.4.2-canary.ba2b11fe3 8.4.2-canary.d422436d1 8.4.3 8.4.3-2021327211545 8.4.3-canary.16102f0b4 8.4.3-canary.5ad33abe4 8.4.3-canary.90c97ae1e 8.4.3-canary.a13f5a03d 8.4.3-canary.ac4ad08a2 8.4.3-canary.c34ac7a92 8.4.3-canary.e123f241c 8.4.3-canary.efafeecd3 8.5.0 8.5.0-20214541157 8.6.0 8.6.0-2021411163636 8.6.0-canary.60e834739 8.6.1 8.6.1-2021412214515 8.6.1-canary.74b49d205 8.6.1-canary.96a47097f 8.6.1-canary.d742823e9 8.6.1-canary.de68cdca2 8.6.2 8.6.2-2021418232615 8.6.2-2021419192027 8.6.3 8.6.3-2021425213031 8.6.4 8.6.4-20215205147 8.6.5 8.6.5-202154162150 8.6.6 8.6.6-202159235118 8.6.7 8.6.7-2021510213430 8.6.8 8.6.8-202151602035 8.7.0 8.7.0-2021528231051 8.7.0-202153001032 8.7.0-20216122160 8.7.1 8.7.1-20216817413 8.8.0 8.8.0-202162022140 8.8.1 8.8.1-202162821943 8.9.0 8.9.0-20217322453 8.9.0-20217502114 8.9.0-20217505427 8.9.1 8.9.1-2021710165255 8.9.1-8.9.1-exp-types-exploration.1ffaad286 8.9.1-8.9.1-exp-types-exploration.2c90aec16 8.9.1-8.9.1-exp-types-exploration.416850ec8 8.9.1-8.9.1-exp-types-exploration.5a175a42b 8.9.1-8.9.1-exp-types-exploration.635c9e3fd 8.9.1-8.9.1-exp-types-exploration.b0568bbc6 9.0.0 9.0.0-2021719172025 9.0.0-2021719182840 9.0.0-202171919375 9.0.0-2021720181311 9.0.0-202172321475 9.0.0-202172325639 9.0.0-2021724205917 9.0.0-202172505352 9.0.0-20217250818 9.0.0-202172555844 9.0.0-beta.1 9.0.0-beta.2 9.0.0-beta.3 9.0.0-beta.4 9.0.0-beta.5 9.0.0-beta.6 9.0.0-beta.7 9.0.0-beta.8 9.0.1 9.0.1-2021727231341 9.0.1-2021730202621 9.0.2 9.0.2-202188185114 9.0.2-2021891633 9.0.3-202181503543 9.1.0 9.1.0-202182121215 9.1.0-2021822203916 9.1.0-2021822225617 9.1.0-2021823172527 9.1.0-2021824202338 9.1.1 9.1.1-2021830195733 9.1.2 9.1.2-20219523556 9.1.3 9.1.3-2021912211028 9.1.3-pr5646.1ea90dcb0 9.1.3-pr5646.2abc5e854 9.1.3-pr5646.4594d3fd6 9.1.3-pr5646.6d9dd3616 9.1.3-pr5646.99b165292 9.1.4-2021920175447 9.10.0 9.10.0-20220915175052 9.11.0 9.11.0-20220929164943 9.12.0 9.12.0-20221010190246 9.12.0-20221010203322 9.12.0-20221010211037 9.12.1 9.12.1-20221012194824 9.13.0 9.13.0-20221025194556 9.13.1-20221108184443 9.14.0 9.14.0-20221109210852 9.15.0 9.15.0-20221206221533 9.16.0 9.16.0-20230117221326 9.17.0 9.17.0-20230131204242 9.17.0-20230201003102 9.17.1 9.17.1-20230203174750 9.17.2 9.17.2-20230301000120 9.17.2-20230301191949 9.18.0 9.18.0-20230314181055 9.19.0 9.19.0-20230329040242 9.19.1 9.19.1-20230331192943 9.2.0 9.2.0-202192711727 9.2.0-2021927221742 9.20.0 9.20.0-20230413163153 9.21.0 9.21.0-20230425221647 9.22.0 9.22.0-20230511201449 9.22.0-20230512163859 9.22.1 9.22.1-20230524195328 9.22.1-20230525023155 9.22.2 9.22.2-20230525214058 9.22.2-20230525231514 9.22.2-20230531163950 9.22.2-20230606180032 9.22.2-20230606210827 9.22.3-20230620202556 9.23.0 9.23.0-20230621164011 9.3.0 9.3.0-2021102231614 9.4.0 9.4.0-2021108175111 9.4.1 9.4.1-20211010221442 9.5.0 9.5.0-20211017183813 9.5.0-20211017215430 9.5.0-20211018205651 9.6.0 9.6.0-2021111174650 9.6.1 9.6.1-2021117224551 9.6.1-2021118224937 9.6.1-2021119184024 9.6.10 9.6.10-2022222232915 9.6.11 9.6.11-2022312211851 9.6.12-20220427193931 9.6.2 9.6.2-202205224240 9.6.3 9.6.3-202201219200 9.6.3-20220130341 9.6.3-2022013201330 9.6.4 9.6.4-202202014332 9.6.4-2022020173427 9.6.5 9.6.5-202202622812 9.6.6 9.6.6-202211222730 9.6.7 9.6.7-2022116201138 9.6.8 9.6.8-20222320822 9.6.9 9.6.9-2022216223411 9.7.0 9.7.0-20220427215956 9.7.1-20220505222723 9.8.0 9.8.0-20220506182631 9.8.1 9.8.1-20220509172230 9.8.2 9.8.2-20220524224751 9.8.2-20220524231637 9.8.2-20220525182114 9.8.2-20220526194310 9.8.2-20220527194033 9.8.3 9.8.3-20220609194004 9.8.4 9.8.4-20220621210445 9.8.5-20220706191717 9.8.5-20220707184205 9.8.5-20220707195244 9.9.0 9.9.0-20220707215600 9.9.1 9.9.1-20220719211451 9.9.1-20220720012906 9.9.2 9.9.2-20220804201204 9.9.3 9.9.3-20220816193712 9.9.3-20220816211541 9.9.3-20220817201649 9.9.3-20220818183912 9.9.4 9.9.4-20220831174748 9.9.5-20220914164443