Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

feat: AI title loading states, typewriter effect, and guardrails

Luis Ortiz7a4f28abb570
diff --git a/package.json b/package.json
index 6594b41..8ef697e 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,7 @@
"radix-ui": "^1.4.3",
"react": "^19.2.4",
"react-dom": "^19.2.4",
+ "react-type-animation": "^3.2.0",
"rrweb": "1.1.3",
"tailwind-merge": "^3.5.0",
"tailwindcss": "^4.2.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 116d681..8c925d7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,9 +8,12 @@ importers:
.:
dependencies:
- '@anthropic-ai/sdk':
- specifier: ^0.80.0
- version: 0.80.0([email protected])
+ '@ai-sdk/anthropic':
+ specifier: ^3.0.64
+ version: 3.0.65([email protected])
+ '@ai-sdk/openai':
+ specifier: ^3.0.49
+ version: 3.0.49([email protected])
'@fontsource/poppins':
specifier: ^5.2.7
version: 5.2.7
@@ -26,6 +29,9 @@ importers:
'@xstate/react':
specifier: ^6.1.0
+ ai:
+ specifier: ^6.0.142
+ version: 6.0.143([email protected])
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -47,9 +53,9 @@ importers:
lucide-react:
specifier: ^0.577.0
version: 0.577.0([email protected])
- openai:
- specifier: ^6.32.0
+ p-queue:
+ specifier: ^9.1.1
+ version: 9.1.1
radix-ui:
specifier: ^1.4.3
@@ -59,6 +65,9 @@ importers:
react-dom:
specifier: ^19.2.4
version: 19.2.4([email protected])
+ react-type-animation:
+ specifier: ^3.2.0
rrweb:
specifier: 1.1.3
version: 1.1.3
@@ -78,6 +87,9 @@ importers:
specifier: ^5.0.12
devDependencies:
+ '@biomejs/biome':
+ specifier: 2.4.10
+ version: 2.4.10
'@testing-library/jest-dom':
specifier: ^6.9.1
version: 6.9.1
@@ -96,6 +108,9 @@ importers:
happy-dom:
specifier: ^20.8.4
version: 20.8.9
+ husky:
+ specifier: ^9.1.7
+ version: 9.1.7
jsdom:
specifier: ^29.0.1
version: 29.0.1
@@ -104,7 +119,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.1.0
packages:
@@ -114,6 +129,34 @@ packages:
resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-wUSTNKk5NWjETqNtUT3kBHl+ic0ZSTgGB/Go8A5URRt4Zb1nMLH1135uZT3xnjrCZra0teMq9BhmfZ4Jfw6SdQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-oPvs3bYnxndBY/O0gFSFuc5aA/QKCJbk/CaJaRnKgA/ZPH17jeVvEtiUBE6/N8hWhK7XgX53NFI7F3CGmDfm1g==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-U2f0pCyNn/jQH3wjgxr8o9VvCkuDFTtXbIhbFFtgXqCzMbed6rBnvzQcAMEK0/Pa44byL9zfcvCOFOflvkRA8w==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-MtFUYI1/8mgDvRmaBDjbLJPFFrMG777AvSgyIFQtZHIMzm88R/12vYBBpnk7pfiWLFE1DSZzY4WDYzGbKAcmiw==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ==}
+ engines: {node: '>=18'}
+
'@aklinker1/[email protected]':
resolution: {integrity: sha512-X24LvEGw6UFmy0lpGJDmXsMyBD58XmX1bbwsaMLhNoM+UMQfQ3b2RtC+nz4b/NoRK5r6QJSKJHBNVeUdwqybaQ==}
engines: {node: '>=14'}
@@ -124,15 +167,6 @@ packages:
rollup:
optional: true
- '@anthropic-ai/[email protected]':
- resolution: {integrity: sha512-WeXLn7zNVk3yjeshn+xZHvld6AoFUOR3Sep6pSoHho5YbSi6HwcirqgPA5ccFuW8QTVJAAU7N8uQQC6Wa9TG+g==}
- hasBin: true
- peerDependencies:
- zod: ^3.25.0 || ^4.0.0
- peerDependenciesMeta:
- zod:
- optional: true
-
'@asamuzakjp/[email protected]':
resolution: {integrity: sha512-2SZFvqMyvboVV1d15lMf7XiI3m7SDqXUuKaTymJYLN6dSGadqp+fVojqJlVoMlbZnlTmu3S0TLwLTJpvBMO1Aw==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
@@ -173,6 +207,63 @@ packages:
resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}
engines: {node: '>=6.9.0'}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-xxA3AphFQ1geij4JTHXv4EeSTda1IFn22ye9LdyVPoJU19fNVl0uzfEuhsfQ4Yue/0FaLs2/ccVi4UDiE7R30w==}
+ engines: {node: '>=14.21.3'}
+ hasBin: true
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-vuzzI1cWqDVzOMIkYyHbKqp+AkQq4K7k+UCXWpkYcY/HDn1UxdsbsfgtVpa40shem8Kax4TLDLlx8kMAecgqiw==}
+ engines: {node: '>=14.21.3'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-14fzASRo+BPotwp7nWULy2W5xeUyFnTaq1V13Etrrxkrih+ez/2QfgFm5Ehtf5vSjtgx/IJycMMpn5kPd5ZNaA==}
+ engines: {node: '>=14.21.3'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-WrJY6UuiSD/Dh+nwK2qOTu8kdMDlLV3dLMmychIghHPAysWFq1/DGC1pVZx8POE3ZkzKR3PUUnVrtZfMfaJjyQ==}
+ engines: {node: '>=14.21.3'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-7MH1CMW5uuxQ/s7FLST63qF8B3Hgu2HRdZ7tA1X1+mk+St4JOuIrqdhIBnnyqeyWJNI+Bww7Es5QZ0wIc1Cmkw==}
+ engines: {node: '>=14.21.3'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-kDTi3pI6PBN6CiczsWYOyP2zk0IJI08EWEQyDMQWW221rPaaEz6FvjLhnU07KMzLv8q3qSuoB93ua6inSQ55Tw==}
+ engines: {node: '>=14.21.3'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-tZLvEEi2u9Xu1zAqRjTcpIDGVtldigVvzug2fTuPG0ME/g8/mXpRPcNgLB22bGn6FvLJpHHnqLnwliOu8xjYrg==}
+ engines: {node: '>=14.21.3'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-umwQU6qPzH+ISTf/eHyJ/QoQnJs3V9Vpjz2OjZXe9MVBZ7prgGafMy7yYeRGnlmDAn87AKTF3Q6weLoMGpeqdQ==}
+ engines: {node: '>=14.21.3'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-aW/JU5GuyH4uxMrNYpoC2kjaHlyJGLgIa3XkhPEZI0uKhZhJZU8BuEyJmvgzSPQNGozBwWjC972RaNdcJ9KyJg==}
+ engines: {node: '>=14.21.3'}
+ cpu: [x64]
+ os: [win32]
+
'@bramus/[email protected]':
resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==}
hasBin: true
@@ -441,6 +532,10 @@ packages:
'@napi-rs/[email protected]':
resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==}
+ '@opentelemetry/[email protected]':
+ resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}
+ engines: {node: '>=8.0.0'}
+
'@oxc-project/[email protected]':
resolution: {integrity: sha512-oLAl5kBpV4w69UtFZ9xqcmTi+GENWOcPF7FCrczTiBbmC0ibXxCwyvZGbO39rCVEuLGAZM84DH0pUIyyv/YJzA==}
@@ -1423,6 +1518,10 @@ packages:
resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}
+ '@vercel/[email protected]':
+ resolution: {integrity: sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w==}
+ engines: {node: '>= 20'}
+
'@vitejs/[email protected]':
resolution: {integrity: sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -1510,6 +1609,12 @@ packages:
resolution: {integrity: sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==}
engines: {node: '>=12.0'}
+ resolution: {integrity: sha512-wVDb7StQ1EPQ9GDAOmi1AsuAXQRSii+zZT2sFK+MCisH4vV7XNEAdzXL+sKsUAFhhq+EtVFWWlB4mCk4hcoIMw==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
@@ -1936,6 +2041,10 @@ packages:
resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==}
+ resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==}
+ engines: {node: '>=18.0.0'}
+
resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
engines: {node: '>=12.0.0'}
@@ -2062,6 +2171,11 @@ packages:
resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==}
+ resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
+ engines: {node: '>=18'}
+ hasBin: true
+
resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==}
@@ -2199,9 +2313,8 @@ packages:
resolution: {integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
- resolution: {integrity: sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==}
- engines: {node: '>=16'}
+ resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
@@ -2368,6 +2481,10 @@ packages:
resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
+ hasBin: true
+
resolution: {integrity: sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==}
engines: {node: 20 || >=22}
@@ -2464,6 +2581,10 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}
@@ -2489,22 +2610,18 @@ packages:
resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-xAYN1W3YsDXJWA5F277135YfkEk6H7D3D6vWwRhJ3OEkzRgcyK8z/P5P9Gyi/wB4N8kK9kM5ZjprfvyHagKmpw==}
- hasBin: true
- peerDependencies:
- ws: ^8.18.0
- zod: ^3.25 || ^4.0
- peerDependenciesMeta:
- ws:
- optional: true
- zod:
- optional: true
-
resolution: {integrity: sha512-jd0cvB8qQ5uVt0lvCIexBaROw1KyKm5sbulg2fWOHjETisuCzWyt+eTZKEMs8v6HwzoGs8xik26jg7eCM6pS+A==}
engines: {node: '>= 0.4.0'}
+ resolution: {integrity: sha512-yQS1vV2V7Q14MQrgD8jMNY5owPuGgVHVdSK8NqmKpOVajnjbaeMa6uLOzTALPtvJ7Vo4bw0BGsw7qfUT8z24Ig==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==}
+ engines: {node: '>=20'}
+
resolution: {integrity: sha512-ua1L4OgXSBdsu1FPb7F3tYH0F48a6kxvod4pLUlGY9COeJAJQNX/sNH2IiEmsxw7lqYiAwrdHMjz1FctOsyDQg==}
engines: {node: '>=18'}
@@ -2584,6 +2701,9 @@ packages:
resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
engines: {node: '>= 6'}
+ resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
+
resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}
@@ -2634,6 +2754,9 @@ packages:
peerDependencies:
react: ^19.2.4
+ resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
+
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
@@ -2667,6 +2790,13 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-WXTe0i3rRNKjmggPvT5ntye1QBt0ATGbijeW6V3cQe2W0jaMABXXlPPEdtofnS9tM7wSRHchEvI9SUw+0kUohw==}
+ peerDependencies:
+ prop-types: ^15.5.4
+ react: '>= 15.0.0'
+ react-dom: '>= 15.0.0'
+
resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==}
engines: {node: '>=0.10.0'}
@@ -2941,9 +3071,6 @@ packages:
resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==}
engines: {node: '>=20'}
- resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==}
-
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
@@ -3296,6 +3423,36 @@ snapshots:
'@adobe/[email protected]': {}
+ dependencies:
+ '@ai-sdk/provider': 3.0.8
+ '@ai-sdk/provider-utils': 4.0.21([email protected])
+ zod: 4.3.6
+
+ dependencies:
+ '@ai-sdk/provider': 3.0.8
+ '@ai-sdk/provider-utils': 4.0.21([email protected])
+ '@vercel/oidc': 3.1.0
+ zod: 4.3.6
+
+ dependencies:
+ '@ai-sdk/provider': 3.0.8
+ '@ai-sdk/provider-utils': 4.0.21([email protected])
+ zod: 4.3.6
+
+ dependencies:
+ '@ai-sdk/provider': 3.0.8
+ '@standard-schema/spec': 1.1.0
+ eventsource-parser: 3.0.6
+ zod: 4.3.6
+
+ '@ai-sdk/[email protected]':
+ dependencies:
+ json-schema: 0.4.0
+
'@aklinker1/[email protected]':
dependencies:
open: 8.4.2
@@ -3303,12 +3460,6 @@ snapshots:
source-map: 0.7.6
yargs: 17.7.2
- dependencies:
- json-schema-to-ts: 3.1.1
- optionalDependencies:
- zod: 4.3.6
-
'@asamuzakjp/[email protected]':
dependencies:
'@csstools/css-calc': 3.1.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
@@ -3350,6 +3501,41 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.28.5
+ '@biomejs/[email protected]':
+ optionalDependencies:
+ '@biomejs/cli-darwin-arm64': 2.4.10
+ '@biomejs/cli-darwin-x64': 2.4.10
+ '@biomejs/cli-linux-arm64': 2.4.10
+ '@biomejs/cli-linux-arm64-musl': 2.4.10
+ '@biomejs/cli-linux-x64': 2.4.10
+ '@biomejs/cli-linux-x64-musl': 2.4.10
+ '@biomejs/cli-win32-arm64': 2.4.10
+ '@biomejs/cli-win32-x64': 2.4.10
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
+ '@biomejs/[email protected]':
+ optional: true
+
'@bramus/[email protected]':
dependencies:
css-tree: 3.2.1
@@ -3537,6 +3723,8 @@ snapshots:
'@tybys/wasm-util': 0.10.1
optional: true
+ '@opentelemetry/[email protected]': {}
+
'@oxc-project/[email protected]': {}
'@pnpm/[email protected]': {}
@@ -4503,6 +4691,8 @@ snapshots:
dependencies:
'@types/node': 25.5.0
+ '@vercel/[email protected]': {}
+
dependencies:
'@rolldown/pluginutils': 1.0.0-rc.7
@@ -4601,6 +4791,14 @@ snapshots:
+ dependencies:
+ '@ai-sdk/gateway': 3.0.85([email protected])
+ '@ai-sdk/provider': 3.0.8
+ '@ai-sdk/provider-utils': 4.0.21([email protected])
+ '@opentelemetry/api': 1.9.0
+ zod: 4.3.6
+
dependencies:
string-width: 4.2.3
@@ -5006,6 +5204,8 @@ snapshots:
+
@@ -5128,6 +5328,8 @@ snapshots:
domutils: 3.2.2
entities: 7.0.1
+
@@ -5237,10 +5439,7 @@ snapshots:
- dependencies:
- '@babel/runtime': 7.29.2
- ts-algebra: 2.0.0
@@ -5408,6 +5607,10 @@ snapshots:
strip-ansi: 7.2.0
wrap-ansi: 9.0.2
+ dependencies:
+ js-tokens: 4.0.0
+
@@ -5499,6 +5702,8 @@ snapshots:
pathe: 2.0.3
tinyexec: 1.0.4
+
@@ -5530,13 +5735,15 @@ snapshots:
is-docker: 2.2.1
is-wsl: 2.2.0
- optionalDependencies:
- ws: 8.20.0
- zod: 4.3.6
-
+ dependencies:
+ eventemitter3: 5.0.4
+ p-timeout: 7.0.1
+
+
dependencies:
ky: 1.14.3
@@ -5632,6 +5839,12 @@ snapshots:
kleur: 3.0.3
sisteransi: 1.0.5
+ dependencies:
+ loose-envify: 1.4.0
+ object-assign: 4.1.1
+ react-is: 16.13.1
+
@@ -5741,6 +5954,8 @@ snapshots:
react: 19.2.4
scheduler: 0.27.0
+
@@ -5770,6 +5985,12 @@ snapshots:
optionalDependencies:
'@types/react': 19.2.14
+ dependencies:
+ prop-types: 15.8.1
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
+
@@ -6030,8 +6251,6 @@ snapshots:
dependencies:
punycode: 2.3.1
-
@@ -6167,7 +6386,7 @@ snapshots:
fsevents: 2.3.3
jiti: 2.6.1
dependencies:
'@vitest/expect': 4.1.2
@@ -6190,6 +6409,7 @@ snapshots:
why-is-node-running: 2.3.0
optionalDependencies:
+ '@opentelemetry/api': 1.9.0
'@types/node': 25.5.0
happy-dom: 20.8.9
jsdom: 29.0.1
diff --git a/src/core/capture/ai/prompts.ts b/src/core/capture/ai/prompts.ts
index 86bb8c8..23edef6 100644
--- a/src/core/capture/ai/prompts.ts
+++ b/src/core/capture/ai/prompts.ts
@@ -16,10 +16,12 @@ export const GUIDE_TITLE_PROMPT = `These are the steps of a browser workflow, wi
Write a specific, descriptive title for this workflow. The title should mention the application or website name and the specific task being performed. Be precise β€” reference specific pages, features, or items that were interacted with.
+IMPORTANT: The title MUST be under 60 characters. Keep it concise.
+
Examples:
-- "Review Most-Commented claude-code Pull Requests"
-- "Configure Slack Notification Preferences for #engineering"
+- "Review claude-code Pull Requests"
+- "Configure Slack Notification Preferences"
- "Submit Expense Report in Workday"
-- "Create New Repository in GitHub Organization"
+- "Create Repository in GitHub Organization"
-Just the title, no quotes, no preamble.`;
+Just the title, no quotes, no preamble. Under 60 characters.`;
diff --git a/src/core/capture/ai/title.ts b/src/core/capture/ai/title.ts
index b22c36b..836f72a 100644
--- a/src/core/capture/ai/title.ts
+++ b/src/core/capture/ai/title.ts
@@ -19,7 +19,9 @@ export async function generateGuideTitle(
prompt: GUIDE_TITLE_PROMPT.replace('{{steps}}', formatted),
maxOutputTokens: 30,
});
- return text.trim().replace(/^"|"$/g, '') || null;
+ let title = text.trim().replace(/^"|"$/g, '');
+ if (title.length > 70) title = `${title.slice(0, 67)}...`;
+ return title || null;
} catch (err) {
logger.error('Guide title generation failed', err);
return null;
diff --git a/src/ui/fullview/GuideContent.tsx b/src/ui/fullview/GuideContent.tsx
index 4a9d7da..e593a8a 100644
--- a/src/ui/fullview/GuideContent.tsx
+++ b/src/ui/fullview/GuideContent.tsx
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useRef, useState } from 'react';
+import { TypeAnimation } from 'react-type-animation';
import {
deleteStep,
getGuide,
@@ -9,37 +10,10 @@ import {
} from '@/core/guides/service';
import type { Guide, Screenshot, Step } from '@/core/guides/types';
import { getFaviconUrl, getMostCommonDomain } from '@/lib/utils';
-import { useFullviewStore } from '@/stores/fullview';
+import { useFullview } from '@/stores/fullview';
import BlurCanvas from '@/ui/sidepanel/BlurCanvas';
import GuideStepList from './components/GuideStepList';
-function useTypewriter(text: string, enabled: boolean, speed = 40): { display: string; done: boolean } {
- const [index, setIndex] = useState(0);
- const [active, setActive] = useState(false);
- const prevTextRef = useRef(text);
-
- useEffect(() => {
- if (enabled && text !== prevTextRef.current && prevTextRef.current === 'Untitled Guide') {
- prevTextRef.current = text;
- setIndex(0);
- setActive(true);
- } else {
- prevTextRef.current = text;
- }
- }, [text, enabled]);
-
- useEffect(() => {
- if (!active || index >= text.length) {
- if (index >= text.length) setActive(false);
- return;
- }
- const timer = setTimeout(() => setIndex((i) => i + 1), speed);
- return () => clearTimeout(timer);
- }, [active, index, text, speed]);
-
- return { display: active ? text.slice(0, index) : text, done: !active };
-}
-
interface GuideContentProps {
guideId: string;
}
@@ -51,24 +25,33 @@ interface GuideData {
}
export default function GuideContent({ guideId }: GuideContentProps) {
- const setGuideTitle = useFullviewStore((s) => s.setGuideTitle);
- const setGuideStepCount = useFullviewStore((s) => s.setGuideStepCount);
- const setGuideExportData = useFullviewStore((s) => s.setGuideExportData);
+ const { setGuideTitle, setGuideStepCount, setGuideExportData } = useFullview((s) => ({
+ setGuideTitle: s.setGuideTitle,
+ setGuideStepCount: s.setGuideStepCount,
+ setGuideExportData: s.setGuideExportData,
+ }));
const [data, setData] = useState<GuideData | null>(null);
const [loading, setLoading] = useState(true);
const [title, setTitle] = useState('');
+ const [typingTitle, setTypingTitle] = useState<string | null>(null);
const [blurringStepId, setBlurringStepId] = useState<string | null>(null);
- const hasSteps = data ? data.steps.length > 0 : false;
- const typewriter = useTypewriter(title, hasSteps);
+ const titleRef = useRef('');
const loadGuide = useCallback(async () => {
const result = await getGuide(guideId);
if (result) {
setData(result);
- setTitle(result.guide.title);
- document.title = `${result.guide.title} β€” Mimik`;
- setGuideTitle(result.guide.title);
+ const newTitle = result.guide.title;
+ const prev = titleRef.current;
+ if (prev === 'Untitled Guide' && newTitle !== 'Untitled Guide' && result.steps.length > 0) {
+ setTypingTitle(newTitle);
+ } else {
+ titleRef.current = newTitle;
+ setTitle(newTitle);
+ }
+ document.title = `${newTitle} β€” Mimik`;
+ setGuideTitle(newTitle);
setGuideStepCount(result.steps.length);
setGuideExportData({ guideId, ...result });
}
@@ -147,41 +130,59 @@ export default function GuideContent({ guideId }: GuideContentProps) {
const blurScreenshot = blurringStepId ? data.screenshots.get(blurringStepId) : undefined;
return (
- <div>
+ <div className="flex flex-col min-h-[calc(100vh-64px)]">
{blurringStepId && blurScreenshot && (
<BlurCanvas screenshot={blurScreenshot} onSave={handleBlurSave} onCancel={() => setBlurringStepId(null)} />
)}
- {title === 'Untitled Guide' && data.steps.length > 0 ? (
- <div className="text-[32px] font-extrabold animate-gradient-text bg-[length:300%_100%] bg-clip-text text-transparent bg-gradient-to-r from-muted-foreground via-amber to-muted-foreground">
- Generating title...
- </div>
- ) : !typewriter.done ? (
- <div className="text-[32px] font-extrabold text-foreground">
- {typewriter.display}
- <span className="inline-block w-[3px] h-[30px] bg-amber ml-0.5 align-text-bottom animate-blink" />
- </div>
- ) : (
- <textarea
- ref={(el) => {
- if (el) {
+ <div className="min-h-[88px]">
+ {title === 'Untitled Guide' && !typingTitle && data.steps.length > 0 ? (
+ <div className="text-[32px] font-extrabold leading-tight animate-gradient-text bg-[length:300%_100%] bg-clip-text text-transparent bg-gradient-to-r from-muted-foreground via-amber to-muted-foreground max-w-[480px]">
+ Writing a title from your captured steps...
+ </div>
+ ) : typingTitle ? (
+ <div className="relative text-[32px] font-extrabold leading-tight">
+ <div className="invisible" aria-hidden="true">
+ {typingTitle}
+ </div>
+ <div className="absolute inset-0 text-foreground">
+ <TypeAnimation
+ sequence={[
+ typingTitle,
+ () => {
+ titleRef.current = typingTitle;
+ setTitle(typingTitle);
+ setTypingTitle(null);
+ },
+ ]}
+ speed={70}
+ cursor={false}
+ />
+ <span className="inline-block w-[3px] h-[30px] bg-amber ml-0.5 align-text-bottom animate-blink" />
+ </div>
+ </div>
+ ) : (
+ <textarea
+ ref={(el) => {
+ if (el) {
+ el.style.height = '0';
+ el.style.height = `${el.scrollHeight}px`;
+ }
+ }}
+ value={title}
+ rows={1}
+ onChange={(e) => {
+ setTitle(e.target.value);
+ setGuideTitle(e.target.value);
+ const el = e.target;
el.style.height = '0';
el.style.height = `${el.scrollHeight}px`;
- }
- }}
- value={title}
- rows={1}
- onChange={(e) => {
- setTitle(e.target.value);
- setGuideTitle(e.target.value);
- const el = e.target;
- el.style.height = '0';
- el.style.height = `${el.scrollHeight}px`;
- }}
- onBlur={handleTitleBlur}
- className="text-[32px] font-extrabold bg-transparent border-b-2 border-transparent hover:border-border focus:outline-none focus:border-accent w-full p-0 text-foreground resize-none leading-tight overflow-hidden"
- />
- )}
+ }}
+ onBlur={handleTitleBlur}
+ className="text-[32px] font-extrabold bg-transparent border-b-2 border-transparent hover:border-border focus:outline-none focus:border-accent w-full p-0 text-foreground resize-none leading-tight overflow-hidden"
+ />
+ )}
+ </div>
<div className="flex items-center gap-1.5 mt-2 mb-4 flex-wrap">
<span className="inline-flex items-center text-[11px] font-medium text-muted-foreground bg-white border border-border px-2.5 py-0.5 rounded-full">