با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Firebase Extensions به شما کمک می کند زمان صرف شده برای توسعه، نگهداری و رشد برنامه خود را کاهش دهید.
وقتی یک Firebase Extension پیدا میکنید که نیاز برنامه یا پروژه شما را برطرف میکند، تنها کاری که انجام میدهید نصب و پیکربندی برنامه افزودنی است. اگر به پیکربندی های متعدد افزونه نیاز دارید، می توانید افزونه را چندین بار با پیکربندی متفاوت برای هر نمونه ای که نصب می کنید نصب کنید.
با برنامههای افزودنی، زمانی را صرف تحقیق، نوشتن و اشکالزدایی کدی که عملکرد را پیادهسازی میکند یا یک کار را برای برنامه یا پروژه شما خودکار میکند، نمیگذارید.
برای نصب یا مدیریت برنامههای افزودنی، باید یکی از این نقشها به شما اختصاص داده شود: مالک یا ویرایشگر یا مدیر Firebase .
برای نصب افزونه، پروژه شما باید در طرح Blaze (پرداخت در حین حرکت) باشد. اگرچه هزینه ای برای نصب برنامه افزودنی دریافت نمی شود، ممکن است برای استفاده از سرویس های Firebase یا سرویس های Cloud مانند Cloud Secret Manager هزینه ای دریافت کنید، اگر میزان استفاده شما از سطح رایگان سرویس ها بیشتر شود.
همچنین میتوانید برنامههای افزودنی را قبل از نصب آنها در پروژه با استفاده از شبیهساز Extensions ، یکی از مؤلفههای Firebase Local Emulator Suite ارزیابی کنید.
افزونه های رسمی Firebase
افزونههای رسمی Firebase توسط سرویسهای شریک Firebase و Firebase Extensions توسعه و آزمایش شدهاند. این افزونه ها قابل اعتماد و امن هستند.
برای یافتن پیوندی به کد منبع یک برنامه افزودنی، روی «بیشتر بدانید » در کارت برنامه افزودنی در Extensions Hub کلیک کنید.
محتویات کد منبع یک برنامه افزودنی
فهرست منبع یک برنامه افزودنی شامل:
فایل extension.yaml - شامل ابرداده های برنامه افزودنی است و منابع ایجاد شده، API های Google و نقش های دسترسی مورد نیاز برای عملیات، و هر پارامتر پیکربندی شده توسط کاربر (متغیرهای محیطی) برای برنامه افزودنی را تعریف می کند.
پوشه توابع - حاوی فایلهای کد منبع برنامه افزودنی است
فایل README - فراداده برنامه افزودنی (اما در قالب قابل خواندن برای انسان) و همچنین محتوای فایل PREINSTALL را فهرست می کند.
فایل PREINSTALL - نحوه عملکرد برنامه افزودنی، هر کار لازم قبل از نصب، الزامات پیکربندی، و جزئیات مربوط به برنامه افزودنی را شرح می دهد.
فایل POSTINSTALL - دستورالعملهای استفاده خاص و هرگونه الزامات یکپارچهسازی بیشتر را شرح میدهد
منابع برای افزونه
هر پروژه Firebase شامل چندین نوع "منبع" است. منابع پروژه می تواند شامل مواردی مانند توابع ابری مستقر شده، نمونه های پایگاه داده، سطل های Cloud Storage ، مشاغل Cloud Scheduler و داده های Cloud Secret Manager باشد.
هنگامی که یک برنامه افزودنی را نصب می کنید، Firebase منابع جدیدی برای نمونه برنامه افزودنی در پروژه شما ایجاد می کند. این منابع توسط افزونه برای فعالیت مورد نیاز است.
توجه داشته باشید که اگر نمونه ای از یک برنامه افزودنی را حذف نصب کنید ، تمام منابعی که Firebase به طور خاص برای عملکرد آن نمونه از برنامه افزودنی ایجاد کرده است (مانند مجموعه ای از توابع) حذف می شوند. اما موارد زیر حذف نمی شوند:
هر مصنوع ایجاد شده توسط افزونه (مانند تصاویر ذخیره شده).
هر منبع دیگری در پروژه شما، مانند نمونه پایگاه داده یا سطل Cloud Storage . حتی اگر برنامه افزودنی با این منابع دیگر تعامل داشته باشد، آنها خاص برنامه افزودنی نیستند، بنابراین اگر برنامه افزودنی حذف نصب شود، حذف نمی شوند.
با استفاده از کنسول Firebase ، Firebase CLI، یا SDK های تولید شده خودکار {: #console-vs-cli}
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["\u003cbr /\u003e\n\nFirebase Extensions help you reduce time spent on development, maintenance,\nand growth of your app.\n\nWhen you find a Firebase Extension that solves a need for your app\nor project, all you do is install and configure the extension. If you need\nmultiple configurations of the extension, you can install the extension multiple\ntimes, with a different configuration for each instance you install.\n\nWith extensions,\nyou don't spend time researching, writing, and debugging the code that\nimplements functionality or automates a task for your app or project.\n\nTo install or manage extensions, you must be assigned one of these roles:\n[Owner or Editor](/docs/projects/iam/roles-basic) or\n[Firebase Admin](/docs/projects/iam/roles-predefined-all-products).\n\nTo install an extension, your project must be on the **Blaze** (pay as you\ngo) plan. Although there is no charge for installing an extension, you might be\ncharged for your use of Firebase services or Cloud services such as\n[Cloud Secret Manager](https://cloud.google.com/secret-manager/pricing), if your usage exceeds the services' free\ntier.\n\nYou can also evaluate extensions before installing them on a project using the\nExtensions emulator, a component of the Firebase Local Emulator Suite.\n\nOfficial Firebase extensions\n\nThe **official Firebase extensions** are developed and tested by Firebase\nand Firebase Extensions partner services. These extensions are reliable and\nsecure.\n\nBrowse Firebase extensions\n\nBrowse Firebase extensions in the [Extensions Hub](https://extensions.dev/extensions).\n\nView the source code of an extension\n\nTo find a link to the source code for an extension,\nclick **Learn more** on the extension's card in the Extensions Hub.\n\nContents of an extension's source code\n\nAn extension's source directory includes:\n\n- **extension.yaml file** --- Contains the extension's metadata and defines\n the [resources](#resources) created, the Google APIs and\n [access roles](/docs/extensions/permissions-granted-to-extension) required for\n operation, and any user-configured parameters (environment variables) for the\n extension\n\n- **functions directory** --- Contains the files for the source code for the\n extension\n\n- **README file** --- Lists the extension's metadata (but in more\n human-readable format) as well as the content from the PREINSTALL file\n\n- **PREINSTALL file** --- Describes how the extension works, any necessary\n pre-installation tasks, configuration requirements, and details about the\n extension\n\n- **POSTINSTALL file** --- Describes specific usage instructions and any further\n integration requirements\n\nResources for an extension\n\nEvery Firebase project contains several types of \"resources\". Project resources\ncan include things like deployed Cloud Functions, database instances,\nCloud Storage buckets, Cloud Scheduler jobs, and Cloud Secret Manager data.\n\nWhen you install an extension, Firebase creates new *extension-instance-specific*\nresources in your project. These resources are required by the extension to\noperate.\n\nNote that, if you [uninstall an instance of an\nextension](/docs/extensions/manage-installed-extensions#uninstall), all the\nresources that Firebase created specifically for that instance of the extension\nto operate (like a set of functions) are deleted. However, the following are\n***not*** deleted:\n\n- Any artifacts created by the extension (like stored images).\n\n- Any other resources in your project, like a database instance or Cloud Storage\n bucket. Even if the extension interacted with these other resources, they\n are not *extension-specific*, so they aren't deleted if the extension is\n uninstalled.\n\nUsing the Firebase console, the Firebase CLI, or autogenerated SDKs {: #console-vs-cli}\n\nYou can install and manage extensions using\neither the\n[Firebase console](/docs/extensions/install-extensions?platform=console)\nor the\n[Firebase CLI](/docs/extensions/install-extensions?platform=cli),\nor in code using\n[autogenerated SDKs](/docs/extensions/install-extensions?platform=sdk).\n\n| **Action** | **Firebase console** | **Firebase CLI** | **Autogenerated SDK** |\n|----------------------------------------------|----------------------|------------------|-----------------------|\n| View detailed information (pre-installation) | | | |\n| Install | | | |\n| View configuration (post-installation) | | | |\n| Edit configuration | | | |\n| Update version | | | |\n| Uninstall | | | |\n\nNext Steps\n\n- View detailed information about an extension before you install the extension\n ([Extensions Hub](https://extensions.dev/extensions) or\n [Firebase CLI](/docs/extensions/install-extensions#view-details)).\n\n- Install an extension into your Firebase project using either the\n [Firebase console](/docs/extensions/install-extensions?platform=console),\n the [Firebase CLI](/docs/extensions/install-extensions?platform=cli).\n or [autogenerated SDKs](/docs/extensions/install-extensions?platform=sdk)."]]