Skip to content

Scheduling infrastructure for absolutely everyone.

feat: mirotalk app-store setup (#9010)

Shivam Kalra5f39bbe73036
diff --git a/packages/app-store/apps.metadata.generated.ts b/packages/app-store/apps.metadata.generated.ts
index 093ab0365f2..a6e5818882f 100644
--- a/packages/app-store/apps.metadata.generated.ts
+++ b/packages/app-store/apps.metadata.generated.ts
@@ -27,6 +27,7 @@ import { metadata as huddle01video__metadata_ts } from "./huddle01video/_metadat
import { metadata as jitsivideo__metadata_ts } from "./jitsivideo/_metadata";
import { metadata as larkcalendar__metadata_ts } from "./larkcalendar/_metadata";
import metapixel_config_json from "./metapixel/config.json";
+import mirotalk_config_json from "./mirotalk/config.json";
import n8n_config_json from "./n8n/config.json";
import { metadata as office365calendar__metadata_ts } from "./office365calendar/_metadata";
import office365video_config_json from "./office365video/config.json";
@@ -92,6 +93,7 @@ export const appStoreMetadata = {
jitsivideo: jitsivideo__metadata_ts,
larkcalendar: larkcalendar__metadata_ts,
metapixel: metapixel_config_json,
+ mirotalk: mirotalk_config_json,
n8n: n8n_config_json,
office365calendar: office365calendar__metadata_ts,
office365video: office365video_config_json,
diff --git a/packages/app-store/apps.server.generated.ts b/packages/app-store/apps.server.generated.ts
index b9f0998801c..9b9bf80f9a6 100644
--- a/packages/app-store/apps.server.generated.ts
+++ b/packages/app-store/apps.server.generated.ts
@@ -27,6 +27,7 @@ export const apiHandlers = {
jitsivideo: import("./jitsivideo/api"),
larkcalendar: import("./larkcalendar/api"),
metapixel: import("./metapixel/api"),
+ mirotalk: import("./mirotalk/api"),
n8n: import("./n8n/api"),
office365calendar: import("./office365calendar/api"),
office365video: import("./office365video/api"),
diff --git a/packages/app-store/mirotalk/DESCRIPTION.md b/packages/app-store/mirotalk/DESCRIPTION.md
new file mode 100644
index 00000000000..40c651cd189
--- /dev/null
+++ b/packages/app-store/mirotalk/DESCRIPTION.md
@@ -0,0 +1,9 @@
+---
+items:
+ - 1.jpeg
+ - 2.jpeg
+---
+
+{DESCRIPTION}
+- Copy your room link and start scheduling calls in Mirotalk.
+- Both SFU and P2P are supported.
\ No newline at end of file
diff --git a/packages/app-store/mirotalk/api/add.ts b/packages/app-store/mirotalk/api/add.ts
new file mode 100644
index 00000000000..9a4afb9b2cb
--- /dev/null
+++ b/packages/app-store/mirotalk/api/add.ts
@@ -0,0 +1,16 @@
+import { createDefaultInstallation } from "@calcom/app-store/_utils/installation";
+import type { AppDeclarativeHandler } from "@calcom/types/AppHandler";
+
+import appConfig from "../config.json";
+
+const handler: AppDeclarativeHandler = {
+ appType: appConfig.type,
+ variant: appConfig.variant,
+ slug: appConfig.slug,
+ supportsMultipleInstalls: false,
+ handlerType: "add",
+ createCredential: ({ appType, user, slug }) =>
+ createDefaultInstallation({ appType, userId: user.id, slug, key: {} }),
+};
+
+export default handler;
diff --git a/packages/app-store/mirotalk/api/index.ts b/packages/app-store/mirotalk/api/index.ts
new file mode 100644
index 00000000000..4c0d2ead01e
--- /dev/null
+++ b/packages/app-store/mirotalk/api/index.ts
@@ -0,0 +1 @@
+export { default as add } from "./add";
diff --git a/packages/app-store/mirotalk/config.json b/packages/app-store/mirotalk/config.json
new file mode 100644
index 00000000000..5732aa64085
--- /dev/null
+++ b/packages/app-store/mirotalk/config.json
@@ -0,0 +1,28 @@
+{
+ "/*": "Don't modify slug - If required, do it using cli edit command",
+ "name": "Mirotalk",
+ "slug": "mirotalk",
+ "type": "mirotalk_video",
+ "logo": "icon.svg",
+ "url": "https://cal.com/apps/mirotalk",
+ "variant": "conferencing",
+ "categories": [
+ "video"
+ ],
+ "publisher": "Cal.com, Inc.",
+ "email": "[email protected]",
+ "appData": {
+ "location": {
+ "type": "integrations:{SLUG}_video",
+ "label": "{TITLE}",
+ "linkType": "static",
+ "organizerInputPlaceholder": "https://p2p.mirotalk.com/join/80085ShinyPhone",
+ "urlRegExp": "^(http|https):\\/\\/(p2p|sfu)\\.mirotalk\\.com\\/join\\/[a-zA-Z0-9]+$"
+ }
+ },
+ "description": "Peer to peer real-time video conferences, optimized for small groups. Unlimited time, unlimited rooms each having 5-8 participants.",
+ "isTemplate": false,
+ "__createdUsingCli": true,
+ "__template": "event-type-location-video-static",
+ "dirName": "mirotalk"
+}
\ No newline at end of file
diff --git a/packages/app-store/mirotalk/index.ts b/packages/app-store/mirotalk/index.ts
new file mode 100644
index 00000000000..d7f36022040
--- /dev/null
+++ b/packages/app-store/mirotalk/index.ts
@@ -0,0 +1 @@
+export * as api from "./api";
diff --git a/packages/app-store/mirotalk/package.json b/packages/app-store/mirotalk/package.json
new file mode 100644
index 00000000000..6419245e954
--- /dev/null
+++ b/packages/app-store/mirotalk/package.json
@@ -0,0 +1,14 @@
+{
+ "$schema": "https://json.schemastore.org/package.json",
+ "private": true,
+ "name": "@calcom/mirotalk",
+ "version": "0.0.0",
+ "main": "./index.ts",
+ "dependencies": {
+ "@calcom/lib": "*"
+ },
+ "devDependencies": {
+ "@calcom/types": "*"
+ },
+ "description": "Free WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms."
+}
diff --git a/packages/app-store/mirotalk/static/1.jpeg b/packages/app-store/mirotalk/static/1.jpeg
new file mode 100644
index 00000000000..221a4e64129
Binary files /dev/null and b/packages/app-store/mirotalk/static/1.jpeg differ
diff --git a/packages/app-store/mirotalk/static/2.jpeg b/packages/app-store/mirotalk/static/2.jpeg
new file mode 100644
index 00000000000..9d669824e7a
Binary files /dev/null and b/packages/app-store/mirotalk/static/2.jpeg differ
diff --git a/packages/app-store/mirotalk/static/icon.svg b/packages/app-store/mirotalk/static/icon.svg
new file mode 100644
index 00000000000..e2e655cb9d7
--- /dev/null
+++ b/packages/app-store/mirotalk/static/icon.svg
@@ -0,0 +1 @@
+<svg width="28" height="32" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="a"><stop stop-color="#00BFFB" offset="0%"/><stop stop-color="#0270D7" offset="100%"/></linearGradient><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="b"><stop stop-color="#1F232A" stop-opacity=".48" offset="0%"/><stop stop-color="#1F2329" stop-opacity="0" offset="100%"/></linearGradient><linearGradient x1="87.665%" y1="103.739%" x2="-3.169%" y2="38.807%" id="c"><stop stop-color="#FFF" stop-opacity="0" offset="0%"/><stop stop-color="#FFF" stop-opacity=".64" offset="100%"/></linearGradient><linearGradient x1="-14.104%" y1="111.262%" x2="109.871%" y2="26.355%" id="d"><stop stop-color="#0270D7" offset="0%"/><stop stop-color="#0270D7" stop-opacity="0" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="url(#a)" transform="rotate(90 14 16)" d="M6 2l-8 13.999L6 30h16l8-14.001L22 2z"/><path fill="url(#b)" d="M14 0v32L0 24V8z"/><path fill="url(#c)" d="M28 24L0 8l14.001-8L28 8z"/><path fill-opacity=".48" fill="url(#d)" style="mix-blend-mode:multiply" d="M28 8L0 23.978V8l14.001-8L28 8z"/></g></svg>
\ No newline at end of file