@vfrey/vfrey 0.0.1 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +33 -0
- package/README.md +78 -3
- package/accounts.example.json +61 -0
- package/accounts.first-run.json +41 -0
- package/bin/vfrey.mjs +36 -0
- package/integration-tools/README.md +43 -0
- package/integration-tools/image/pillow.md +32 -0
- package/integration-tools/image/playwright.md +33 -0
- package/integration-tools/image/resvg.md +36 -0
- package/integration-tools/image/satori.md +36 -0
- package/integration-tools/image/sharp.md +38 -0
- package/integration-tools/video/blender.md +34 -0
- package/integration-tools/video/ffmpeg.md +41 -0
- package/integration-tools/video/manim.md +37 -0
- package/integration-tools/video/motion-canvas.md +37 -0
- package/integration-tools/video/remotion.md +50 -0
- package/integration-tools/video/revideo.md +32 -0
- package/package.json +74 -6
- package/skills/vfrey-orchestrator/SKILL.md +15 -0
- package/skills/vfrey-orchestrator/channel-video/SKILL.md +41 -0
- package/skills/vfrey-product/SKILL.md +63 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/framey/cook-one.svg +14 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/framey/cook-two.svg +22 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/framey/index.html +70 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/remotion/cook-one.svg +14 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/remotion/cook-two.svg +22 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/remotion/index.tsx +49 -0
- package/skills/vfrey-product/examples/concurrency-vs-parallelism/script.json +15 -0
- package/skills/vfrey-product/examples/octopus-facts/index.html +60 -0
- package/skills/vfrey-product/examples/octopus-facts/octopus.svg +8 -0
- package/skills/vfrey-product/examples/octopus-facts/script.json +14 -0
- package/skills/vfrey-product/push/SKILL.md +15 -0
- package/skills/vfrey-product/scenes/NOTICE +5 -0
- package/skills/vfrey-product/scenes/blocks.md +57 -0
- package/skills/vfrey-product/scenes/craft.md +118 -0
- package/skills/vfrey-product/scenes/motion.md +88 -0
- package/src/analytics/dashboard.ts +109 -0
- package/src/analytics/index.ts +260 -0
- package/src/api/client.ts +282 -0
- package/src/api/commands.ts +330 -0
- package/src/api/config.ts +34 -0
- package/src/api/creators.ts +463 -0
- package/src/api/credentials.ts +152 -0
- package/src/api/mail.ts +333 -0
- package/src/api/topics.ts +207 -0
- package/src/api/types.ts +205 -0
- package/src/cli.ts +467 -0
- package/src/cloud/executor.ts +281 -0
- package/src/cloud/job.ts +106 -0
- package/src/cloud/render-job.ts +187 -0
- package/src/config.ts +309 -0
- package/src/dashboard-link.ts +180 -0
- package/src/dashboard-start.ts +103 -0
- package/src/desk/channel.ts +64 -0
- package/src/desk/cli.ts +216 -0
- package/src/desk/creators-route.ts +129 -0
- package/src/desk/fonts/JetBrainsMono-OFL.txt +93 -0
- package/src/desk/fonts/google-sans-flex-latin.woff2 +0 -0
- package/src/desk/fonts/jetbrains-mono-medium.woff2 +0 -0
- package/src/desk/http.ts +460 -0
- package/src/desk/mail-route.ts +103 -0
- package/src/desk/overlay.ts +112 -0
- package/src/desk/preview.ts +422 -0
- package/src/desk/screens.ts +149 -0
- package/src/desk/secrets.ts +143 -0
- package/src/desk/series.ts +127 -0
- package/src/desk/state.ts +77 -0
- package/src/desk/studio-route.ts +119 -0
- package/src/desk/tick-runner.ts +66 -0
- package/src/desk/tick.ts +56 -0
- package/src/desk/topics-route.ts +41 -0
- package/src/desk/ui/app.css +505 -0
- package/src/desk/ui/app.js +185 -0
- package/src/desk/ui/apple-icon.png +0 -0
- package/src/desk/ui/components.js +79 -0
- package/src/desk/ui/core.js +156 -0
- package/src/desk/ui/favicon.ico +0 -0
- package/src/desk/ui/icon.svg +1 -0
- package/src/desk/ui/icons.js +49 -0
- package/src/desk/ui/index.html +41 -0
- package/src/desk/ui/metrics-math.d.ts +22 -0
- package/src/desk/ui/metrics-math.js +135 -0
- package/src/desk/ui/theme.js +5 -0
- package/src/desk/ui/views-creators.js +209 -0
- package/src/desk/ui/views-keys.js +114 -0
- package/src/desk/ui/views-mail.js +188 -0
- package/src/desk/ui/views-misc.js +123 -0
- package/src/desk/ui/views-review.js +119 -0
- package/src/desk/ui/views-runs.js +350 -0
- package/src/desk/ui/views-screens.js +163 -0
- package/src/desk/ui/views-series.js +318 -0
- package/src/desk/ui/views-topics.js +87 -0
- package/src/desk/verbs.ts +361 -0
- package/src/doctor.ts +212 -0
- package/src/drain.ts +14 -0
- package/src/engage/index.ts +217 -0
- package/src/generate/index.ts +110 -0
- package/src/generate/script.ts +152 -0
- package/src/generate/title.ts +78 -0
- package/src/help.ts +233 -0
- package/src/home.ts +45 -0
- package/src/llm/client.ts +177 -0
- package/src/log.ts +7 -0
- package/src/oauth/tokens.ts +189 -0
- package/src/oauth/vault.ts +72 -0
- package/src/pipeline/review.ts +642 -0
- package/src/pipeline/run.ts +443 -0
- package/src/pipeline/series-guard.ts +26 -0
- package/src/pipeline/source-fetch.ts +69 -0
- package/src/pipeline/stages.ts +728 -0
- package/src/pipeline/topics-source.ts +90 -0
- package/src/product/commands.ts +296 -0
- package/src/product/config-file.ts +38 -0
- package/src/product/engine-choice.ts +89 -0
- package/src/product/engines.ts +103 -0
- package/src/product/insights.ts +50 -0
- package/src/product/keys.ts +67 -0
- package/src/product/paths.ts +18 -0
- package/src/product/probes.ts +88 -0
- package/src/product/push-flow.ts +90 -0
- package/src/product/render-video.ts +21 -0
- package/src/product/short.ts +62 -0
- package/src/product/update.ts +32 -0
- package/src/project/canonical.ts +14 -0
- package/src/project/commands.ts +177 -0
- package/src/project/dashboard-status.ts +28 -0
- package/src/project/discover.ts +19 -0
- package/src/project/index-file.ts +73 -0
- package/src/project/marker.ts +87 -0
- package/src/project/migrate.ts +201 -0
- package/src/project/names.ts +27 -0
- package/src/project/notice.ts +16 -0
- package/src/project/open.ts +88 -0
- package/src/project/scaffold.ts +112 -0
- package/src/project/templates.ts +42 -0
- package/src/project/videos.ts +64 -0
- package/src/publish/facebook.ts +91 -0
- package/src/publish/index.ts +12 -0
- package/src/publish/instagram.ts +97 -0
- package/src/publish/rate.ts +62 -0
- package/src/publish/session.ts +242 -0
- package/src/publish/tiktok.ts +202 -0
- package/src/publish/youtube.ts +177 -0
- package/src/queue/desk-ops.ts +1170 -0
- package/src/queue/seal.ts +3 -0
- package/src/queue/store.ts +1006 -0
- package/src/remotion/AiLabel.tsx +26 -0
- package/src/remotion/Root.tsx +73 -0
- package/src/remotion/defaults.ts +26 -0
- package/src/remotion/films/claude/ClaudeFilm.tsx +1014 -0
- package/src/remotion/films/engine/EngineMark.tsx +17 -0
- package/src/remotion/films/rea/ReaShort.tsx +552 -0
- package/src/remotion/films/rea/drawings.tsx +907 -0
- package/src/remotion/films/rea/timing.ts +144 -0
- package/src/remotion/index.ts +4 -0
- package/src/remotion/templates/EditorialSplit.tsx +39 -0
- package/src/remotion/templates/KineticType.tsx +39 -0
- package/src/remotion/templates/SignalBoard.tsx +50 -0
- package/src/remotion/timing.ts +22 -0
- package/src/render/chrome.ts +78 -0
- package/src/render/engine-mark.ts +29 -0
- package/src/render/framey-template.ts +130 -0
- package/src/render/html-engine.ts +149 -0
- package/src/render/node-crypto-stub.ts +11 -0
- package/src/render/probe.ts +29 -0
- package/src/render/props.ts +17 -0
- package/src/render/vertical-short.ts +35 -0
- package/src/render/webpack.ts +33 -0
- package/src/render/worker.ts +65 -0
- package/src/scene/assets/fonts/TitanOne-OFL.txt +94 -0
- package/src/scene/assets/fonts/titan-one.woff2 +0 -0
- package/src/scene/assets/gsap/LICENSE.txt +8 -0
- package/src/scene/assets/gsap/gsap.min.js +11 -0
- package/src/scene/audio.ts +54 -0
- package/src/scene/blocks/LICENSE +190 -0
- package/src/scene/blocks/NOTICE +5 -0
- package/src/scene/blocks/bar-chart-race/bar-chart-race.html +585 -0
- package/src/scene/blocks/beat-freeze-cut/beat-freeze-cut.html +874 -0
- package/src/scene/blocks/camcorder-hud/camcorder-hud.html +164 -0
- package/src/scene/blocks/camera-dolly-zoom/camera-dolly-zoom.html +355 -0
- package/src/scene/blocks/code-diff/code-diff.html +817 -0
- package/src/scene/blocks/code-snippet-apple-terminal-pro/code-snippet-apple-terminal-pro.html +248 -0
- package/src/scene/blocks/code-typing/code-typing.html +764 -0
- package/src/scene/blocks/data-chart/data-chart.html +452 -0
- package/src/scene/blocks/flowchart-vertical/flowchart-vertical.html +454 -0
- package/src/scene/blocks/hw-scribble-transition/hw-scribble-transition.html +153 -0
- package/src/scene/blocks/index.json +824 -0
- package/src/scene/blocks/lt-accent-underline/lt-accent-underline.html +107 -0
- package/src/scene/blocks/lt-bold-block/lt-bold-block.html +109 -0
- package/src/scene/blocks/lt-clean-bar/lt-clean-bar.html +112 -0
- package/src/scene/blocks/lt-dark-card/lt-dark-card.html +111 -0
- package/src/scene/blocks/lt-kicker-name/lt-kicker-name.html +114 -0
- package/src/scene/blocks/lt-mask-reveal/lt-mask-reveal.html +120 -0
- package/src/scene/blocks/lt-neon-border/lt-neon-border.html +391 -0
- package/src/scene/blocks/lt-stack-bars/lt-stack-bars.html +109 -0
- package/src/scene/blocks/macos-notification/macos-notification.html +194 -0
- package/src/scene/blocks/mk-background/mk-background.html +236 -0
- package/src/scene/blocks/mk-callout-highlight/mk-callout-highlight.html +183 -0
- package/src/scene/blocks/mk-clone-wall-transition/mk-clone-wall-transition.html +226 -0
- package/src/scene/blocks/mk-line-graph/mk-line-graph.html +293 -0
- package/src/scene/blocks/mk-progress-stat/mk-progress-stat.html +186 -0
- package/src/scene/blocks/mk-specs-list/mk-specs-list.html +223 -0
- package/src/scene/blocks/news-ticker/news-ticker.html +409 -0
- package/src/scene/blocks/organic-light-leak-overlay/organic-light-leak-overlay.html +126 -0
- package/src/scene/blocks/oscilloscope-trace/oscilloscope-trace.html +519 -0
- package/src/scene/blocks/snow/snow.html +205 -0
- package/src/scene/blocks/split-flap-board/split-flap-board.html +347 -0
- package/src/scene/blocks/spotify-card/spotify-card.html +294 -0
- package/src/scene/blocks/starfield/starfield.html +188 -0
- package/src/scene/blocks/thread-message-stack/thread-message-stack.html +239 -0
- package/src/scene/blocks/week-in-merges/week-in-merges.html +470 -0
- package/src/scene/blocks/x-post/x-post.html +437 -0
- package/src/scene/blocks/yt-comment-card/yt-comment-card.html +319 -0
- package/src/scene/blocks/yt-lcd-background/yt-lcd-background.html +307 -0
- package/src/scene/blocks/yt-prism-title/yt-prism-title.html +205 -0
- package/src/scene/blocks.ts +229 -0
- package/src/scene/command.ts +272 -0
- package/src/scene/figure.ts +181 -0
- package/src/scene/glyphs.ts +107 -0
- package/src/scene/init.ts +86 -0
- package/src/scene/inspect/css-tree.d.ts +6 -0
- package/src/scene/inspect/page-scripts.ts +272 -0
- package/src/scene/inspect/report.ts +405 -0
- package/src/scene/inspect/run.ts +200 -0
- package/src/scene/inspect/source.ts +236 -0
- package/src/scene/label.ts +131 -0
- package/src/scene/net-guard.ts +74 -0
- package/src/scene/render.ts +292 -0
- package/src/scene/runtime/browser.ts +199 -0
- package/src/scene/runtime/core.ts +181 -0
- package/src/scene/runtime/react.tsx +115 -0
- package/src/scene/runtime/transitions.ts +133 -0
- package/src/scene/sanitize.ts +181 -0
- package/src/scene/scene.ts +152 -0
- package/src/scene/studio-command.ts +48 -0
- package/src/scene/studio-skin.ts +59 -0
- package/src/scene/studio.ts +337 -0
- package/src/scene/supply.ts +111 -0
- package/src/scene/timing.ts +288 -0
- package/src/scene/transitions/LICENSE +190 -0
- package/src/scene/transitions/NOTICE +5 -0
- package/src/scene/transitions/SOURCE.json +24 -0
- package/src/scene/transitions/transitions.global.js +38 -0
- package/src/scene/transitions.ts +26 -0
- package/src/service/all-projects.ts +153 -0
- package/src/service/commands.ts +256 -0
- package/src/service/due.ts +82 -0
- package/src/service/lock.ts +101 -0
- package/src/service/log-file.ts +56 -0
- package/src/service/state.ts +41 -0
- package/src/service/units.ts +90 -0
- package/src/service/worker.ts +51 -0
- package/src/skill-agents.ts +74 -0
- package/src/skill-install.ts +334 -0
- package/src/sync-write.ts +21 -0
- package/src/tick-report.ts +205 -0
- package/src/tts.ts +124 -0
- package/vendor/@vfrey/contracts/dist/account.d.ts +97 -0
- package/vendor/@vfrey/contracts/dist/account.js +27 -0
- package/vendor/@vfrey/contracts/dist/checks.d.ts +8 -0
- package/vendor/@vfrey/contracts/dist/checks.js +1 -0
- package/vendor/@vfrey/contracts/dist/credentials/crypto.d.ts +4 -0
- package/vendor/@vfrey/contracts/dist/credentials/crypto.js +38 -0
- package/vendor/@vfrey/contracts/dist/domain/advice-persona.d.ts +10 -0
- package/vendor/@vfrey/contracts/dist/domain/advice-persona.js +24 -0
- package/vendor/@vfrey/contracts/dist/domain/backoff.d.ts +13 -0
- package/vendor/@vfrey/contracts/dist/domain/backoff.js +27 -0
- package/vendor/@vfrey/contracts/dist/domain/cadence.d.ts +29 -0
- package/vendor/@vfrey/contracts/dist/domain/cadence.js +95 -0
- package/vendor/@vfrey/contracts/dist/domain/creators.d.ts +146 -0
- package/vendor/@vfrey/contracts/dist/domain/creators.js +2 -0
- package/vendor/@vfrey/contracts/dist/domain/disclosure.d.ts +127 -0
- package/vendor/@vfrey/contracts/dist/domain/disclosure.js +250 -0
- package/vendor/@vfrey/contracts/dist/domain/errors.d.ts +34 -0
- package/vendor/@vfrey/contracts/dist/domain/errors.js +68 -0
- package/vendor/@vfrey/contracts/dist/domain/redact.d.ts +1 -0
- package/vendor/@vfrey/contracts/dist/domain/redact.js +21 -0
- package/vendor/@vfrey/contracts/dist/domain/revenue.d.ts +13 -0
- package/vendor/@vfrey/contracts/dist/domain/revenue.js +16 -0
- package/vendor/@vfrey/contracts/dist/domain/safety.d.ts +20 -0
- package/vendor/@vfrey/contracts/dist/domain/safety.js +61 -0
- package/vendor/@vfrey/contracts/dist/domain/similarity.d.ts +13 -0
- package/vendor/@vfrey/contracts/dist/domain/similarity.js +100 -0
- package/vendor/@vfrey/contracts/dist/domain/templates.d.ts +18 -0
- package/vendor/@vfrey/contracts/dist/domain/templates.js +67 -0
- package/vendor/@vfrey/contracts/dist/domain/tiktok-chunks.d.ts +19 -0
- package/vendor/@vfrey/contracts/dist/domain/tiktok-chunks.js +52 -0
- package/vendor/@vfrey/contracts/dist/domain/topics.d.ts +78 -0
- package/vendor/@vfrey/contracts/dist/domain/topics.js +4 -0
- package/vendor/@vfrey/contracts/dist/domain/types.d.ts +216 -0
- package/vendor/@vfrey/contracts/dist/domain/types.js +1 -0
- package/vendor/@vfrey/contracts/dist/domain/variation.d.ts +57 -0
- package/vendor/@vfrey/contracts/dist/domain/variation.js +278 -0
- package/vendor/@vfrey/contracts/dist/events.d.ts +20 -0
- package/vendor/@vfrey/contracts/dist/events.js +1 -0
- package/vendor/@vfrey/contracts/dist/http.d.ts +11 -0
- package/vendor/@vfrey/contracts/dist/http.js +37 -0
- package/vendor/@vfrey/contracts/dist/index.d.ts +22 -0
- package/vendor/@vfrey/contracts/dist/index.js +22 -0
- package/vendor/@vfrey/contracts/dist/log.d.ts +2 -0
- package/vendor/@vfrey/contracts/dist/log.js +10 -0
- package/vendor/@vfrey/contracts/dist/mail.d.ts +55 -0
- package/vendor/@vfrey/contracts/dist/mail.js +1 -0
- package/vendor/@vfrey/contracts/package.json +18 -0
- package/vendor/@vfrey/ingest/dist/index.d.ts +41 -0
- package/vendor/@vfrey/ingest/dist/index.js +221 -0
- package/vendor/@vfrey/ingest/dist/parse.d.ts +5 -0
- package/vendor/@vfrey/ingest/dist/parse.js +165 -0
- package/vendor/@vfrey/ingest/package.json +21 -0
- package/vendor/framey/LICENSE +190 -0
- package/vendor/framey/NOTICE +15 -0
- package/vendor/framey/SOURCE.json +24 -0
- package/vendor/framey/STUDIO-SOURCE.json +9 -0
- package/vendor/framey/bin/framey-localize-fonts.mjs +12 -0
- package/vendor/framey/bin/framey.mjs +16 -0
- package/vendor/framey/dist/add-VMJD5KBS.js +75 -0
- package/vendor/framey/dist/animatedGifPrep-QPKGJ6PM.js +43 -0
- package/vendor/framey/dist/api.d.ts +211 -0
- package/vendor/framey/dist/api.js +76 -0
- package/vendor/framey/dist/appHistory-WW56FZTT.js +31 -0
- package/vendor/framey/dist/asset-WQKGOELE.js +26 -0
- package/vendor/framey/dist/audio-RSJWVWRA.js +1936 -0
- package/vendor/framey/dist/batchRender-3HPICDCT.js +366 -0
- package/vendor/framey/dist/beats-HL2BDUZI.js +273 -0
- package/vendor/framey/dist/benchmark-RWCWHI5Z.js +230 -0
- package/vendor/framey/dist/browser-ECYET3Q2.js +206 -0
- package/vendor/framey/dist/bundleWithLocalizedFonts-ALYBQEQT.js +52 -0
- package/vendor/framey/dist/captureCompositionFrame-4DA6SEH2.js +94 -0
- package/vendor/framey/dist/catalog-5JVDEUWK.js +979 -0
- package/vendor/framey/dist/catch-up-NEBCL5NO.js +106 -0
- package/vendor/framey/dist/check-F5N544ML.js +111 -0
- package/vendor/framey/dist/checkBrowser-LZ66CMJG.js +110 -0
- package/vendor/framey/dist/chunk-2K7Z2HVP.js +372 -0
- package/vendor/framey/dist/chunk-2UZQHDM7.js +323 -0
- package/vendor/framey/dist/chunk-2X4PQEYM.js +34 -0
- package/vendor/framey/dist/chunk-3422KMTD.js +168 -0
- package/vendor/framey/dist/chunk-3FYD4YEK.js +72 -0
- package/vendor/framey/dist/chunk-3GXQPCJC.js +682 -0
- package/vendor/framey/dist/chunk-3LM6YPBR.js +179 -0
- package/vendor/framey/dist/chunk-442JNXRM.js +20 -0
- package/vendor/framey/dist/chunk-4BNN5FGX.js +182 -0
- package/vendor/framey/dist/chunk-4P7NX5BM.js +11532 -0
- package/vendor/framey/dist/chunk-4UMPIPCQ.js +88 -0
- package/vendor/framey/dist/chunk-4YYJOFKS.js +28 -0
- package/vendor/framey/dist/chunk-54HJ63Q2.js +29 -0
- package/vendor/framey/dist/chunk-5ETJX6WM.js +89 -0
- package/vendor/framey/dist/chunk-5SG54JRS.js +68 -0
- package/vendor/framey/dist/chunk-634HSJ3J.js +58 -0
- package/vendor/framey/dist/chunk-66LREXGS.js +48 -0
- package/vendor/framey/dist/chunk-6BEFEWFB.js +25 -0
- package/vendor/framey/dist/chunk-6BNTGNGD.js +286 -0
- package/vendor/framey/dist/chunk-6DDPOHMK.js +140 -0
- package/vendor/framey/dist/chunk-6GV5XSOR.js +214 -0
- package/vendor/framey/dist/chunk-6JR2XUEE.js +127 -0
- package/vendor/framey/dist/chunk-73QVATIM.js +362 -0
- package/vendor/framey/dist/chunk-7FMUTGOH.js +279 -0
- package/vendor/framey/dist/chunk-7JQFJ6JJ.js +291 -0
- package/vendor/framey/dist/chunk-AHPGAESX.js +113 -0
- package/vendor/framey/dist/chunk-AHX34EFP.js +15 -0
- package/vendor/framey/dist/chunk-AJ5CSAEZ.js +487 -0
- package/vendor/framey/dist/chunk-B7RJV74O.js +5047 -0
- package/vendor/framey/dist/chunk-BL4U6U52.js +254 -0
- package/vendor/framey/dist/chunk-BSQ7XANM.js +210 -0
- package/vendor/framey/dist/chunk-BZ56MTDX.js +6 -0
- package/vendor/framey/dist/chunk-C5BO7PMT.js +282 -0
- package/vendor/framey/dist/chunk-CFUCHO4T.js +358 -0
- package/vendor/framey/dist/chunk-CZGHFATT.js +31 -0
- package/vendor/framey/dist/chunk-DLA44CMS.js +5649 -0
- package/vendor/framey/dist/chunk-DPVXBVLL.js +31292 -0
- package/vendor/framey/dist/chunk-DQBY7FRR.js +397 -0
- package/vendor/framey/dist/chunk-EAMLBAHA.js +154 -0
- package/vendor/framey/dist/chunk-EOVYQ3IG.js +143 -0
- package/vendor/framey/dist/chunk-EVMY7IPL.js +612 -0
- package/vendor/framey/dist/chunk-FG4BBFZI.js +122 -0
- package/vendor/framey/dist/chunk-FI4I7CME.js +56 -0
- package/vendor/framey/dist/chunk-FLREUEHW.js +2081 -0
- package/vendor/framey/dist/chunk-FUFP7A7S.js +1126 -0
- package/vendor/framey/dist/chunk-FV3PIKGH.js +56 -0
- package/vendor/framey/dist/chunk-FXMKHHPO.js +123 -0
- package/vendor/framey/dist/chunk-GGZAM5VH.js +1187 -0
- package/vendor/framey/dist/chunk-GKZEVJIB.js +39 -0
- package/vendor/framey/dist/chunk-GMECXFAN.js +57 -0
- package/vendor/framey/dist/chunk-GNEFDLFB.js +621 -0
- package/vendor/framey/dist/chunk-GPMLSOEG.js +19274 -0
- package/vendor/framey/dist/chunk-GPYVT5EE.js +59 -0
- package/vendor/framey/dist/chunk-H6IEMZEV.js +40 -0
- package/vendor/framey/dist/chunk-HEFQCIXR.js +170 -0
- package/vendor/framey/dist/chunk-HFQ4CWHA.js +118 -0
- package/vendor/framey/dist/chunk-HPDTCOKE.js +304 -0
- package/vendor/framey/dist/chunk-HTUHQKDB.js +548 -0
- package/vendor/framey/dist/chunk-HU2SPFNG.js +103 -0
- package/vendor/framey/dist/chunk-HVW7ABXD.js +19 -0
- package/vendor/framey/dist/chunk-IG7NDKXO.js +26 -0
- package/vendor/framey/dist/chunk-II3J3WXK.js +246 -0
- package/vendor/framey/dist/chunk-IR35BCLK.js +13 -0
- package/vendor/framey/dist/chunk-ISN5GRYI.js +20 -0
- package/vendor/framey/dist/chunk-IUONB55J.js +669 -0
- package/vendor/framey/dist/chunk-IVSUQR2B.js +161 -0
- package/vendor/framey/dist/chunk-IXU6PQSW.js +259 -0
- package/vendor/framey/dist/chunk-IZCW2NKT.js +29 -0
- package/vendor/framey/dist/chunk-JGXJU5PF.js +68 -0
- package/vendor/framey/dist/chunk-JHOCK3DG.js +27 -0
- package/vendor/framey/dist/chunk-JVBRJMOP.js +121 -0
- package/vendor/framey/dist/chunk-K4MJX7SR.js +17 -0
- package/vendor/framey/dist/chunk-K4WKGXRC.js +18 -0
- package/vendor/framey/dist/chunk-KGPLIH7B.js +127 -0
- package/vendor/framey/dist/chunk-KLIKCX6Q.js +63 -0
- package/vendor/framey/dist/chunk-KXTKKBOC.js +61 -0
- package/vendor/framey/dist/chunk-KZI44OPA.js +185 -0
- package/vendor/framey/dist/chunk-LEKZNRKI.js +45 -0
- package/vendor/framey/dist/chunk-LFGJWOVA.js +61 -0
- package/vendor/framey/dist/chunk-LLMSX6V6.js +17 -0
- package/vendor/framey/dist/chunk-LTGTN2TH.js +195 -0
- package/vendor/framey/dist/chunk-M2WBOQ2Q.js +54 -0
- package/vendor/framey/dist/chunk-MI5FTLYK.js +399 -0
- package/vendor/framey/dist/chunk-MLQP2QUF.js +1809 -0
- package/vendor/framey/dist/chunk-MMQ52NIZ.js +956 -0
- package/vendor/framey/dist/chunk-ND46XKK3.js +742 -0
- package/vendor/framey/dist/chunk-NYEXNSHM.js +504 -0
- package/vendor/framey/dist/chunk-O4YRB27L.js +57 -0
- package/vendor/framey/dist/chunk-O7BGSQ5F.js +92 -0
- package/vendor/framey/dist/chunk-OFQWTKPW.js +117 -0
- package/vendor/framey/dist/chunk-P5ZBLXJ6.js +91 -0
- package/vendor/framey/dist/chunk-P6LJ4Y32.js +4662 -0
- package/vendor/framey/dist/chunk-PKZ7RK5N.js +281 -0
- package/vendor/framey/dist/chunk-PURHAXFL.js +15 -0
- package/vendor/framey/dist/chunk-Q5X2B5WT.js +29 -0
- package/vendor/framey/dist/chunk-QAMKOG67.js +248 -0
- package/vendor/framey/dist/chunk-R6YBK4XX.js +514 -0
- package/vendor/framey/dist/chunk-RGLQURIX.js +2997 -0
- package/vendor/framey/dist/chunk-RNV3DM4S.js +3573 -0
- package/vendor/framey/dist/chunk-ROEW726S.js +4638 -0
- package/vendor/framey/dist/chunk-RQVDTPGD.js +6 -0
- package/vendor/framey/dist/chunk-RVZHGOGR.js +26 -0
- package/vendor/framey/dist/chunk-RXATE6FZ.js +385 -0
- package/vendor/framey/dist/chunk-S3S4TGEH.js +424 -0
- package/vendor/framey/dist/chunk-SDYDNHEE.js +11202 -0
- package/vendor/framey/dist/chunk-SSWBU67I.js +173 -0
- package/vendor/framey/dist/chunk-ST35C4K6.js +28 -0
- package/vendor/framey/dist/chunk-SZNTYTIV.js +990 -0
- package/vendor/framey/dist/chunk-T2EUWCJE.js +29 -0
- package/vendor/framey/dist/chunk-T6AGUTZJ.js +444 -0
- package/vendor/framey/dist/chunk-THJALHFJ.js +11131 -0
- package/vendor/framey/dist/chunk-TIQB63MX.js +18128 -0
- package/vendor/framey/dist/chunk-U242RTCT.js +134 -0
- package/vendor/framey/dist/chunk-UJZREAV6.js +3901 -0
- package/vendor/framey/dist/chunk-UMD3V7CU.js +264 -0
- package/vendor/framey/dist/chunk-UOFAE5RF.js +42 -0
- package/vendor/framey/dist/chunk-UTEIUGAZ.js +29 -0
- package/vendor/framey/dist/chunk-VAS6HQX3.js +138 -0
- package/vendor/framey/dist/chunk-VC76R6W2.js +27 -0
- package/vendor/framey/dist/chunk-VFZ7W5W7.js +226 -0
- package/vendor/framey/dist/chunk-VHNLZAE2.js +348 -0
- package/vendor/framey/dist/chunk-VMC4WSH5.js +278 -0
- package/vendor/framey/dist/chunk-VORQIH64.js +108 -0
- package/vendor/framey/dist/chunk-VTXFRIHO.js +186 -0
- package/vendor/framey/dist/chunk-W2LGJSEN.js +182 -0
- package/vendor/framey/dist/chunk-WKBM7NDG.js +32 -0
- package/vendor/framey/dist/chunk-WMQNIQDJ.js +2057 -0
- package/vendor/framey/dist/chunk-WN4XZC5F.js +504 -0
- package/vendor/framey/dist/chunk-WQ6ZXHFQ.js +133 -0
- package/vendor/framey/dist/chunk-X7HBSTCZ.js +53 -0
- package/vendor/framey/dist/chunk-X7MTZ4T2.js +6 -0
- package/vendor/framey/dist/chunk-XPTOJZJF.js +308 -0
- package/vendor/framey/dist/chunk-XT6MXC7A.js +6 -0
- package/vendor/framey/dist/chunk-XT7X6QCP.js +6 -0
- package/vendor/framey/dist/chunk-XTMDWNEC.js +2820 -0
- package/vendor/framey/dist/chunk-XUHOIDKG.js +6 -0
- package/vendor/framey/dist/chunk-XX7LTW5Y.js +138 -0
- package/vendor/framey/dist/chunk-Y3YGTZEG.js +382 -0
- package/vendor/framey/dist/chunk-Y5SBSGN7.js +346 -0
- package/vendor/framey/dist/chunk-YCMVI4MZ.js +625 -0
- package/vendor/framey/dist/chunk-YOR4CTCE.js +261 -0
- package/vendor/framey/dist/chunk-YPRBGITP.js +2748 -0
- package/vendor/framey/dist/chunk-ZKDMAOFU.js +32 -0
- package/vendor/framey/dist/chunk-ZW6DURPF.js +1318 -0
- package/vendor/framey/dist/clean-ZJOGDKDM.js +336 -0
- package/vendor/framey/dist/cli.js +439 -0
- package/vendor/framey/dist/cloudrun-HGJ3B6ZV.js +767 -0
- package/vendor/framey/dist/commands/contrast-audit.browser.js +643 -0
- package/vendor/framey/dist/commands/layout-audit.browser.js +2914 -0
- package/vendor/framey/dist/commands/motion-sample.browser.js +74 -0
- package/vendor/framey/dist/commands/motion-signature.browser.js +475 -0
- package/vendor/framey/dist/compare-W7UY3BAZ.js +463 -0
- package/vendor/framey/dist/compiler-TM3W6GYF.js +136 -0
- package/vendor/framey/dist/component-QF5VGYMU.js +176 -0
- package/vendor/framey/dist/compositions-XT3PMNDF.js +238 -0
- package/vendor/framey/dist/contactSheet-7W6GYHBQ.js +24 -0
- package/vendor/framey/dist/deploy-6FJPWKF2.js +299 -0
- package/vendor/framey/dist/destroy-HE2RIPKZ.js +57 -0
- package/vendor/framey/dist/deterministicFonts-RADD3BSX.js +50 -0
- package/vendor/framey/dist/dist-4S2FGGVY.js +422 -0
- package/vendor/framey/dist/dist-BE4B2EZE.js +32 -0
- package/vendor/framey/dist/dist-EWXJGN63.js +129 -0
- package/vendor/framey/dist/docs-VKIRFEEX.js +131 -0
- package/vendor/framey/dist/doctor-2UNJ2G7U.js +74 -0
- package/vendor/framey/dist/dom-37K6YOH4.js +14 -0
- package/vendor/framey/dist/dotEnv-7PZQTVIM.js +54 -0
- package/vendor/framey/dist/events-ACY3P2PA.js +76 -0
- package/vendor/framey/dist/events-IHB3B2MK.js +69 -0
- package/vendor/framey/dist/ffmpeg-DR5LGGSK.js +63 -0
- package/vendor/framey/dist/figma-BODVUPHB.js +63 -0
- package/vendor/framey/dist/fontData.generated-NXAOI4GH.js +13 -0
- package/vendor/framey/dist/fontLocalizeCli.js +142 -0
- package/vendor/framey/dist/gpuPolicy-XLEXORZY.js +49 -0
- package/vendor/framey/dist/grade-compare-GAXFQ74C.js +661 -0
- package/vendor/framey/dist/gsapParser-IEUSLYDJ.js +2885 -0
- package/vendor/framey/dist/gsapParserAcorn-LZJKCFQI.js +30 -0
- package/vendor/framey/dist/help-VCB5X2HS.js +184 -0
- package/vendor/framey/dist/history-ENGZEVFT.js +471 -0
- package/vendor/framey/dist/hyperframe.manifest.json +22 -0
- package/vendor/framey/dist/hyperframe.runtime.iife.js +1132 -0
- package/vendor/framey/dist/hyperframes-player.global.js +478 -0
- package/vendor/framey/dist/hyperframes-slideshow.global.js +148 -0
- package/vendor/framey/dist/info-WPCJHBMU.js +182 -0
- package/vendor/framey/dist/init-G4WGLYGD.js +1176 -0
- package/vendor/framey/dist/inspect-5IQ6CNEQ.js +106 -0
- package/vendor/framey/dist/installer-ML4HWUV7.js +40 -0
- package/vendor/framey/dist/keyframes-Q6XJO7VW.js +2755 -0
- package/vendor/framey/dist/lambda-A7JC74JF.js +468 -0
- package/vendor/framey/dist/layout-YET6XNXA.js +95 -0
- package/vendor/framey/dist/lint-I7FZN2VJ.js +162 -0
- package/vendor/framey/dist/lintProject-PDB3UN72.js +30 -0
- package/vendor/framey/dist/manager-CD6LJ7ZN.js +45 -0
- package/vendor/framey/dist/manager-WA4F2GST.js +67 -0
- package/vendor/framey/dist/media-treatment-BXYS4WVA.js +1030 -0
- package/vendor/framey/dist/media-use-LWH3MANK.js +113 -0
- package/vendor/framey/dist/models-K363FYM4.js +195 -0
- package/vendor/framey/dist/motionShot-GPAVWXLH.js +640 -0
- package/vendor/framey/dist/normalize-FASIPBUM.js +24 -0
- package/vendor/framey/dist/normalize-audio-VDWYRHN6.js +268 -0
- package/vendor/framey/dist/open-E3TB6P6J.js +128 -0
- package/vendor/framey/dist/parakeetRunner-UP34UOI2.js +58 -0
- package/vendor/framey/dist/pipeline-VXIUYEBU.js +64 -0
- package/vendor/framey/dist/play-BUTDQ4DV.js +353 -0
- package/vendor/framey/dist/policies-OLDYGFK5.js +309 -0
- package/vendor/framey/dist/preflight-2KZ2GWAZ.js +55 -0
- package/vendor/framey/dist/present-GXYSM7NX.js +353 -0
- package/vendor/framey/dist/preview-EKZ33JOJ.js +1910 -0
- package/vendor/framey/dist/producer-SKU5EV3J.js +13 -0
- package/vendor/framey/dist/progress-ZWB4Z4ET.js +76 -0
- package/vendor/framey/dist/projectConfig-3MZAYVTS.js +60 -0
- package/vendor/framey/dist/publication-DTKWNF74.js +33 -0
- package/vendor/framey/dist/remove-background-OY5L7XN2.js +265 -0
- package/vendor/framey/dist/render-CDV4GDFX.js +187 -0
- package/vendor/framey/dist/render-YE5YAMOD.js +2620 -0
- package/vendor/framey/dist/render-batch-ZAMFPCLL.js +274 -0
- package/vendor/framey/dist/renderSetupWorker.js +120 -0
- package/vendor/framey/dist/resolver-D5BIPSEW.js +42 -0
- package/vendor/framey/dist/runtimeVersion.js +18 -0
- package/vendor/framey/dist/sam-WFZXI4F7.js +23 -0
- package/vendor/framey/dist/shaderTransitionWorker.js +44 -0
- package/vendor/framey/dist/sherpa-RQWLV7I3.js +79 -0
- package/vendor/framey/dist/sherpaWorker.js +84 -0
- package/vendor/framey/dist/sites-AMOVABTK.js +54 -0
- package/vendor/framey/dist/skill-ZHVLH7KX.js +15 -0
- package/vendor/framey/dist/slideshow-SJGK4RQS.js +24 -0
- package/vendor/framey/dist/snapshot-TUXL6LBQ.js +1515 -0
- package/vendor/framey/dist/src-JHQGB2S6.js +215 -0
- package/vendor/framey/dist/src-Z5PGEMXB.js +532 -0
- package/vendor/framey/dist/state-B6H3WHCF.js +28 -0
- package/vendor/framey/dist/staticProjectServer-DFVZOUGI.js +63 -0
- package/vendor/framey/dist/studio/assets/hyperframes-player-DLaKjw0L.js +478 -0
- package/vendor/framey/dist/studio/assets/index-BX3KHhGX.js +71 -0
- package/vendor/framey/dist/studio/assets/index-CYbvOVp-.css +1 -0
- package/vendor/framey/dist/studio/assets/index-Dp3QEUGL.js +402 -0
- package/vendor/framey/dist/studio/assets/index-qrTAXbqc.js +531 -0
- package/vendor/framey/dist/studio/favicon.svg +14 -0
- package/vendor/framey/dist/studio/icons/timeline/audio.svg +7 -0
- package/vendor/framey/dist/studio/icons/timeline/captions.svg +5 -0
- package/vendor/framey/dist/studio/icons/timeline/composition.svg +12 -0
- package/vendor/framey/dist/studio/icons/timeline/image.svg +18 -0
- package/vendor/framey/dist/studio/icons/timeline/music.svg +10 -0
- package/vendor/framey/dist/studio/icons/timeline/text.svg +3 -0
- package/vendor/framey/dist/studio/index.html +23 -0
- package/vendor/framey/dist/studio-api-2NECGRMB.js +179 -0
- package/vendor/framey/dist/studioSelectionClient-IUUPKUHZ.js +25 -0
- package/vendor/framey/dist/studioServer-N2OPUMOQ.js +1569 -0
- package/vendor/framey/dist/synthesize-PKTB5ATG.js +183 -0
- package/vendor/framey/dist/system-7F3UEHQT.js +27 -0
- package/vendor/framey/dist/telemetry-DQGPEKM6.js +145 -0
- package/vendor/framey/dist/telemetry-UN55N6U6.js +77 -0
- package/vendor/framey/dist/timeline-LHUUMK63.js +1295 -0
- package/vendor/framey/dist/tokens-OLECWDFK.js +92 -0
- package/vendor/framey/dist/transcribe-O7HQKMIV.js +331 -0
- package/vendor/framey/dist/transcribe-UJESPBT5.js +76 -0
- package/vendor/framey/dist/tts-YCCQHZD4.js +234 -0
- package/vendor/framey/dist/urlDownloader-H2LXLG4U.js +48 -0
- package/vendor/framey/dist/usage-HG4WMM7A.js +2167 -0
- package/vendor/framey/dist/validate-F2XMN6EV.js +87 -0
- package/vendor/framey/dist/vendor/npm/gsap@3.15.0/GSAP-LICENSE.txt +8 -0
- package/vendor/framey/dist/vendor/npm/gsap@3.15.0/dist/CustomEase.min.js +11 -0
- package/vendor/framey/dist/vendor/npm/gsap@3.15.0/dist/MotionPathPlugin.min.js +11 -0
- package/vendor/framey/dist/vendor/npm/gsap@3.15.0/dist/gsap.min.js +11 -0
- package/vendor/framey/dist/warmCheck.js +220 -0
- package/vendor/framey/dist/warmCheckClient.js +139 -0
- package/vendor/framey/dist/workspaceBuildCheck-XYD2YTFW.js +133 -0
- package/vendor/framey-player/LICENSE +190 -0
- package/vendor/framey-player/NOTICE +16 -0
- package/vendor/framey-player/SOURCE.json +6 -0
- package/vendor/framey-player/hyperframes-player.global.js +478 -0
- package/vendor/framey.pin +1 -0
- package/bin/index.js +0 -3
|
@@ -0,0 +1,1014 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
AbsoluteFill,
|
|
4
|
+
Audio,
|
|
5
|
+
Sequence,
|
|
6
|
+
interpolate,
|
|
7
|
+
staticFile,
|
|
8
|
+
useCurrentFrame,
|
|
9
|
+
} from "remotion";
|
|
10
|
+
|
|
11
|
+
// Measured from the takes of these lines so the film lands on 200 words per minute.
|
|
12
|
+
export const PLAYBACK_RATE = 1.1147;
|
|
13
|
+
|
|
14
|
+
const FPS = 30;
|
|
15
|
+
const W = 1080;
|
|
16
|
+
const H = 1920;
|
|
17
|
+
const CAPTION_BAND = 180;
|
|
18
|
+
const GOLD = "#f0c14a";
|
|
19
|
+
const CREAM = "#f6f3ec";
|
|
20
|
+
const BG = "#0f1115";
|
|
21
|
+
const INK = "#1b1f27";
|
|
22
|
+
const TEAL = "#5ec8c0";
|
|
23
|
+
const CORAL = "#ff7a6b";
|
|
24
|
+
const GREEN = "#6fd38a";
|
|
25
|
+
const GITHUB_PATH =
|
|
26
|
+
"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12";
|
|
27
|
+
|
|
28
|
+
type SceneDef = { id: string; text: string };
|
|
29
|
+
|
|
30
|
+
const SCENES: SceneDef[] = [
|
|
31
|
+
{ id: "s01", text: "You love a feature in an app, but there is no source code to open. How does it even work?" },
|
|
32
|
+
{ id: "s02", text: "That is what R. E. A. is for. Reverse Engineer Anything. More than 360,000 people have starred it on GitHub." },
|
|
33
|
+
{ id: "s03", text: "It gives your coding assistant one connection to look through an app. Say, how the search box in Notes behaves." },
|
|
34
|
+
{ id: "s04", text: "Starting is one line. Type n p x, rea agents, setup, and press enter." },
|
|
35
|
+
{ id: "s05", text: "Pick your coding assistant. Review the changes it wants to make, approve them, then restart the assistant." },
|
|
36
|
+
{ id: "s06", text: "Now ask a plain question. How does the search in Notes find my words so fast?" },
|
|
37
|
+
{ id: "s07", text: "The looking happens on your computer. The app is never uploaded anywhere." },
|
|
38
|
+
{ id: "s08", text: "You get an explanation, the proof behind it, and a clear note on what could not be proven." },
|
|
39
|
+
{ id: "s09", text: "A JavaScript app needs nothing extra. A compiled program uses Hopper, Ghidra, or IDA to be read. Setup can offer Hopper, only after you approve." },
|
|
40
|
+
{ id: "s10", text: "The payoff is a similar search appearing in your own project, sitting right beside the proof that shaped it." },
|
|
41
|
+
{ id: "s11", text: "One rule matters. Use it only on software you own, or are allowed to open, for research and learning." },
|
|
42
|
+
{ id: "s12", text: "That is R. E. A. Official sources are github dot com slash morluto slash rea, rea dot tools, and the package rea agents. Run n p x, rea agents, setup." },
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
const countWords = (t: string) => t.split(/\s+/).filter(Boolean).length;
|
|
46
|
+
const sceneFrames = (t: string) =>
|
|
47
|
+
Math.ceil((countWords(t) / 200) * 60 * FPS + 1.1 * FPS);
|
|
48
|
+
|
|
49
|
+
const FRAMES = SCENES.map((s) => sceneFrames(s.text));
|
|
50
|
+
const STARTS: number[] = [];
|
|
51
|
+
{
|
|
52
|
+
let acc = 0;
|
|
53
|
+
for (const f of FRAMES) {
|
|
54
|
+
STARTS.push(acc);
|
|
55
|
+
acc += f;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export const claudeDurationInFrames = FRAMES.reduce((a, b) => a + b, 0);
|
|
59
|
+
|
|
60
|
+
const clamp = { extrapolateLeft: "clamp", extrapolateRight: "clamp" } as const;
|
|
61
|
+
const easeOut = (t: number) => 1 - Math.pow(1 - t, 3);
|
|
62
|
+
const prog = (frame: number, start: number, dur: number) =>
|
|
63
|
+
easeOut(interpolate(frame, [start, start + dur], [0, 1], clamp));
|
|
64
|
+
|
|
65
|
+
/* ---------- shared drawing pieces ---------- */
|
|
66
|
+
|
|
67
|
+
const Defs: React.FC<{ id: string }> = ({ id }) => (
|
|
68
|
+
<defs>
|
|
69
|
+
<linearGradient id={`${id}-body`} x1="0" y1="0" x2="0" y2="1">
|
|
70
|
+
<stop offset="0" stopColor="#3a4150" />
|
|
71
|
+
<stop offset="1" stopColor="#1f242e" />
|
|
72
|
+
</linearGradient>
|
|
73
|
+
<linearGradient id={`${id}-gold`} x1="0" y1="0" x2="0" y2="1">
|
|
74
|
+
<stop offset="0" stopColor="#ffe08a" />
|
|
75
|
+
<stop offset="1" stopColor="#d99a1e" />
|
|
76
|
+
</linearGradient>
|
|
77
|
+
<linearGradient id={`${id}-paper`} x1="0" y1="0" x2="0" y2="1">
|
|
78
|
+
<stop offset="0" stopColor="#fff8dc" />
|
|
79
|
+
<stop offset="1" stopColor="#f0dd9a" />
|
|
80
|
+
</linearGradient>
|
|
81
|
+
<linearGradient id={`${id}-screen`} x1="0" y1="0" x2="0" y2="1">
|
|
82
|
+
<stop offset="0" stopColor="#262c3a" />
|
|
83
|
+
<stop offset="1" stopColor="#161a22" />
|
|
84
|
+
</linearGradient>
|
|
85
|
+
<linearGradient id={`${id}-teal`} x1="0" y1="0" x2="0" y2="1">
|
|
86
|
+
<stop offset="0" stopColor="#8fe3dc" />
|
|
87
|
+
<stop offset="1" stopColor="#3aa39b" />
|
|
88
|
+
</linearGradient>
|
|
89
|
+
<filter id={`${id}-shadow`} x="-30%" y="-30%" width="160%" height="180%">
|
|
90
|
+
<feGaussianBlur stdDeviation="10" />
|
|
91
|
+
</filter>
|
|
92
|
+
<filter id={`${id}-glow`} x="-50%" y="-50%" width="200%" height="200%">
|
|
93
|
+
<feGaussianBlur stdDeviation="7" result="b" />
|
|
94
|
+
<feMerge>
|
|
95
|
+
<feMergeNode in="b" />
|
|
96
|
+
<feMergeNode in="SourceGraphic" />
|
|
97
|
+
</feMerge>
|
|
98
|
+
</filter>
|
|
99
|
+
</defs>
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
const Shadow: React.FC<{ id: string; cx: number; cy: number; rx: number; ry?: number }> = ({
|
|
103
|
+
id,
|
|
104
|
+
cx,
|
|
105
|
+
cy,
|
|
106
|
+
rx,
|
|
107
|
+
ry = 14,
|
|
108
|
+
}) => (
|
|
109
|
+
<ellipse cx={cx} cy={cy} rx={rx} ry={ry} fill="#000" opacity={0.5} filter={`url(#${id}-shadow)`} />
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
/* Laptop */
|
|
113
|
+
const Laptop: React.FC<{
|
|
114
|
+
id: string;
|
|
115
|
+
x: number;
|
|
116
|
+
y: number;
|
|
117
|
+
scale?: number;
|
|
118
|
+
children?: React.ReactNode;
|
|
119
|
+
glow?: number;
|
|
120
|
+
}> = ({ id, x, y, scale = 1, children, glow = 0 }) => (
|
|
121
|
+
<g transform={`translate(${x} ${y}) scale(${scale})`}>
|
|
122
|
+
<Defs id={id} />
|
|
123
|
+
<Shadow id={id} cx={0} cy={250} rx={330} ry={22} />
|
|
124
|
+
{/* lid back rim */}
|
|
125
|
+
<rect x={-300} y={-210} width={600} height={400} rx={26} fill="#0c0e13" />
|
|
126
|
+
{/* bezel */}
|
|
127
|
+
<rect x={-290} y={-200} width={580} height={380} rx={22} fill={`url(#${id}-body)`} />
|
|
128
|
+
{/* screen */}
|
|
129
|
+
<rect x={-262} y={-174} width={524} height={330} rx={10} fill={`url(#${id}-screen)`} />
|
|
130
|
+
{glow > 0 && (
|
|
131
|
+
<rect x={-262} y={-174} width={524} height={330} rx={10} fill={TEAL} opacity={glow * 0.08} />
|
|
132
|
+
)}
|
|
133
|
+
{/* camera dot */}
|
|
134
|
+
<circle cx={0} cy={-187} r={4} fill="#0c0e13" />
|
|
135
|
+
{children}
|
|
136
|
+
{/* base */}
|
|
137
|
+
<path d="M -340 190 L 340 190 L 310 236 Q 305 246 292 246 L -292 246 Q -305 246 -310 236 Z" fill={`url(#${id}-body)`} />
|
|
138
|
+
<path d="M -340 190 L 340 190 L 336 200 L -336 200 Z" fill="#555e70" />
|
|
139
|
+
<rect x={-48} y={190} width={96} height={12} rx={6} fill="#171b23" />
|
|
140
|
+
</g>
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
/* Notes app window drawn inside the laptop screen (coordinates are screen-local) */
|
|
144
|
+
const NotesWindow: React.FC<{ id: string; typed?: number; highlight?: number }> = ({
|
|
145
|
+
id,
|
|
146
|
+
typed = 0,
|
|
147
|
+
highlight = 0,
|
|
148
|
+
}) => {
|
|
149
|
+
const q = "meeting".slice(0, Math.round(typed * 7));
|
|
150
|
+
return (
|
|
151
|
+
<g>
|
|
152
|
+
{/* sidebar */}
|
|
153
|
+
<rect x={-262} y={-174} width={150} height={330} fill="#2b2f3a" />
|
|
154
|
+
<rect x={-252} y={-120} width={130} height={20} rx={6} fill="#3a4050" />
|
|
155
|
+
<rect x={-252} y={-90} width={130} height={20} rx={6} fill="#3a4050" />
|
|
156
|
+
<rect x={-252} y={-60} width={130} height={20} rx={6} fill="#3a4050" />
|
|
157
|
+
{/* traffic dots */}
|
|
158
|
+
<circle cx={-246} cy={-160} r={5} fill="#ff5f56" />
|
|
159
|
+
<circle cx={-228} cy={-160} r={5} fill="#ffbd2e" />
|
|
160
|
+
<circle cx={-210} cy={-160} r={5} fill="#27c93f" />
|
|
161
|
+
{/* search box */}
|
|
162
|
+
<rect x={-92} y={-160} width={340} height={34} rx={17} fill="#0f1218" stroke={highlight > 0 ? GOLD : "#3a4050"} strokeWidth={highlight > 0 ? 3 : 2} />
|
|
163
|
+
<circle cx={-70} cy={-143} r={8} fill="none" stroke="#8b93a5" strokeWidth={3} />
|
|
164
|
+
<line x1={-64} y1={-137} x2={-56} y2={-129} stroke="#8b93a5" strokeWidth={3} strokeLinecap="round" />
|
|
165
|
+
<text x={-42} y={-134} fontFamily="Helvetica, Arial, sans-serif" fontSize={18} fill={CREAM}>
|
|
166
|
+
{q}
|
|
167
|
+
</text>
|
|
168
|
+
{/* note rows */}
|
|
169
|
+
{[0, 1, 2, 3].map((i) => (
|
|
170
|
+
<g key={i}>
|
|
171
|
+
<rect x={-92} y={-100 + i * 62} width={340} height={52} rx={8} fill={highlight > 0 && i < 2 ? "#4b4320" : "#2f3441"} />
|
|
172
|
+
<rect x={-80} y={-90 + i * 62} width={140} height={10} rx={5} fill={highlight > 0 && i < 2 ? GOLD : "#6b7387"} />
|
|
173
|
+
<rect x={-80} y={-70 + i * 62} width={250} height={8} rx={4} fill="#4d5568" />
|
|
174
|
+
</g>
|
|
175
|
+
))}
|
|
176
|
+
</g>
|
|
177
|
+
);
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/* Padlock (closed, shows no source) */
|
|
181
|
+
const Padlock: React.FC<{ id: string; x: number; y: number; scale?: number; open?: number }> = ({
|
|
182
|
+
id,
|
|
183
|
+
x,
|
|
184
|
+
y,
|
|
185
|
+
scale = 1,
|
|
186
|
+
open = 0,
|
|
187
|
+
}) => (
|
|
188
|
+
<g transform={`translate(${x} ${y}) scale(${scale})`}>
|
|
189
|
+
<Defs id={id} />
|
|
190
|
+
<Shadow id={id} cx={0} cy={130} rx={110} />
|
|
191
|
+
<path
|
|
192
|
+
d={`M -60 -20 L -60 -${70 + open * 24} A 60 60 0 0 1 60 -${70 + open * 24} L 60 -20`}
|
|
193
|
+
fill="none"
|
|
194
|
+
stroke="#9aa3b5"
|
|
195
|
+
strokeWidth={22}
|
|
196
|
+
strokeLinecap="round"
|
|
197
|
+
/>
|
|
198
|
+
<rect x={-100} y={-24} width={200} height={150} rx={26} fill={`url(#${id}-gold)`} />
|
|
199
|
+
<rect x={-100} y={96} width={200} height={30} rx={14} fill="#a8741a" />
|
|
200
|
+
<circle cx={0} cy={36} r={20} fill="#6b4a0f" />
|
|
201
|
+
<rect x={-6} y={44} width={12} height={36} rx={6} fill="#6b4a0f" />
|
|
202
|
+
</g>
|
|
203
|
+
);
|
|
204
|
+
|
|
205
|
+
/* Chat bubble */
|
|
206
|
+
const Bubble: React.FC<{
|
|
207
|
+
id: string;
|
|
208
|
+
x: number;
|
|
209
|
+
y: number;
|
|
210
|
+
w: number;
|
|
211
|
+
h: number;
|
|
212
|
+
fill: string;
|
|
213
|
+
tail?: "left" | "right";
|
|
214
|
+
children?: React.ReactNode;
|
|
215
|
+
}> = ({ id, x, y, w, h, fill, tail = "left", children }) => (
|
|
216
|
+
<g transform={`translate(${x} ${y})`}>
|
|
217
|
+
<Defs id={id} />
|
|
218
|
+
<rect x={6} y={10} width={w} height={h} rx={34} fill="#000" opacity={0.35} filter={`url(#${id}-shadow)`} />
|
|
219
|
+
<rect x={0} y={0} width={w} height={h} rx={34} fill={fill} />
|
|
220
|
+
<rect x={0} y={h - 22} width={w} height={22} rx={22} fill="#000" opacity={0.12} />
|
|
221
|
+
{tail === "left" ? (
|
|
222
|
+
<path d={`M 34 ${h - 4} L 6 ${h + 40} L 78 ${h - 4} Z`} fill={fill} />
|
|
223
|
+
) : (
|
|
224
|
+
<path d={`M ${w - 34} ${h - 4} L ${w - 6} ${h + 40} L ${w - 78} ${h - 4} Z`} fill={fill} />
|
|
225
|
+
)}
|
|
226
|
+
{children}
|
|
227
|
+
</g>
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
/* Star */
|
|
231
|
+
const Star: React.FC<{ cx: number; cy: number; r: number; fill?: string; opacity?: number }> = ({
|
|
232
|
+
cx,
|
|
233
|
+
cy,
|
|
234
|
+
r,
|
|
235
|
+
fill = GOLD,
|
|
236
|
+
opacity = 1,
|
|
237
|
+
}) => {
|
|
238
|
+
const pts: string[] = [];
|
|
239
|
+
for (let i = 0; i < 10; i++) {
|
|
240
|
+
const a = (Math.PI / 5) * i - Math.PI / 2;
|
|
241
|
+
const rr = i % 2 === 0 ? r : r * 0.45;
|
|
242
|
+
pts.push(`${cx + Math.cos(a) * rr},${cy + Math.sin(a) * rr}`);
|
|
243
|
+
}
|
|
244
|
+
return <polygon points={pts.join(" ")} fill={fill} opacity={opacity} stroke="#a8741a" strokeWidth={r * 0.06} strokeLinejoin="round" />;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/* Terminal window */
|
|
248
|
+
const Terminal: React.FC<{ id: string; x: number; y: number; w: number; h: number; children?: React.ReactNode }> = ({
|
|
249
|
+
id,
|
|
250
|
+
x,
|
|
251
|
+
y,
|
|
252
|
+
w,
|
|
253
|
+
h,
|
|
254
|
+
children,
|
|
255
|
+
}) => (
|
|
256
|
+
<g transform={`translate(${x} ${y})`}>
|
|
257
|
+
<Defs id={id} />
|
|
258
|
+
<rect x={8} y={14} width={w} height={h} rx={24} fill="#000" opacity={0.5} filter={`url(#${id}-shadow)`} />
|
|
259
|
+
<rect x={0} y={0} width={w} height={h} rx={24} fill="#0a0c10" stroke="#3a4150" strokeWidth={3} />
|
|
260
|
+
<path d={`M 0 24 Q 0 0 24 0 L ${w - 24} 0 Q ${w} 0 ${w} 24 L ${w} 64 L 0 64 Z`} fill="#262c3a" />
|
|
261
|
+
<circle cx={34} cy={32} r={9} fill="#ff5f56" />
|
|
262
|
+
<circle cx={64} cy={32} r={9} fill="#ffbd2e" />
|
|
263
|
+
<circle cx={94} cy={32} r={9} fill="#27c93f" />
|
|
264
|
+
{children}
|
|
265
|
+
</g>
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
/* Magnifier */
|
|
269
|
+
const Magnifier: React.FC<{ id: string; x: number; y: number; scale?: number; rot?: number }> = ({
|
|
270
|
+
id,
|
|
271
|
+
x,
|
|
272
|
+
y,
|
|
273
|
+
scale = 1,
|
|
274
|
+
rot = 0,
|
|
275
|
+
}) => (
|
|
276
|
+
<g transform={`translate(${x} ${y}) rotate(${rot}) scale(${scale})`}>
|
|
277
|
+
<Defs id={id} />
|
|
278
|
+
<Shadow id={id} cx={20} cy={170} rx={100} />
|
|
279
|
+
<line x1={50} y1={50} x2={140} y2={150} stroke="#6b4a0f" strokeWidth={34} strokeLinecap="round" />
|
|
280
|
+
<line x1={50} y1={50} x2={140} y2={150} stroke={`url(#${id}-gold)`} strokeWidth={22} strokeLinecap="round" />
|
|
281
|
+
<circle cx={0} cy={0} r={78} fill="#8fe3dc" opacity={0.25} />
|
|
282
|
+
<circle cx={0} cy={0} r={78} fill="none" stroke="#a8741a" strokeWidth={22} />
|
|
283
|
+
<circle cx={0} cy={0} r={78} fill="none" stroke={`url(#${id}-gold)`} strokeWidth={14} />
|
|
284
|
+
<path d="M -46 -20 A 52 52 0 0 1 -14 -50" fill="none" stroke="#fff" strokeWidth={8} strokeLinecap="round" opacity={0.7} />
|
|
285
|
+
</g>
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
/* Cloud, crossed out */
|
|
289
|
+
const CrossedCloud: React.FC<{ id: string; x: number; y: number; scale?: number; cross: number }> = ({
|
|
290
|
+
id,
|
|
291
|
+
x,
|
|
292
|
+
y,
|
|
293
|
+
scale = 1,
|
|
294
|
+
cross,
|
|
295
|
+
}) => (
|
|
296
|
+
<g transform={`translate(${x} ${y}) scale(${scale})`}>
|
|
297
|
+
<Defs id={id} />
|
|
298
|
+
<Shadow id={id} cx={0} cy={110} rx={150} />
|
|
299
|
+
<path
|
|
300
|
+
d="M -120 70 Q -170 70 -170 20 Q -170 -30 -120 -34 Q -110 -100 -40 -100 Q 10 -100 28 -62 Q 100 -76 110 -10 Q 170 -6 170 40 Q 170 70 130 70 Z"
|
|
301
|
+
fill={`url(#${id}-body)`}
|
|
302
|
+
stroke="#6b7387"
|
|
303
|
+
strokeWidth={6}
|
|
304
|
+
/>
|
|
305
|
+
<path d="M -120 70 L 130 70 L 130 54 L -120 54 Z" fill="#000" opacity={0.18} />
|
|
306
|
+
<line x1={-110} y1={-70} x2={-110 + 230 * cross} y2={-70 + 190 * cross} stroke={CORAL} strokeWidth={22} strokeLinecap="round" />
|
|
307
|
+
<line x1={120} y1={-70} x2={120 - 230 * cross} y2={-70 + 190 * cross} stroke={CORAL} strokeWidth={22} strokeLinecap="round" />
|
|
308
|
+
</g>
|
|
309
|
+
);
|
|
310
|
+
|
|
311
|
+
/* Document with proof stamp */
|
|
312
|
+
const Doc: React.FC<{
|
|
313
|
+
id: string;
|
|
314
|
+
x: number;
|
|
315
|
+
y: number;
|
|
316
|
+
w: number;
|
|
317
|
+
h: number;
|
|
318
|
+
rot?: number;
|
|
319
|
+
lines?: number;
|
|
320
|
+
stamp?: "check" | "question" | null;
|
|
321
|
+
stampScale?: number;
|
|
322
|
+
}> = ({ id, x, y, w, h, rot = 0, lines = 5, stamp = null, stampScale = 1 }) => (
|
|
323
|
+
<g transform={`translate(${x} ${y}) rotate(${rot})`}>
|
|
324
|
+
<Defs id={id} />
|
|
325
|
+
<rect x={8} y={12} width={w} height={h} rx={16} fill="#000" opacity={0.4} filter={`url(#${id}-shadow)`} />
|
|
326
|
+
<rect x={0} y={0} width={w} height={h} rx={16} fill={`url(#${id}-paper)`} />
|
|
327
|
+
<path d={`M ${w - 50} 0 L ${w} 50 L ${w - 50} 50 Z`} fill="#d9c47a" />
|
|
328
|
+
<path d={`M ${w - 50} 0 L ${w} 50 L ${w} 0 Z`} fill={BG} opacity={0.0} />
|
|
329
|
+
<rect x={w - 12} y={0} width={12} height={h} rx={6} fill="#000" opacity={0.08} />
|
|
330
|
+
{Array.from({ length: lines }).map((_, i) => (
|
|
331
|
+
<rect key={i} x={26} y={28 + i * 30} width={(w - 80) * (i === lines - 1 ? 0.55 : 1)} height={10} rx={5} fill="#8a7a3a" opacity={0.7} />
|
|
332
|
+
))}
|
|
333
|
+
{stamp && (
|
|
334
|
+
<g transform={`translate(${w - 70} ${h - 70}) scale(${stampScale}) rotate(-12)`}>
|
|
335
|
+
<circle r={46} fill="none" stroke={stamp === "check" ? "#2f9e5b" : CORAL} strokeWidth={8} opacity={0.95} />
|
|
336
|
+
<circle r={36} fill="none" stroke={stamp === "check" ? "#2f9e5b" : CORAL} strokeWidth={3} opacity={0.8} />
|
|
337
|
+
{stamp === "check" ? (
|
|
338
|
+
<path d="M -18 2 L -4 16 L 20 -14" fill="none" stroke="#2f9e5b" strokeWidth={10} strokeLinecap="round" strokeLinejoin="round" />
|
|
339
|
+
) : (
|
|
340
|
+
<>
|
|
341
|
+
<path d="M -12 -10 Q -12 -22 0 -22 Q 14 -22 14 -10 Q 14 -2 2 2 L 2 10" fill="none" stroke={CORAL} strokeWidth={9} strokeLinecap="round" />
|
|
342
|
+
<circle cx={2} cy={24} r={5} fill={CORAL} />
|
|
343
|
+
</>
|
|
344
|
+
)}
|
|
345
|
+
</g>
|
|
346
|
+
)}
|
|
347
|
+
</g>
|
|
348
|
+
);
|
|
349
|
+
|
|
350
|
+
/* Chip: compiled program */
|
|
351
|
+
const Chip: React.FC<{ id: string; x: number; y: number; scale?: number }> = ({ id, x, y, scale = 1 }) => (
|
|
352
|
+
<g transform={`translate(${x} ${y}) scale(${scale})`}>
|
|
353
|
+
<Defs id={id} />
|
|
354
|
+
<Shadow id={id} cx={0} cy={110} rx={120} />
|
|
355
|
+
{Array.from({ length: 6 }).map((_, i) => (
|
|
356
|
+
<g key={i}>
|
|
357
|
+
<rect x={-76 + i * 28} y={-104} width={12} height={30} rx={3} fill="#9aa3b5" />
|
|
358
|
+
<rect x={-76 + i * 28} y={74} width={12} height={30} rx={3} fill="#9aa3b5" />
|
|
359
|
+
<rect x={-104} y={-76 + i * 28} width={30} height={12} rx={3} fill="#9aa3b5" />
|
|
360
|
+
<rect x={74} y={-76 + i * 28} width={30} height={12} rx={3} fill="#9aa3b5" />
|
|
361
|
+
</g>
|
|
362
|
+
))}
|
|
363
|
+
<rect x={-80} y={-80} width={160} height={160} rx={18} fill={`url(#${id}-body)`} stroke="#6b7387" strokeWidth={4} />
|
|
364
|
+
<rect x={-80} y={56} width={160} height={24} rx={12} fill="#000" opacity={0.25} />
|
|
365
|
+
<rect x={-48} y={-48} width={96} height={96} rx={10} fill="#0c0e13" />
|
|
366
|
+
<text x={0} y={14} textAnchor="middle" fontFamily="Menlo, monospace" fontSize={36} fontWeight={700} fill={TEAL}>
|
|
367
|
+
01
|
|
368
|
+
</text>
|
|
369
|
+
<circle cx={-64} cy={-64} r={5} fill={GOLD} />
|
|
370
|
+
</g>
|
|
371
|
+
);
|
|
372
|
+
|
|
373
|
+
/* Code window for JS app */
|
|
374
|
+
const JsCard: React.FC<{ id: string; x: number; y: number; scale?: number }> = ({ id, x, y, scale = 1 }) => (
|
|
375
|
+
<g transform={`translate(${x} ${y}) scale(${scale})`}>
|
|
376
|
+
<Defs id={id} />
|
|
377
|
+
<Shadow id={id} cx={0} cy={120} rx={130} />
|
|
378
|
+
<rect x={-110} y={-100} width={220} height={210} rx={22} fill={`url(#${id}-gold)`} />
|
|
379
|
+
<rect x={-110} y={80} width={220} height={30} rx={15} fill="#a8741a" />
|
|
380
|
+
<text x={86} y={64} textAnchor="end" fontFamily="Helvetica, Arial, sans-serif" fontSize={72} fontWeight={800} fill="#1b1f27">
|
|
381
|
+
JS
|
|
382
|
+
</text>
|
|
383
|
+
<rect x={-84} y={-76} width={100} height={12} rx={6} fill="#1b1f27" opacity={0.35} />
|
|
384
|
+
<rect x={-84} y={-52} width={60} height={12} rx={6} fill="#1b1f27" opacity={0.35} />
|
|
385
|
+
</g>
|
|
386
|
+
);
|
|
387
|
+
|
|
388
|
+
/* Person (filled shapes, no face) */
|
|
389
|
+
const Person: React.FC<{ id: string; x: number; y: number; scale?: number; armsUp?: number }> = ({
|
|
390
|
+
id,
|
|
391
|
+
x,
|
|
392
|
+
y,
|
|
393
|
+
scale = 1,
|
|
394
|
+
armsUp = 0,
|
|
395
|
+
}) => (
|
|
396
|
+
<g transform={`translate(${x} ${y}) scale(${scale})`}>
|
|
397
|
+
<Defs id={id} />
|
|
398
|
+
<Shadow id={id} cx={0} cy={230} rx={110} />
|
|
399
|
+
<rect x={-46} y={110} width={32} height={110} rx={14} fill="#2b3040" />
|
|
400
|
+
<rect x={14} y={110} width={32} height={110} rx={14} fill="#2b3040" />
|
|
401
|
+
<ellipse cx={-30} cy={224} rx={30} ry={13} fill="#14171d" />
|
|
402
|
+
<ellipse cx={30} cy={224} rx={30} ry={13} fill="#14171d" />
|
|
403
|
+
<path d="M -64 -10 Q -64 -30 -40 -30 L 40 -30 Q 64 -30 64 -10 L 58 124 L -58 124 Z" fill={`url(#${id}-gold)`} />
|
|
404
|
+
<path d="M 22 -30 L 40 -30 Q 64 -30 64 -10 L 58 124 L 22 124 Z" fill="#000" opacity={0.15} />
|
|
405
|
+
<g transform={`rotate(${-20 - armsUp * 50} -64 -10)`}>
|
|
406
|
+
<rect x={-86} y={-18} width={28} height={110} rx={14} fill={`url(#${id}-gold)`} />
|
|
407
|
+
</g>
|
|
408
|
+
<g transform={`rotate(${20 + armsUp * 50} 64 -10)`}>
|
|
409
|
+
<rect x={58} y={-18} width={28} height={110} rx={14} fill="#c98c1a" />
|
|
410
|
+
</g>
|
|
411
|
+
<circle cx={0} cy={-76} r={40} fill="#f1c7a0" />
|
|
412
|
+
<path d="M -42 -82 Q -40 -128 0 -126 Q 42 -128 42 -82 Q 20 -104 -42 -82 Z" fill="#3a2a22" />
|
|
413
|
+
<path d="M 14 -110 Q 42 -108 42 -82 L 30 -80 Z" fill="#000" opacity={0.18} />
|
|
414
|
+
</g>
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
/* Arrow with filled head */
|
|
418
|
+
const Arrow: React.FC<{ x1: number; y1: number; x2: number; y2: number; color?: string; draw?: number; w?: number }> = ({
|
|
419
|
+
x1,
|
|
420
|
+
y1,
|
|
421
|
+
x2,
|
|
422
|
+
y2,
|
|
423
|
+
color = GOLD,
|
|
424
|
+
draw = 1,
|
|
425
|
+
w = 14,
|
|
426
|
+
}) => {
|
|
427
|
+
const dx = x2 - x1;
|
|
428
|
+
const dy = y2 - y1;
|
|
429
|
+
const len = Math.hypot(dx, dy);
|
|
430
|
+
const ux = dx / len;
|
|
431
|
+
const uy = dy / len;
|
|
432
|
+
const ex = x1 + dx * draw;
|
|
433
|
+
const ey = y1 + dy * draw;
|
|
434
|
+
const hs = 34;
|
|
435
|
+
const bx = ex - ux * hs;
|
|
436
|
+
const by = ey - uy * hs;
|
|
437
|
+
return (
|
|
438
|
+
<g opacity={draw > 0.02 ? 1 : 0}>
|
|
439
|
+
<line x1={x1} y1={y1} x2={bx} y2={by} stroke={color} strokeWidth={w} strokeLinecap="round" />
|
|
440
|
+
<polygon points={`${ex},${ey} ${bx - uy * 26},${by + ux * 26} ${bx + uy * 26},${by - ux * 26}`} fill={color} />
|
|
441
|
+
</g>
|
|
442
|
+
);
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
/* Label pill */
|
|
446
|
+
const Label: React.FC<{ x: number; y: number; text: string; color?: string; size?: number; opacity?: number }> = ({
|
|
447
|
+
x,
|
|
448
|
+
y,
|
|
449
|
+
text,
|
|
450
|
+
color = CREAM,
|
|
451
|
+
size = 40,
|
|
452
|
+
opacity = 1,
|
|
453
|
+
}) => {
|
|
454
|
+
const w = text.length * size * 0.56 + 56;
|
|
455
|
+
return (
|
|
456
|
+
<g opacity={opacity} transform={`translate(${x} ${y})`}>
|
|
457
|
+
<rect x={-w / 2} y={-size * 0.95} width={w} height={size * 1.6} rx={size * 0.8} fill="#1b1f27" stroke="#3a4150" strokeWidth={3} />
|
|
458
|
+
<text x={0} y={size * 0.2} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={size} fontWeight={700} fill={color}>
|
|
459
|
+
{text}
|
|
460
|
+
</text>
|
|
461
|
+
</g>
|
|
462
|
+
);
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
/* Dust motes backdrop */
|
|
466
|
+
const Backdrop: React.FC<{ frame: number }> = ({ frame }) => (
|
|
467
|
+
<AbsoluteFill>
|
|
468
|
+
<svg width={W} height={H} viewBox={`0 0 ${W} ${H}`}>
|
|
469
|
+
<defs>
|
|
470
|
+
<radialGradient id="bg-main" cx="50%" cy="38%" r="75%">
|
|
471
|
+
<stop offset="0" stopColor="#1d2230" />
|
|
472
|
+
<stop offset="1" stopColor={BG} />
|
|
473
|
+
</radialGradient>
|
|
474
|
+
</defs>
|
|
475
|
+
<rect width={W} height={H} fill="url(#bg-main)" />
|
|
476
|
+
{Array.from({ length: 14 }).map((_, i) => {
|
|
477
|
+
const bx = (i * 173) % W;
|
|
478
|
+
const by = (i * 311) % (H - CAPTION_BAND);
|
|
479
|
+
const dy = Math.sin((frame + i * 20) / 60) * 14;
|
|
480
|
+
return <circle key={i} cx={bx} cy={by + dy} r={3 + (i % 3)} fill="#fff" opacity={0.05 + (i % 4) * 0.015} />;
|
|
481
|
+
})}
|
|
482
|
+
</svg>
|
|
483
|
+
</AbsoluteFill>
|
|
484
|
+
);
|
|
485
|
+
|
|
486
|
+
/* ---------- scenes ---------- */
|
|
487
|
+
|
|
488
|
+
type SceneProps = { f: number; len: number };
|
|
489
|
+
|
|
490
|
+
const SvgStage: React.FC<{ children: React.ReactNode }> = ({ children }) => (
|
|
491
|
+
<AbsoluteFill>
|
|
492
|
+
<svg width={W} height={H} viewBox={`0 0 ${W} ${H}`}>
|
|
493
|
+
{children}
|
|
494
|
+
</svg>
|
|
495
|
+
</AbsoluteFill>
|
|
496
|
+
);
|
|
497
|
+
|
|
498
|
+
/* 1: feature you love, no source code */
|
|
499
|
+
const Scene1: React.FC<SceneProps> = ({ f }) => {
|
|
500
|
+
const lockIn = prog(f, 20, 24);
|
|
501
|
+
const q = prog(f, 40, 20);
|
|
502
|
+
const wobble = Math.sin(f / 8) * 4;
|
|
503
|
+
return (
|
|
504
|
+
<SvgStage>
|
|
505
|
+
<Laptop id="s1l" x={540} y={560} scale={1.35}>
|
|
506
|
+
<NotesWindow id="s1n" typed={prog(f, 4, 30)} highlight={prog(f, 4, 30)} />
|
|
507
|
+
</Laptop>
|
|
508
|
+
<g opacity={lockIn} transform={`translate(0 ${(1 - lockIn) * 40})`}>
|
|
509
|
+
<Padlock id="s1p" x={540} y={1150} scale={1.5} open={0} />
|
|
510
|
+
</g>
|
|
511
|
+
<g opacity={q} transform={`translate(0 ${wobble})`}>
|
|
512
|
+
<Doc id="s1d" x={170} y={1010} w={230} h={290} rot={-8} lines={5} stamp="question" stampScale={q} />
|
|
513
|
+
<Label x={285} y={1360} text="no source" size={40} />
|
|
514
|
+
</g>
|
|
515
|
+
<g opacity={q}>
|
|
516
|
+
<Label x={540} y={1500} text="How does it work?" size={56} color={GOLD} />
|
|
517
|
+
</g>
|
|
518
|
+
</SvgStage>
|
|
519
|
+
);
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
/* 2: name REA + stars */
|
|
523
|
+
const Scene2: React.FC<SceneProps> = ({ f }) => {
|
|
524
|
+
const logo = prog(f, 4, 22);
|
|
525
|
+
const count = Math.round(interpolate(f, [30, 140], [0, 364800], clamp));
|
|
526
|
+
const label = (count / 1000).toFixed(1) + "k";
|
|
527
|
+
const stars = [0, 1, 2, 3, 4, 5, 6];
|
|
528
|
+
return (
|
|
529
|
+
<SvgStage>
|
|
530
|
+
<Defs id="s2" />
|
|
531
|
+
{/* card */}
|
|
532
|
+
<g transform={`translate(540 ${760 + (1 - logo) * 60}) scale(${0.85 + logo * 0.15})`} opacity={logo}>
|
|
533
|
+
<Shadow id="s2" cx={0} cy={320} rx={380} ry={26} />
|
|
534
|
+
<rect x={-380} y={-300} width={760} height={600} rx={48} fill="url(#s2-body)" stroke="#555e70" strokeWidth={4} />
|
|
535
|
+
<rect x={-380} y={240} width={760} height={60} rx={30} fill="#000" opacity={0.25} />
|
|
536
|
+
<g transform="translate(-300 -230) scale(6)">
|
|
537
|
+
<path d={GITHUB_PATH} fill={CREAM} />
|
|
538
|
+
</g>
|
|
539
|
+
<text x={-130} y={-150} fontFamily="Helvetica, Arial, sans-serif" fontSize={64} fontWeight={800} fill={CREAM}>
|
|
540
|
+
morluto/rea
|
|
541
|
+
</text>
|
|
542
|
+
<text x={0} y={30} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={190} fontWeight={900} fill={GOLD} letterSpacing={20}>
|
|
543
|
+
REA
|
|
544
|
+
</text>
|
|
545
|
+
<text x={0} y={120} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={44} fontWeight={600} fill={CREAM}>
|
|
546
|
+
Reverse Engineer Anything
|
|
547
|
+
</text>
|
|
548
|
+
<g transform="translate(-60 190)">
|
|
549
|
+
<Star cx={-120} cy={30} r={44} />
|
|
550
|
+
<text x={-60} y={52} fontFamily="Helvetica, Arial, sans-serif" fontSize={80} fontWeight={800} fill={GOLD}>
|
|
551
|
+
{label}
|
|
552
|
+
</text>
|
|
553
|
+
</g>
|
|
554
|
+
</g>
|
|
555
|
+
{stars.map((i) => {
|
|
556
|
+
const p = prog(f, 40 + i * 9, 30);
|
|
557
|
+
const sx = 160 + i * 130;
|
|
558
|
+
return <Star key={i} cx={sx} cy={1340 - p * 200 + (i % 2) * 40} r={34 + (i % 3) * 8} opacity={p} />;
|
|
559
|
+
})}
|
|
560
|
+
<Label x={540} y={1560} text="more than 360,000 stars" size={48} color={GOLD} opacity={prog(f, 90, 24)} />
|
|
561
|
+
</SvgStage>
|
|
562
|
+
);
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
/* 3: what it does, Notes search */
|
|
566
|
+
const Scene3: React.FC<SceneProps> = ({ f }) => {
|
|
567
|
+
const reaIn = prog(f, 10, 24);
|
|
568
|
+
const beam = prog(f, 40, 40);
|
|
569
|
+
const mag = prog(f, 20, 26);
|
|
570
|
+
return (
|
|
571
|
+
<SvgStage>
|
|
572
|
+
<Laptop id="s3l" x={540} y={620} scale={1.35} glow={beam}>
|
|
573
|
+
<NotesWindow id="s3n" typed={1} highlight={beam} />
|
|
574
|
+
</Laptop>
|
|
575
|
+
<g opacity={mag} transform={`translate(0 ${Math.sin(f / 10) * 8})`}>
|
|
576
|
+
<Magnifier id="s3m" x={700} y={560} scale={1.7} rot={-8} />
|
|
577
|
+
</g>
|
|
578
|
+
<g opacity={reaIn}>
|
|
579
|
+
<Doc id="s3d" x={140} y={1130} w={360} h={300} rot={-4} lines={6} stamp="check" stampScale={prog(f, 70, 18)} />
|
|
580
|
+
<Label x={320} y={1480} text="explanation" size={42} />
|
|
581
|
+
</g>
|
|
582
|
+
<g opacity={reaIn}>
|
|
583
|
+
<rect x={580} y={1150} width={330} height={260} rx={30} fill="#1b1f27" stroke={TEAL} strokeWidth={5} />
|
|
584
|
+
<text x={745} y={1260} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={110} fontWeight={900} fill={TEAL}>
|
|
585
|
+
REA
|
|
586
|
+
</text>
|
|
587
|
+
<text x={745} y={1330} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={34} fill={CREAM}>
|
|
588
|
+
coding assistant
|
|
589
|
+
</text>
|
|
590
|
+
<Arrow x1={580} y1={1280} x2={510} y2={1280} color={TEAL} draw={beam} w={12} />
|
|
591
|
+
</g>
|
|
592
|
+
<Label x={540} y={1620} text="Notes search box" size={46} color={GOLD} opacity={prog(f, 30, 20)} />
|
|
593
|
+
</SvgStage>
|
|
594
|
+
);
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
/* 4: one setup command */
|
|
598
|
+
const Scene4: React.FC<SceneProps> = ({ f }) => {
|
|
599
|
+
const cmd = "npx rea-agents setup";
|
|
600
|
+
const typed = Math.round(interpolate(f, [16, 90], [0, cmd.length], clamp));
|
|
601
|
+
const caret = Math.floor(f / 10) % 2 === 0;
|
|
602
|
+
const enter = prog(f, 100, 14);
|
|
603
|
+
return (
|
|
604
|
+
<SvgStage>
|
|
605
|
+
<Terminal id="s4t" x={70} y={560} w={940} h={520}>
|
|
606
|
+
<text x={50} y={190} fontFamily="Menlo, Courier, monospace" fontSize={44} fill={TEAL}>
|
|
607
|
+
$
|
|
608
|
+
</text>
|
|
609
|
+
<text x={100} y={190} fontFamily="Menlo, Courier, monospace" fontSize={56} fontWeight={700} fill={CREAM}>
|
|
610
|
+
{cmd.slice(0, typed)}
|
|
611
|
+
{caret ? "▌" : ""}
|
|
612
|
+
</text>
|
|
613
|
+
<g opacity={enter}>
|
|
614
|
+
<rect x={50} y={260} width={520} height={14} rx={7} fill="#262c3a" />
|
|
615
|
+
<rect x={50} y={260} width={520 * enter} height={14} rx={7} fill={GREEN} />
|
|
616
|
+
<text x={50} y={330} fontFamily="Menlo, Courier, monospace" fontSize={36} fill={GREEN}>
|
|
617
|
+
setup started
|
|
618
|
+
</text>
|
|
619
|
+
</g>
|
|
620
|
+
</Terminal>
|
|
621
|
+
<g transform={`translate(0 ${enter * -10})`}>
|
|
622
|
+
<rect x={420} y={1180} width={240} height={100} rx={22} fill="#262c3a" stroke="#555e70" strokeWidth={4} />
|
|
623
|
+
<rect x={420} y={1250} width={240} height={30} rx={15} fill="#000" opacity={0.25} />
|
|
624
|
+
<text x={540} y={1245} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={44} fontWeight={800} fill={GOLD}>
|
|
625
|
+
enter
|
|
626
|
+
</text>
|
|
627
|
+
</g>
|
|
628
|
+
<Label x={540} y={1450} text="one line" size={56} color={GOLD} opacity={prog(f, 10, 20)} />
|
|
629
|
+
</SvgStage>
|
|
630
|
+
);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
/* 5: pick assistant, review, approve, restart */
|
|
634
|
+
const Scene5: React.FC<SceneProps> = ({ f, len }) => {
|
|
635
|
+
const t1 = prog(f, 8, 20);
|
|
636
|
+
const t2 = prog(f, len * 0.3, 20);
|
|
637
|
+
const t3 = prog(f, len * 0.5, 20);
|
|
638
|
+
const t4 = prog(f, len * 0.7, 20);
|
|
639
|
+
const step = (i: number, p: number, y: number, name: string, draw: React.ReactNode) => (
|
|
640
|
+
<g opacity={p} transform={`translate(0 ${(1 - p) * 30})`}>
|
|
641
|
+
<rect x={90} y={y} width={900} height={250} rx={36} fill="#1b1f27" stroke="#3a4150" strokeWidth={4} />
|
|
642
|
+
<circle cx={170} cy={y + 125} r={44} fill={GOLD} />
|
|
643
|
+
<text x={170} y={y + 142} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={52} fontWeight={900} fill={INK}>
|
|
644
|
+
{i}
|
|
645
|
+
</text>
|
|
646
|
+
<text x={250} y={y + 140} fontFamily="Helvetica, Arial, sans-serif" fontSize={54} fontWeight={800} fill={CREAM}>
|
|
647
|
+
{name}
|
|
648
|
+
</text>
|
|
649
|
+
{draw}
|
|
650
|
+
</g>
|
|
651
|
+
);
|
|
652
|
+
return (
|
|
653
|
+
<SvgStage>
|
|
654
|
+
<Defs id="s5" />
|
|
655
|
+
{step(1, t1, 330, "Pick assistant",
|
|
656
|
+
<g transform="translate(880 455)">
|
|
657
|
+
{[-80, 0, 80].map((dx, k) => (
|
|
658
|
+
<circle key={k} cx={dx - 20} cy={0} r={28} fill={k === 1 ? GOLD : "#3a4150"} />
|
|
659
|
+
))}
|
|
660
|
+
</g>
|
|
661
|
+
)}
|
|
662
|
+
{step(2, t2, 620, "Review changes",
|
|
663
|
+
<g transform="translate(840 745)">
|
|
664
|
+
<rect x={-50} y={-55} width={100} height={110} rx={12} fill="url(#s5-paper)" />
|
|
665
|
+
<rect x={-34} y={-34} width={68} height={8} rx={4} fill="#8a7a3a" />
|
|
666
|
+
<rect x={-34} y={-14} width={50} height={8} rx={4} fill="#8a7a3a" />
|
|
667
|
+
<rect x={-34} y={6} width={60} height={8} rx={4} fill="#8a7a3a" />
|
|
668
|
+
</g>
|
|
669
|
+
)}
|
|
670
|
+
{step(3, t3, 910, "Approve",
|
|
671
|
+
<g transform="translate(880 1035)">
|
|
672
|
+
<circle r={50} fill={GREEN} />
|
|
673
|
+
<path d="M -24 2 L -6 22 L 28 -18" fill="none" stroke={INK} strokeWidth={14} strokeLinecap="round" strokeLinejoin="round" />
|
|
674
|
+
</g>
|
|
675
|
+
)}
|
|
676
|
+
{step(4, t4, 1200, "Restart",
|
|
677
|
+
<g transform="translate(880 1325)">
|
|
678
|
+
<path d="M 40 -10 A 44 44 0 1 1 10 -42" fill="none" stroke={TEAL} strokeWidth={14} strokeLinecap="round" />
|
|
679
|
+
<polygon points="50,-52 54,-12 14,-30" fill={TEAL} />
|
|
680
|
+
</g>
|
|
681
|
+
)}
|
|
682
|
+
</SvgStage>
|
|
683
|
+
);
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
/* 6: the question */
|
|
687
|
+
const Scene6: React.FC<SceneProps> = ({ f }) => {
|
|
688
|
+
const ask = prog(f, 10, 24);
|
|
689
|
+
const reply = prog(f, 80, 24);
|
|
690
|
+
return (
|
|
691
|
+
<SvgStage>
|
|
692
|
+
<Person id="s6p" x={250} y={780} scale={1.5} armsUp={ask} />
|
|
693
|
+
<g opacity={ask} transform={`translate(0 ${(1 - ask) * 30})`}>
|
|
694
|
+
<Bubble id="s6b" x={90} y={170} w={700} h={270} fill={GOLD} tail="left">
|
|
695
|
+
<text x={40} y={90} fontFamily="Helvetica, Arial, sans-serif" fontSize={50} fontWeight={800} fill={INK}>
|
|
696
|
+
How does the search
|
|
697
|
+
</text>
|
|
698
|
+
<text x={40} y={150} fontFamily="Helvetica, Arial, sans-serif" fontSize={50} fontWeight={800} fill={INK}>
|
|
699
|
+
in Notes find my
|
|
700
|
+
</text>
|
|
701
|
+
<text x={40} y={210} fontFamily="Helvetica, Arial, sans-serif" fontSize={50} fontWeight={800} fill={INK}>
|
|
702
|
+
words so fast?
|
|
703
|
+
</text>
|
|
704
|
+
</Bubble>
|
|
705
|
+
</g>
|
|
706
|
+
<Laptop id="s6l" x={640} y={1330} scale={0.82}>
|
|
707
|
+
<NotesWindow id="s6n" typed={1} highlight={1} />
|
|
708
|
+
</Laptop>
|
|
709
|
+
<g opacity={reply} transform={`translate(0 ${(1 - reply) * 30})`}>
|
|
710
|
+
<Bubble id="s6r" x={480} y={560} w={520} h={190} fill={TEAL} tail="right">
|
|
711
|
+
<text x={40} y={84} fontFamily="Helvetica, Arial, sans-serif" fontSize={44} fontWeight={800} fill={INK}>
|
|
712
|
+
Looking now...
|
|
713
|
+
</text>
|
|
714
|
+
<rect x={40} y={116} width={320} height={14} rx={7} fill={INK} opacity={0.3} />
|
|
715
|
+
<rect x={40} y={116} width={320 * reply} height={14} rx={7} fill={INK} />
|
|
716
|
+
</Bubble>
|
|
717
|
+
</g>
|
|
718
|
+
</SvgStage>
|
|
719
|
+
);
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
/* 7: stays on your computer */
|
|
723
|
+
const Scene7: React.FC<SceneProps> = ({ f }) => {
|
|
724
|
+
const up = prog(f, 20, 40);
|
|
725
|
+
const cross = prog(f, 56, 24);
|
|
726
|
+
return (
|
|
727
|
+
<SvgStage>
|
|
728
|
+
<Laptop id="s7l" x={540} y={1110} scale={1.3} glow={1}>
|
|
729
|
+
<NotesWindow id="s7n" typed={1} highlight={1} />
|
|
730
|
+
<g transform="translate(150 70)">
|
|
731
|
+
<Magnifier id="s7m" x={0} y={0} scale={0.6} rot={-10} />
|
|
732
|
+
</g>
|
|
733
|
+
</Laptop>
|
|
734
|
+
<g opacity={1 - cross * 0.0} transform={`translate(0 ${-up * 40})`}>
|
|
735
|
+
<Arrow x1={540} y1={760} x2={540} y2={470} color={CORAL} draw={up} w={16} />
|
|
736
|
+
</g>
|
|
737
|
+
<CrossedCloud id="s7c" x={540} y={330} scale={1.5} cross={cross} />
|
|
738
|
+
<Label x={540} y={1560} text="stays on your computer" size={50} color={GREEN} opacity={prog(f, 70, 20)} />
|
|
739
|
+
</SvgStage>
|
|
740
|
+
);
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
/* 8: explanation, proof, unknown */
|
|
744
|
+
const Scene8: React.FC<SceneProps> = ({ f, len }) => {
|
|
745
|
+
const a = prog(f, 10, 22);
|
|
746
|
+
const b = prog(f, len * 0.35, 22);
|
|
747
|
+
const c = prog(f, len * 0.62, 22);
|
|
748
|
+
return (
|
|
749
|
+
<SvgStage>
|
|
750
|
+
<g opacity={a} transform={`translate(0 ${(1 - a) * 30})`}>
|
|
751
|
+
<Doc id="s8a" x={80} y={250} w={420} h={340} rot={-3} lines={6} stamp={null} />
|
|
752
|
+
<Label x={290} y={650} text="explanation" size={46} />
|
|
753
|
+
</g>
|
|
754
|
+
<g opacity={b} transform={`translate(0 ${(1 - b) * 30})`}>
|
|
755
|
+
<Doc id="s8b" x={580} y={500} w={420} h={340} rot={3} lines={6} stamp="check" stampScale={b} />
|
|
756
|
+
<Label x={790} y={910} text="proof" size={46} color={GREEN} />
|
|
757
|
+
</g>
|
|
758
|
+
<g opacity={c} transform={`translate(0 ${(1 - c) * 30})`}>
|
|
759
|
+
<Doc id="s8c" x={80} y={980} w={420} h={340} rot={-2} lines={4} stamp="question" stampScale={c} />
|
|
760
|
+
<Label x={290} y={1390} text="not proven" size={46} color={CORAL} />
|
|
761
|
+
</g>
|
|
762
|
+
<Arrow x1={400} y1={610} x2={620} y2={560} color={TEAL} draw={b} w={10} />
|
|
763
|
+
<Arrow x1={760} y1={880} x2={440} y2={1020} color={CORAL} draw={c} w={10} />
|
|
764
|
+
</SvgStage>
|
|
765
|
+
);
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
/* 9: JS vs compiled */
|
|
769
|
+
const Scene9: React.FC<SceneProps> = ({ f, len }) => {
|
|
770
|
+
const left = prog(f, 10, 22);
|
|
771
|
+
const right = prog(f, len * 0.35, 22);
|
|
772
|
+
const tools = prog(f, len * 0.55, 22);
|
|
773
|
+
return (
|
|
774
|
+
<SvgStage>
|
|
775
|
+
<line x1={540} y1={180} x2={540} y2={1560} stroke="#3a4150" strokeWidth={4} strokeDasharray="14 16" />
|
|
776
|
+
<g opacity={left} transform={`translate(0 ${(1 - left) * 30})`}>
|
|
777
|
+
<JsCard id="s9j" x={290} y={480} scale={1.4} />
|
|
778
|
+
<Label x={290} y={780} text="JavaScript app" size={42} />
|
|
779
|
+
<g transform="translate(290 940)">
|
|
780
|
+
<circle r={64} fill={GREEN} />
|
|
781
|
+
<path d="M -30 2 L -8 26 L 34 -22" fill="none" stroke={INK} strokeWidth={16} strokeLinecap="round" strokeLinejoin="round" />
|
|
782
|
+
</g>
|
|
783
|
+
<Label x={290} y={1100} text="nothing extra" size={44} color={GREEN} />
|
|
784
|
+
</g>
|
|
785
|
+
<g opacity={right} transform={`translate(0 ${(1 - right) * 30})`}>
|
|
786
|
+
<Chip id="s9c" x={790} y={480} scale={1.5} />
|
|
787
|
+
<Label x={790} y={780} text="compiled program" size={42} />
|
|
788
|
+
</g>
|
|
789
|
+
<g opacity={tools} transform={`translate(0 ${(1 - tools) * 30})`}>
|
|
790
|
+
{["Hopper", "Ghidra", "IDA"].map((name, i) => (
|
|
791
|
+
<g key={name} transform={`translate(790 ${900 + i * 140})`}>
|
|
792
|
+
<rect x={-170} y={-50} width={340} height={110} rx={26} fill="#1b1f27" stroke={GOLD} strokeWidth={4} />
|
|
793
|
+
<rect x={-170} y={20} width={340} height={40} rx={20} fill="#000" opacity={0.2} />
|
|
794
|
+
<Magnifier id={`s9m${i}`} x={-110} y={0} scale={0.4} />
|
|
795
|
+
<text x={30} y={20} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={56} fontWeight={800} fill={CREAM}>
|
|
796
|
+
{name}
|
|
797
|
+
</text>
|
|
798
|
+
</g>
|
|
799
|
+
))}
|
|
800
|
+
</g>
|
|
801
|
+
</SvgStage>
|
|
802
|
+
);
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
/* 10: similar search appears beside proof */
|
|
806
|
+
const Scene10: React.FC<SceneProps> = ({ f, len }) => {
|
|
807
|
+
const proof = prog(f, 8, 22);
|
|
808
|
+
const arrow = prog(f, len * 0.3, 24);
|
|
809
|
+
const mine = prog(f, len * 0.45, 24);
|
|
810
|
+
return (
|
|
811
|
+
<SvgStage>
|
|
812
|
+
<g opacity={proof} transform={`translate(0 ${(1 - proof) * 30})`}>
|
|
813
|
+
<Laptop id="s10a" x={300} y={620} scale={0.78}>
|
|
814
|
+
<NotesWindow id="s10n" typed={1} highlight={1} />
|
|
815
|
+
</Laptop>
|
|
816
|
+
<Label x={300} y={930} text="Notes search" size={40} />
|
|
817
|
+
</g>
|
|
818
|
+
<Arrow x1={520} y1={560} x2={640} y2={560} color={GOLD} draw={arrow} w={14} />
|
|
819
|
+
<g opacity={mine} transform={`translate(0 ${(1 - mine) * 30})`}>
|
|
820
|
+
<Laptop id="s10b" x={800} y={620} scale={0.78}>
|
|
821
|
+
<rect x={-262} y={-174} width={524} height={330} rx={10} fill="#1d2430" />
|
|
822
|
+
<rect x={-232} y={-150} width={300} height={34} rx={17} fill="#0f1218" stroke={TEAL} strokeWidth={3} />
|
|
823
|
+
{[0, 1, 2].map((i) => (
|
|
824
|
+
<g key={i}>
|
|
825
|
+
<rect x={-232} y={-96 + i * 70} width={440} height={56} rx={10} fill={i < 2 ? "#1d4a46" : "#2f3441"} />
|
|
826
|
+
<rect x={-216} y={-84 + i * 70} width={170} height={10} rx={5} fill={i < 2 ? TEAL : "#6b7387"} />
|
|
827
|
+
<rect x={-216} y={-62 + i * 70} width={280} height={8} rx={4} fill="#4d5568" />
|
|
828
|
+
</g>
|
|
829
|
+
))}
|
|
830
|
+
</Laptop>
|
|
831
|
+
<Label x={800} y={930} text="your project" size={40} color={TEAL} />
|
|
832
|
+
</g>
|
|
833
|
+
<g opacity={mine} transform={`translate(540 1250)`}>
|
|
834
|
+
<Doc id="s10d" x={-220} y={0} w={440} h={280} rot={-1} lines={5} stamp="check" stampScale={prog(f, len * 0.6, 18)} />
|
|
835
|
+
<Label x={0} y={350} text="the proof stays beside it" size={44} color={GOLD} />
|
|
836
|
+
</g>
|
|
837
|
+
</SvgStage>
|
|
838
|
+
);
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
/* 11: lawful use only */
|
|
842
|
+
const Scene11: React.FC<SceneProps> = ({ f, len }) => {
|
|
843
|
+
const a = prog(f, 8, 22);
|
|
844
|
+
const b = prog(f, len * 0.4, 22);
|
|
845
|
+
return (
|
|
846
|
+
<SvgStage>
|
|
847
|
+
<g opacity={a} transform={`translate(0 ${(1 - a) * 30})`}>
|
|
848
|
+
<Laptop id="s11l" x={540} y={480} scale={1.0}>
|
|
849
|
+
<NotesWindow id="s11n" typed={1} highlight={1} />
|
|
850
|
+
</Laptop>
|
|
851
|
+
<g transform="translate(790 420)">
|
|
852
|
+
<circle r={60} fill={GREEN} />
|
|
853
|
+
<path d="M -28 2 L -8 24 L 30 -20" fill="none" stroke={INK} strokeWidth={14} strokeLinecap="round" strokeLinejoin="round" />
|
|
854
|
+
</g>
|
|
855
|
+
<Label x={540} y={800} text="software you own" size={50} color={GREEN} />
|
|
856
|
+
</g>
|
|
857
|
+
<g opacity={b} transform={`translate(0 ${(1 - b) * 30})`}>
|
|
858
|
+
<Padlock id="s11p" x={300} y={1200} scale={1.2} open={1} />
|
|
859
|
+
<Doc id="s11d" x={560} y={1020} w={360} h={280} rot={3} lines={5} stamp="check" stampScale={b} />
|
|
860
|
+
<Label x={300} y={1400} text="allowed to open" size={42} />
|
|
861
|
+
<Label x={740} y={1400} text="research and learning" size={38} color={GOLD} />
|
|
862
|
+
</g>
|
|
863
|
+
</SvgStage>
|
|
864
|
+
);
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
/* 12: close */
|
|
868
|
+
const Scene12: React.FC<SceneProps> = ({ f, len }) => {
|
|
869
|
+
const logo = prog(f, 6, 24);
|
|
870
|
+
const cmd = prog(f, len * 0.5, 24);
|
|
871
|
+
return (
|
|
872
|
+
<SvgStage>
|
|
873
|
+
<Defs id="s12" />
|
|
874
|
+
<g opacity={logo} transform={`translate(540 ${430 + (1 - logo) * 40})`}>
|
|
875
|
+
<Shadow id="s12" cx={0} cy={250} rx={330} ry={24} />
|
|
876
|
+
<rect x={-340} y={-230} width={680} height={460} rx={48} fill="url(#s12-body)" stroke="#555e70" strokeWidth={4} />
|
|
877
|
+
<rect x={-340} y={170} width={680} height={60} rx={30} fill="#000" opacity={0.25} />
|
|
878
|
+
<g transform="translate(-60 -190) scale(5)">
|
|
879
|
+
<path d={GITHUB_PATH} fill={CREAM} />
|
|
880
|
+
</g>
|
|
881
|
+
<text x={0} y={60} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={190} fontWeight={900} fill={GOLD} letterSpacing={20}>
|
|
882
|
+
REA
|
|
883
|
+
</text>
|
|
884
|
+
<text x={0} y={140} textAnchor="middle" fontFamily="Helvetica, Arial, sans-serif" fontSize={42} fontWeight={600} fill={CREAM}>
|
|
885
|
+
Reverse Engineer Anything
|
|
886
|
+
</text>
|
|
887
|
+
</g>
|
|
888
|
+
<g opacity={logo}>
|
|
889
|
+
{["github.com/morluto/rea", "rea.tools", "rea-agents"].map((t, i) => (
|
|
890
|
+
<Label key={t} x={540} y={850 + i * 100} text={t} size={42} color={TEAL} />
|
|
891
|
+
))}
|
|
892
|
+
</g>
|
|
893
|
+
<g opacity={cmd} transform={`translate(0 ${(1 - cmd) * 30})`}>
|
|
894
|
+
<Terminal id="s12t" x={110} y={1200} w={860} h={280}>
|
|
895
|
+
<text x={46} y={170} fontFamily="Menlo, Courier, monospace" fontSize={40} fill={TEAL}>
|
|
896
|
+
$
|
|
897
|
+
</text>
|
|
898
|
+
<text x={90} y={172} fontFamily="Menlo, Courier, monospace" fontSize={52} fontWeight={700} fill={CREAM}>
|
|
899
|
+
npx rea-agents setup
|
|
900
|
+
</text>
|
|
901
|
+
</Terminal>
|
|
902
|
+
</g>
|
|
903
|
+
</SvgStage>
|
|
904
|
+
);
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
const SCENE_COMPONENTS: React.FC<SceneProps>[] = [
|
|
908
|
+
Scene1,
|
|
909
|
+
Scene2,
|
|
910
|
+
Scene3,
|
|
911
|
+
Scene4,
|
|
912
|
+
Scene5,
|
|
913
|
+
Scene6,
|
|
914
|
+
Scene7,
|
|
915
|
+
Scene8,
|
|
916
|
+
Scene9,
|
|
917
|
+
Scene10,
|
|
918
|
+
Scene11,
|
|
919
|
+
Scene12,
|
|
920
|
+
];
|
|
921
|
+
|
|
922
|
+
/* ---------- karaoke ---------- */
|
|
923
|
+
|
|
924
|
+
const Karaoke: React.FC<{ text: string; f: number; len: number }> = ({ text, f, len }) => {
|
|
925
|
+
const words = text.split(/\s+/).filter(Boolean);
|
|
926
|
+
const speakFrames = len - Math.round(0.7 * FPS);
|
|
927
|
+
const per = speakFrames / words.length;
|
|
928
|
+
const active = Math.min(words.length - 1, Math.max(0, Math.floor(f / per)));
|
|
929
|
+
const speaking = f < speakFrames;
|
|
930
|
+
return (
|
|
931
|
+
<div
|
|
932
|
+
style={{
|
|
933
|
+
position: "absolute",
|
|
934
|
+
left: 0,
|
|
935
|
+
right: 0,
|
|
936
|
+
bottom: 0,
|
|
937
|
+
height: CAPTION_BAND,
|
|
938
|
+
display: "flex",
|
|
939
|
+
alignItems: "center",
|
|
940
|
+
justifyContent: "center",
|
|
941
|
+
padding: "0 56px",
|
|
942
|
+
background: "linear-gradient(to top, rgba(8,9,12,0.92), rgba(8,9,12,0.0))",
|
|
943
|
+
}}
|
|
944
|
+
>
|
|
945
|
+
<div
|
|
946
|
+
style={{
|
|
947
|
+
fontFamily: "Helvetica, Arial, sans-serif",
|
|
948
|
+
fontSize: 42,
|
|
949
|
+
fontWeight: 800,
|
|
950
|
+
lineHeight: 1.18,
|
|
951
|
+
textAlign: "center",
|
|
952
|
+
color: CREAM,
|
|
953
|
+
}}
|
|
954
|
+
>
|
|
955
|
+
{words.map((w, i) => (
|
|
956
|
+
<span
|
|
957
|
+
key={i}
|
|
958
|
+
style={{
|
|
959
|
+
color: speaking && i === active ? GOLD : CREAM,
|
|
960
|
+
marginRight: 12,
|
|
961
|
+
display: "inline-block",
|
|
962
|
+
}}
|
|
963
|
+
>
|
|
964
|
+
{w}
|
|
965
|
+
</span>
|
|
966
|
+
))}
|
|
967
|
+
</div>
|
|
968
|
+
</div>
|
|
969
|
+
);
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
/* ---------- film ---------- */
|
|
973
|
+
|
|
974
|
+
const SceneWrap: React.FC<{ index: number }> = ({ index }) => {
|
|
975
|
+
const f = useCurrentFrame();
|
|
976
|
+
const len = FRAMES[index];
|
|
977
|
+
const Comp = SCENE_COMPONENTS[index];
|
|
978
|
+
const fadeIn = interpolate(f, [0, 6], [0, 1], clamp);
|
|
979
|
+
const fadeOut = interpolate(f, [len - 6, len], [1, 0], clamp);
|
|
980
|
+
const op = Math.min(fadeIn, index === SCENES.length - 1 ? 1 : fadeOut);
|
|
981
|
+
return (
|
|
982
|
+
<AbsoluteFill style={{ opacity: op }}>
|
|
983
|
+
<Comp f={f} len={len} />
|
|
984
|
+
<Karaoke text={SCENES[index].text} f={f} len={len} />
|
|
985
|
+
</AbsoluteFill>
|
|
986
|
+
);
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
const Bed: React.FC = () => {
|
|
990
|
+
const frame = useCurrentFrame();
|
|
991
|
+
const vol = interpolate(
|
|
992
|
+
frame,
|
|
993
|
+
[0, 24, claudeDurationInFrames - 36, claudeDurationInFrames],
|
|
994
|
+
[0, 0.08, 0.08, 0],
|
|
995
|
+
clamp,
|
|
996
|
+
);
|
|
997
|
+
return <Audio src={staticFile("bed.wav")} volume={vol} />;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
export const ClaudeFilm: React.FC = () => {
|
|
1001
|
+
const frame = useCurrentFrame();
|
|
1002
|
+
return (
|
|
1003
|
+
<AbsoluteFill style={{ backgroundColor: BG }}>
|
|
1004
|
+
<Backdrop frame={frame} />
|
|
1005
|
+
{SCENES.map((s, i) => (
|
|
1006
|
+
<Sequence key={s.id} from={STARTS[i]} durationInFrames={FRAMES[i]}>
|
|
1007
|
+
<SceneWrap index={i} />
|
|
1008
|
+
<Audio src={staticFile(`voice-${String(i + 1).padStart(2, "0")}.wav`)} playbackRate={PLAYBACK_RATE} />
|
|
1009
|
+
</Sequence>
|
|
1010
|
+
))}
|
|
1011
|
+
<Bed />
|
|
1012
|
+
</AbsoluteFill>
|
|
1013
|
+
);
|
|
1014
|
+
};
|