现已推出具有 MongoDB 兼容性的 Firestore 企业版!
了解详情。
SDK ها و کتابخانه های سرویس گیرنده
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
این صفحه SDK ها و کتابخانه های سرویس گیرنده موجود برای Firebase API را توضیح می دهد. در حالی که میتوانید تماسهای مستقیم HTTP و RPC با Firebase API برقرار کنید، کتابخانههای مشتری Firebase بهترین روشها را برای شما پیادهسازی میکنند و دسترسی به پایگاه دادهتان را آسانتر میکنند.
Firebase از SDK های موبایل یا وب و کتابخانه های سرویس گیرنده پشتیبانی می کند.
SDK های موبایل و وب
Firebase از SDK برای Android، iOS و وب پشتیبانی می کند. همراه با قوانین امنیتی Firebase و Firebase Auth ، SDK های موبایل و وب از معماری برنامه های بدون سرور پشتیبانی می کنند که در آن کلاینت ها مستقیماً به پایگاه داده Firebase شما متصل می شوند. با معماری بدون سرور، نیازی به نگهداری سرور واسطه بین مشتریان و پایگاه داده Firebase ندارید.
SDKهای موبایل و وب همچنین از بهروزرسانیهای بیدرنگ و تداوم دادههای آفلاین پشتیبانی میکنند.
برای شروع کار با پلتفرمهای Android، Apple، یا Web SDK، به
شروع با Firebase مراجعه کنید.
مراجع و منابع
برای اطلاعات بیشتر در مورد هر SDK، به منابع زیر مراجعه کنید:
وب
علاوه بر SDK مشتری استاندارد، Firebase Firestore Lite را ارائه میکند، یک SDK سبک وزن و فقط REST.
کتابخانه های سرویس گیرنده سرور
Firebase از کتابخانه های سرویس گیرنده سرور برای C#، Go، Java، Node.js، PHP، Python و Ruby پشتیبانی می کند. از این کتابخانه های سرویس گیرنده برای راه اندازی محیط های سرور ممتاز استفاده کنید.
کتابخانه های سرویس گیرنده سرور یک محیط Firebase ممتاز با دسترسی کامل به پایگاه داده شما ایجاد می کنند. در این محیط، درخواستها بر اساس قوانین امنیتی Firebase شما ارزیابی نمیشوند. سرورهای Firebase ممتاز با استفاده از مدیریت هویت و دسترسی (IAM) ایمن می شوند، به امنیت برای کتابخانه های سرویس گیرنده سرور مراجعه کنید.
از کتابخانه های سرویس گیرنده سرور برای وظایف پایگاه داده مدیریتی استفاده کنید یا اگر معماری با یک سرور واسطه بین کاربران و پایگاه داده Firebase خود را ترجیح می دهید.
کتابخانه های سرویس گیرنده سرور Firebase به عنوان SDK های مدیریت Firebase و به عنوان کتابخانه های سرویس گیرنده Google Cloud در دسترس هستند. هر دو مجموعه از کتابخانه ها ویژگی های Firebase یکسانی را ارائه می دهند. Firebase Admin SDKs دسترسی به Firebase و چندین محصول دیگر Firebase، مانند Firebase Auth و Firebase Cloud Messaging را در یک کتابخانه بستهبندی میکند.
Firebase Admin SDK
Firebase Admin SDK کتابخانه های سرویس گیرنده Google Cloud را برای Firebase در کنار کتابخانه های سرویس گیرنده و SDKs برای چندین ویژگی دیگر Firebase قرار می دهد. با استفاده از یکی از Admin SDK، می توانید دسترسی به Firebase و چندین سرویس دیگر را از یک SDK واحد راه اندازی کنید. Firebase Admin SDK از دسترسی Firebase در Java، Python، Node.js و Go پشتیبانی می کند.
برای شروع کار با Firebase Admin SDK، به افزودن Firebase Admin SDK به سرور خود مراجعه کنید.
مراجع و منابع
برای اطلاعات بیشتر در مورد Firebase Admin SDK، به منابع زیر مراجعه کنید:
کتابخانه های سرویس گیرنده Google Cloud
کتابخانه های سرویس گیرنده Google Cloud از دسترسی Firebase در Java، Python، Node.js، Go، PHP، C# و Ruby پشتیبانی می کنند. برای شروع کار با یکی از کتابخانههای سرویس گیرنده Google Cloud، به شروع سریع با استفاده از کتابخانه سرویس گیرنده سرور مراجعه کنید.
مراجع و منابع
برای اطلاعات بیشتر درباره کتابخانههای سرویس گیرنده Google Cloud برای Firebase ، به منابع زیر مراجعه کنید:
ادغام کتابخانه های شخص ثالث
علاوه بر SDK های موبایل یا وب و کتابخانه های سرویس گیرنده سرور، Firebase تعدادی ادغام با کتابخانه های منبع باز ارائه می دهد. برای اطلاعات بیشتر، کتابخانه و ادغام چارچوب را ببینید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["\u003cbr /\u003e\n\nThis page describes the SDKs and client libraries available for the\nFirebase API. While you can make direct HTTP and RPC calls to the\nFirebase API, the Firebase client libraries\nimplement best practices for you and make it easier to access your database.\n\nFirebase supports mobile or web SDKs and server client\nlibraries.\n\nMobile and web SDKs\n\nFirebase supports SDKs for Android, iOS, and web. Combined with\n[Firebase security rules](https://cloud.google.com/firestore/docs/security/get-started)\nand [Firebase Auth](https://firebase.google.com/docs/auth/), the\nmobile and web SDKs support serverless app architectures where clients connect\ndirectly to your Firebase database. With a serverless\narchitecture, you don't need to maintain an intermediary server between your\nclients and your Firebase database.\n\nThe mobile and web SDKs also support\n[realtime updates](https://cloud.google.com/firestore/docs/query-data/listen)\nand [offline data persistence](https://firebase.google.com/docs/firestore/manage-data/enable-offline).\nTo get started with the Android, Apple platforms, or Web SDK, see [Get started with Firebase](/docs/firestore/quickstart).\n\nReferences and resources\n\nFor more information about each SDK, see the following resources: \n\nWeb\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/js/firebase.firestore)\n- [Source Code](https://github.com/firebase/firebase-js-sdk/tree/master/packages/firestore)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-js-sdk/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+javascript)\n\n\nIn addition to the standard client SDK, Firebase offers Firestore Lite, a\nlightweight, REST-only SDK.\n\n- [Firestore Lite Solutions Guide](https://firebase.google.com/docs/firestore/solutions/firestore-lite)\n- [Firestore Lite API Reference Documentation](https://firebase.google.com/docs/reference/js/firestore_lite.md)\n- [Firestore Lite Source Code](https://github.com/firebase/firebase-js-sdk/tree/master/packages/firestore/lite)\n- [Firestore Lite GitHub Issue Tracker](https://github.com/firebase/firebase-js-sdk/labels/api%3A%20firestore)\n\niOS+\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/swift/firebasefirestore/api/reference/Classes)\n- [Source Code](https://github.com/firebase/firebase-ios-sdk/tree/master/Firestore)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-ios-sdk/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+ios)\n\nAndroid\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/package-summary)\n- [Source Code](https://github.com/firebase/firebase-android-sdk/tree/master/firebase-firestore)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-android-sdk/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+android)\n\nFlutter\n\n- [API Reference Documentation](https://pub.dev/documentation/cloud_firestore/latest/)\n- [Source Code](https://github.com/firebase/flutterfire/)\n- [GitHub Issue Tracker](https://github.com/firebase/flutterfire/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+flutter)\n\nServer client libraries\n\nFirebase supports server client libraries for C#, Go, Java,\nNode.js, PHP, Python, and Ruby. Use these client libraries to set up\nprivileged server environments.\n\nServer client libraries create a privileged Firebase environment\nwith full access to your database. In this environment, requests are not\nevaluated against your Firebase security rules. Privileged\nFirebase servers are secured using Identity and Access Management\n(IAM), see [Security for server client libraries](../security/iam).\n\nUse the server client libraries for administrative database tasks or\nif you prefer an architecture with an intermediary server between your users and\nyour Firebase database.\n\nFirebase server client libraries are available as [Firebase Admin\nSDKs](https://firebase.google.com/docs/admin/setup) and as Google Cloud\nclient libraries. Both sets of libraries\nprovide the same Firebase features. The Firebase Admin SDKs bundle\naccess to Firebase and several other Firebase products, like\nFirebase Auth and Firebase Cloud Messaging, in a single library.\n\nFirebase Admin SDKs\n\nThe [Firebase Admin SDKs](https://firebase.google.com/docs/admin/setup) bundle\nthe Google Cloud client libraries for Firebase alongside client\nlibraries and SDKs for several other Firebase features. Using one of the Admin\nSDKs, you can initialize access to Firebase and several other\nservices from a single SDK. The Firebase Admin SDKs support\nFirebase access in Java, Python, Node.js, and Go.\n\nTo get started with a Firebase Admin SDK, see\n[Add the Firebase Admin SDK to Your Server](https://firebase.google.com/docs/admin/setup).\n\nReferences and resources\n\nFor more information about Firebase Admin SDKs, see the following resources: \n\nJava\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/package-summary)\n- [Source Code](https://github.com/firebase/firebase-admin-java)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-java/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-admin+java)\n\nPython\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/admin/python/)\n- [Source Code](https://github.com/firebase/firebase-admin-python)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-python/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-admin+python)\n\nNode.js\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/admin/node/)\n- [Source Code](https://github.com/firebase/firebase-admin-node)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-node/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/node.js+firebase-admin)\n\nGo\n\n- [API Reference Documentation](https://godoc.org/firebase.google.com/go)\n- [Source Code](https://github.com/firebase/firebase-admin-go)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-go/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-admin+go)\n\nGoogle Cloud client libraries\n\nThe Google Cloud client libraries support Firebase access in\nJava, Python, Node.js, Go, PHP, C#, and Ruby. To get started with one of the\nGoogle Cloud client libraries, see the\n[Quickstart using a Server Client Library](https://cloud.google.com/firestore/docs/quickstart-servers).\n\nReferences and resources\n\nFor more information about Google Cloud client libraries for Firebase,\nsee the following resources: \n\nJava\n\n- [API Reference Documentation](https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/overview.html)\n- [Source Code](https://github.com/googleapis/java-firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/java-firestore/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+java)\n\nPython\n\n- [API Reference Documentation](https://cloud.google.com/python/docs/reference/firestore/latest/index.html)\n- [Source Code](https://github.com/googleapis/python-firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/python-firestore/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+python)\n\nNode.js\n\n- [API Reference Documentation](https://googleapis.dev/nodejs/firestore/latest/)\n- [Source Code](https://github.com/googleapis/nodejs-firestore/)\n- [GitHub Issue Tracker](https://github.com/googleapis/nodejs-firestore/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/node.js+google-cloud-firestore)\n\nGo\n\n- [API Reference Documentation](https://godoc.org/cloud.google.com/go/firestore)\n- [Source Code](https://github.com/googleapis/google-cloud-go/tree/master/firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-go/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+go)\n\nPHP\n\n- [API Reference Documentation](https://googleapis.github.io/google-cloud-php/#/docs/cloud-firestore/latest)\n- [Source Code](https://github.com/googleapis/google-cloud-php/tree/master/Firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-php/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+php)\n\nC#\n\n- [API Reference Documentation](https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Firestore/)\n- [Source Code](https://github.com/googleapis/google-cloud-dotnet)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-dotnet/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+c%23)\n\nRuby\n\n- [API Reference Documentation](https://googleapis.dev/ruby/google-cloud-firestore/latest)\n- [Source Code](https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-ruby/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+ruby)\n\nThird-party library integrations\n\nIn addition to the mobile or web SDKs and server client libraries,\nFirebase offers a number of integrations with open-source\nlibraries. For more information, see [Library and framework\nintegrations](https://firebase.google.com/docs/firestore/library-integrations)."]]