# App Quick Start Guide > For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/youtrack/devportal/llms.txt). Apps are software components that add specific features to YouTrack. With apps, you can customize and extend the base functionality of the system without altering its core structure. This modular approach lets you enhance YouTrack's capabilities dynamically, making it more flexible and adaptable to your organization's needs. To create an app and start using it in YouTrack, follow these steps: * [Create an app package](#create-app-package) * [Create the manifest for the app](#create-app-manifest) * [Provide a schema of custom settings for your app](#provide-settings-schema) * [Add a widget](#add-widget) * [Add custom HTTP handlers](#add-http-handler) * [Add more modules](#add-modules) * [Upload and test the app in YouTrack](#add-app-to-youtrack) * [Work with your app](#work-with-app) * [Publish the app to JetBrains Marketplace](#publish-app) ## Create an App Package The fastest way to build an app is to use the YouTrack App Generator. When you run the generator: * The generator builds the basic project structure and installs all the required dependencies. * The prompts in the command line let you specify values for required fields in the `manifest.json` file. * The code for a sample widget is saved to the app subdirectory. Procedure: To generate the code for a new YouTrack app: 1. Prepare an empty directory for your app. 2. Using a command line tool, run the following command: ``` npm create @jetbrains/youtrack-app@latest ``` 3. Follow the prompts provided by the generator. If you want to build the app with the experimental TypeScript toolchain, choose TypeScript (Enhanced DX with file-based routing). For details, see [Enhanced DX for TypeScript Apps](apps-enhanced-dx-typescript.html). For additional examples and best practices, browse the collection of YouTrack apps in the [public YouTrack apps repository](https://github.com/JetBrains/youtrack-apps). Here's an image that shows the file structure of an app package created using the YouTrack App Generator: ![File structure of a sample app](https://resources.jetbrains.com/help/img/youtrack/app-sample-file-structure.png) In the standard app structure, if you happen to want to move files around in the package, please pay attention to the following guidelines for managing the file structure: * The `manifest.json` file must always be present at the root level of the app package. * Source code for each [widget](#add-widget) must be stored in a subdirectory of the `widgets` folder. The `widgets` folder can be placed at any location in the app package. Each widget must include an `index.html` file that defines its content. This file is expected to reside in the `widget` folder that contains the code for the corresponding widget or one of its subdirectories. Do not store `index.html` files in parent directories. * Store the source code for [HTTP handlers](#add-http-handler) and other [JavaScript-based modules](#add-modules) in separate files at the root level. Apps generated with the experimental TypeScript toolchain use a different package structure. For details, see [Package Structure](apps-enhanced-dx-typescript.html#package-structure). ## Update the App Manifest Each app package must contain a `manifest.json` file. This manifest contains general information about the app and its structure. For more details about manifests, see [App Manifest](app-manifest.html). Below, you can find a manifest template that you can modify to define your app structure. This template includes common fields for apps distributed through the JetBrains Marketplace. ```JSON { "$schema": "https://json.schemastore.org/youtrack-app.json", "name": "template-app", "title": "Template App", "description": "App description", "version": "1.0.0", "url": "https://github.com/example/youtrack-app", "icon": "icon.svg", "iconDark": "icon-dark.svg", "minYouTrackVersion": "2026.2.0", "changeNotes": "Version 0.0.1: Feature 1", "vendor": { "name": "JetBrains s.r.o.", "url": "https://www.jetbrains.com/", "email": "support@jetbrains.com" }, "widgets": [ { "key": "sample-widget", "name": "Sample Widget", "description": "Optional widget description", "extensionPoint": "ISSUE_FIELD_PANEL_FIRST", "indexPath": "index.html", "iconPath": "icon.png", "settingsSchemaPath": "sample-widget-settings.json", "permissions": ["READ_ISSUE", "ADMIN_READ_APP"], "expectedDimensions": { "height": 40, "width": 150 } } ] } ``` ## Provide the Schema for the App Settings As an app developer, you can provide custom settings for your app. The setting schema is described in the `settings.json` file. These settings are then accessible for configuration on the Settings tab of the app. When a system or a project administrator provides values for the app settings, these values can be used in any JavaScript-based scripts with the app package. For more details about app settings, see [App Settings](app-settings.html). Here you can find an example of a `settings.json` file: ```JSON { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "title": "App Settings", "description": "Here you can provide values for the app settings", "properties": { "stringSetting": { "title": "Name", "type": "string", "minLength": 1 }, "booleanSetting": { "type": "boolean" }, "integerSetting": { "type": "integer", "x-scope": "GLOBAL" }, "numberSetting": { "type": "number", "x-scope": "PROJECT" }, "secretSetting": { "type": "string", "format": "secret" }, "arraySetting": { "type": "array", "items": { "x-entity": "User", "type": "object" } }, "userSetting": { "type": "object", "x-entity": "User" } } } ``` ## Add a Widget Each app package can contain one or more widgets. The source code for each widget is stored in a named subdirectory of the `widgets` folder. Each widget included in the app package must be declared in the app [manifest](#create-app-manifest). The most important part of the description of a widget is the `extensionPoint` property. This property specifies the location in the YouTrack UI where the widget will be embedded. For the complete list of possible extension points in the YouTrack UI, see [Extension Points for Widgets](apps-reference-extension-points.html). A widget is a custom object that you can embed in one of the dedicated extension points in the YouTrack UI. To implement a widget, you need to know the basics of HTML. You can also add custom layout and formatting using CSS. Here is a sample code for a simple HTML file with the code for a widget displaying the customer logo embedded above the custom field panel in an issue: ```HTML <!doctype html> <html><head><meta property="og:title" content="# App Quick Start Guide   For the complete documentation index, see [llms.txt](https://www.jetbrains"><meta property="og:description" content="# App Quick Start Guide > For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/youtrack/devportal/llms.txt). Apps are software components that add specific features to YouTrack. With apps, you can customize and extend t"><meta property="og:url" content="https://pleiades.io/help/youtrack/devportal/apps-quick-start-guide.html.md/"><meta property="og:image" content="https://pleiades.io/icons/youtrack.png"><meta name="twitter:card" content="summary"><link rel="canonical" href="https://pleiades.io/help/youtrack/devportal/apps-quick-start-guide.html.md/" data-react-helmet="true"/><link rel="stylesheet" href="../index.css"></head><body class="plugin" style="padding: 0; overflow: hidden;"><gcse:search></gcse:search><a href="/" id="home"><i class="fas fa-home"></i></a><img src="logo.jpeg" style="width: 100%; height: 100%; object-fit: cover;"/><script type="module">const host = await YTApp.register();</script><script defer src="https://www.googletagmanager.com/gtag/js?id=UA-1106268-6"></script><script defer src="/help/custom/help.js?29"></script></body></html> ``` ## HTTP  ハンドラーの追加カスタム  HTTP  エンドポイントを介してアプリから  YouTrack  データにアクセスするには、カスタム  HTTP  ハンドラーを作成できます。HTTP  ハンドラーを追加する場合は、次のガイドラインに従ってください。*  各  HTTP  ハンドラーのソースコードは、アプリパッケージのルートレベルの別の  JavaScript  ファイルに保存する必要があります。*  標準のアプリ構造では、HTTP  ハンドラーは  JavaScript  ファイルとして作成されます。実験的な  Enhanced DX  ツールチェーンを使用する場合は、ハンドラーを  TypeScript  で作成し、アプリバンドルに組み込むことができます。詳細については、[Enhanced DX for TypeScript Apps](apps-enhanced-dx-typescript.html)  を参照してください。*  アプリマニフェストに  HTTP  ハンドラーへの参照を追加する必要はありません。カスタム  HTTP  ハンドラーの詳細については、[HTTP Handlers](apps-reference-http-handlers.html)  を参照してください。以下は、カスタム  HTTP  ハンドラーのサンプルコードです。```JAVASCRIPT exports.httpHandler = { endpoints: [ { scope: 'issue' , method: 'GET' , path: 'demo' , handle: function (ctx) { ctx.response.json({message: "Hello World"}); } } ] }; ```  このコードを別の  `sample-http-handler.js`  ファイルに保存し、アプリパッケージのルートレベルに配置してください。HTTP  ハンドラーを使用するには、ウィジェットからそのメソッドを呼び出します。以下はサンプル  HTML  スクリプトブロックです。```HTML<script type="module">const host = await YTApp.register(); host.alert('Hello world');</script>``` For details about using HTTP handlers, see [HTTP Handlers](apps-reference-http-handlers.html). ## Add More Modules YouTrack supports several JavaScript-based modules that you can add to your app. Here is the list of possible modules: * [Workflow rules](youtrack-workflow-reference.html) * [SLA rules (available only for helpdesk projects)](https://www.jetbrains.com/help/youtrack/server/service-level-agreements.html) * [Import clients](youtrack-import-scripts.html) * [Reports](https://www.jetbrains.com/help/youtrack/server/YouTrack-Reports.html) For more information about available modules, refer to [App Reference](apps-reference.html). ## Upload the App to YouTrack When you're ready to put your app to the test, you can upload it to YouTrack. To test your app, you'll probably want to create a staging environment. You have a couple of options: * [Register an instance in YouTrack Cloud](https://www.jetbrains.com/youtrack/download/get_youtrack.html#section=cloud). YouTrack Cloud is always updated to the latest available version, which means you can be assured that you're testing in a stable environment with the latest bugfixes. If your production installation is also hosted by JetBrains, we strongly recommend that you use this environment for testing as well. * [Download and run a copy of YouTrack Server](https://www.jetbrains.com/youtrack/download/get_youtrack.html#section=server) on a local machine. If you're working with a YouTrack Server installation, this lets you test your app on the same product version that is currently installed in your production environment. If you create your app using the YouTrack App Generator, you can use the following commands to build and upload the app to a target YouTrack site: * ``` npm run build ``` This command compiles the app package and prepares it for upload. * ``` npm run upload -- --host <your YouTrack base URL> --token<permanent token>``` This command uploads the app package to the YouTrack site specified as the `host` using the base URL for your YouTrack test environment. For the `permanent token`, you'll need to provide a permanent token that has been generated for the YouTrack account you want to use to upload the app. To upload a new app, this account requires Update App Content permission in at least one project or the Low-level Admin Write permission. For permissions required to update an existing app, see [Authentication for Apps](apps-authentication.html). To learn how to generate a permanent token, please refer to the [YouTrack documentation](https://www.jetbrains.com/help/youtrack/server/manage-permanent-token.html#obtain-permanent-token). Apps generated with the experimental TypeScript toolchain include additional commands for local development and upload. For details, see [Work with the App Package](apps-enhanced-dx-typescript.html#work-with-app-package). You can also follow these steps to upload a ZIP archive to your YouTrack site. Since this procedure is done directly in YouTrack by an authenticated user, it doesn't require that you generate a permanent token. Procedure: To manually upload an app to YouTrack: > **Tip:** > Requires permissions: Update App Content in at least one project, or Low-level Admin Write 1. Access your test environment for YouTrack. 2. From the Administration menu, select Apps. 3. Click the Add app button and select the Upload ZIP file option. 4. Select the ZIP archive on your machine and upload it to YouTrack. * The app is added to the list of apps in your YouTrack test environment. * If the app contains global modules and you don't have Low-level Admin Write, the app is deactivated automatically. A user with this permission must activate it. 5. To check that the app has been uploaded and review its activation status, locate the app in the list and select it. * The Details panel for the selected app opens. ![The details panel for an app.](https://resources.jetbrains.com/help/img/youtrack/app-qsg-details.png) App modules can be built to function at different levels. Some are designed to work at the project level, which means they can be activated independently in different projects. Other modules don't have any connection to a specific project and function at the global level. * Global-level modules are available across the YouTrack system at the moment when the app is imported to YouTrack and activated. * To start using project-level modules, attach the app to a project in YouTrack. You can attach an app to a project either from the Apps administration page or on the Apps tab in the project settings. For more information about project- and global-level module scopes, see [Global and Project Scopes](apps-global-project-level.html). Procedure: To attach an app to a project from the app administration page: > **Tip:** > Requires permissions: Update Project 1. From the list of apps, select the app and open its Details panel. 2. Select the Projects tab. ![The Projects tab of an app](https://resources.jetbrains.com/help/img/youtrack/app-details-projects-tab.png) 3. Click the Manage projects button. * The Manage Projects dialog opens. ![Manage projects where an app is attached](https://resources.jetbrains.com/help/img/youtrack/app-details-manage-projects.png) 4. Select one or more projects from the list. 5. When done, click the Save button. * The app is attached and activated in all selected projects. ## Work with the App When you have finished testing and updating your app, you're ready to make it available for use inside your organization. Uploading a new app to YouTrack requires that you have the Update App Content permission in at least one project or the Low-level Admin Write permission in the system. For update and activation permissions, see [Authentication for Apps](apps-authentication.html). If you have the required upload permissions in your production environment, you can upload the app yourself. Otherwise, you'll need to share your ZIP archive with an administrator who can upload it for you. Once your app has been uploaded and activated in YouTrack, you and your team can start to enjoy the extended functionality it provides. ## Publish the App The final and optional step is to share your app with other companies who are working with YouTrack by uploading it to [JetBrains Marketplace](https://plugins.jetbrains.com/). If you choose to publish your app, review the [Marketplace Submission Checklist](app-marketplace-submission-checklist.html) before submitting it. Procedure: To upload your app to the marketplace: 1. In your web browser, access [JetBrains Marketplace](https://plugins.jetbrains.com/). 2. Click the Sign In button in the header. * If you already have a JetBrains Account, enter your email address and password. * If you don't have a JetBrains Account, register with your email address and create an account. 3. Select the `Build Plugins` option in the header. 4. Click the Upload plugin button. * The Upload plugin page opens. 5. In the Vendor Details section of the page, select the option to upload the app as an Individual or Organization. When you select the Individual option, you're prompted to create a vendor profile for your account. 6. In the Plugin Details — Plugin For section of the page, select YouTrack. 7. For the Plugin file field, click the Choose File button and select the ZIP archive that contains your app package. 8. For the License select the license you are using to distribute your software. 9. If your app is open source, enter the location of the repository as the Source code URL. 10. Use the Tags setting to assign one or more labels to your app. These labels help people find relevant apps in the marketplace. 11. Click the Upload Plugin button. * Your app is uploaded to the JetBrains Marketplace. * When a moderator has reviewed the app and approved it for publication, the app is added to the directory. 