sera-code 0.1.3 → 0.1.4
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/README.md +9 -1
- package/bin/sera.mjs +31 -0
- package/dist/bundle/chunks/{chunk-OXMPCU7P.js → chunk-DFRGGJWV.js} +1 -1
- package/dist/bundle/chunks/{chunk-KO3Z5BTR.js → chunk-EMXTNOOJ.js} +5 -5
- package/dist/bundle/chunks/{chunk-KXU77PUU.js → chunk-ET2ARYK4.js} +1 -1
- package/dist/bundle/chunks/{chunk-ZNCN2NGY.js → chunk-G5BGS7HZ.js} +2 -2
- package/dist/bundle/chunks/{chunk-HODJBMOY.js → chunk-GSGPISRE.js} +3 -4
- package/dist/bundle/chunks/{chunk-46WGNYIE.js → chunk-NMUS7OCP.js} +1 -1
- package/dist/bundle/chunks/{chunk-HQBQWHLD.js → chunk-RCQXVPCE.js} +1 -1
- package/dist/bundle/chunks/{cli-MML2DU4A.js → cli-NOCFT7AL.js} +1 -1
- package/dist/bundle/chunks/{execute-HXDNZ26B.js → execute-S2O3RL6V.js} +1 -1
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{runtime-JAH75CB5.js → runtime-BRT7AUXY.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-OE2CSJ4W.js → virtual-modules-QR2XYBMY.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/lib/postinstall.js +16 -0
- package/lib/update.js +85 -0
- package/lib/win-setup.js +96 -0
- package/package.json +4 -1
- package/sera-core/skills/ambalaj-tasarim/NOTICE +1 -0
- package/sera-core/skills/ambalaj-tasarim/SKILL.md +34 -0
- package/sera-core/skills/ambalaj-tasarim/dieline.mjs +17 -0
- package/sera-core/skills/ambalaj-tasarim/sera-pack.js +535 -0
- package/sera-core/skills/animasyonlu-site/NOTICE +1 -0
- package/sera-core/skills/animasyonlu-site/SKILL.md +26 -0
- package/sera-core/skills/animasyonlu-site/sera-motion.js +310 -0
- package/sera-core/skills/animate/LICENSE +21 -0
- package/sera-core/skills/animate/NOTICE +2 -0
- package/sera-core/skills/animate/RECIPES.md +324 -0
- package/sera-core/skills/animate/SKILL.md +209 -0
- package/sera-core/skills/astryx-ui/SKILL.md +37 -0
- package/sera-core/skills/awwwards/LICENSE +21 -0
- package/sera-core/skills/awwwards/NOTICE +5 -0
- package/sera-core/skills/awwwards/SKILL.md +357 -0
- package/sera-core/skills/awwwards/references/anatomy.md +103 -0
- package/sera-core/skills/awwwards/references/art-direction.md +114 -0
- package/sera-core/skills/awwwards/references/astro.md +235 -0
- package/sera-core/skills/awwwards/references/concepts.md +110 -0
- package/sera-core/skills/awwwards/references/content.md +88 -0
- package/sera-core/skills/awwwards/references/engine.md +751 -0
- package/sera-core/skills/awwwards/references/layout.md +81 -0
- package/sera-core/skills/awwwards/references/motion.md +463 -0
- package/sera-core/skills/awwwards/references/nextjs.md +386 -0
- package/sera-core/skills/awwwards/references/patterns.md +123 -0
- package/sera-core/skills/awwwards/references/quality-bar.md +151 -0
- package/sera-core/skills/awwwards/references/quality.md +91 -0
- package/sera-core/skills/awwwards/references/ship.md +36 -0
- package/sera-core/skills/awwwards/references/typography.md +135 -0
- package/sera-core/skills/awwwards/references/webgl.md +430 -0
- package/sera-core/skills/awwwards/scripts/audit.mjs +243 -0
- package/sera-core/skills/awwwards/scripts/browser.mjs +54 -0
- package/sera-core/skills/awwwards/scripts/font.mjs +87 -0
- package/sera-core/skills/awwwards/scripts/og.mjs +20 -0
- package/sera-core/skills/awwwards/scripts/photos.mjs +65 -0
- package/sera-core/skills/awwwards/scripts/serve.mjs +48 -0
- package/sera-core/skills/awwwards/scripts/shoot.mjs +675 -0
- package/sera-core/skills/beceri-yaz/SKILL.md +39 -0
- package/sera-core/skills/brag-slim/LICENSE +21 -0
- package/sera-core/skills/brag-slim/NOTICE +2 -0
- package/sera-core/skills/brag-slim/SKILL.md +108 -0
- package/sera-core/skills/brainstorming/LICENSE +21 -0
- package/sera-core/skills/brainstorming/NOTICE +5 -0
- package/sera-core/skills/brainstorming/SKILL.md +298 -0
- package/sera-core/skills/brainstorming/builder-check-prompt.md +23 -0
- package/sera-core/skills/copywriting/LICENSE +21 -0
- package/sera-core/skills/copywriting/NOTICE +5 -0
- package/sera-core/skills/copywriting/SKILL.md +343 -0
- package/sera-core/skills/copywriting/references/ai-tells.md +309 -0
- package/sera-core/skills/copywriting/references/copy-frameworks.md +432 -0
- package/sera-core/skills/copywriting/references/natural-transitions.md +256 -0
- package/sera-core/skills/cro/LICENSE +21 -0
- package/sera-core/skills/cro/NOTICE +5 -0
- package/sera-core/skills/cro/SKILL.md +198 -0
- package/sera-core/skills/cro/references/experiments.md +248 -0
- package/sera-core/skills/cro/references/form.md +422 -0
- package/sera-core/skills/derin-arastirma/referanslar/arastirma-yontem.md +11 -0
- package/sera-core/skills/emil-design-eng/LICENSE +21 -0
- package/sera-core/skills/emil-design-eng/NOTICE +2 -0
- package/sera-core/skills/emil-design-eng/SKILL.md +684 -0
- package/sera-core/skills/frontend-design/LICENSE.txt +177 -0
- package/sera-core/skills/frontend-design/NOTICE +2 -0
- package/sera-core/skills/frontend-design/SKILL.md +71 -0
- package/sera-core/skills/gorsel-denetim/SKILL.md +30 -0
- package/sera-core/skills/hallmark/LICENSE +21 -0
- package/sera-core/skills/hallmark/NOTICE +5 -0
- package/sera-core/skills/hallmark/SKILL.md +154 -0
- package/sera-core/skills/hallmark/references/anatomy.md +71 -0
- package/sera-core/skills/hallmark/references/brand-truth.md +40 -0
- package/sera-core/skills/hallmark/references/comp.md +104 -0
- package/sera-core/skills/hallmark/references/craft.md +116 -0
- package/sera-core/skills/hallmark/references/dark-mode.md +49 -0
- package/sera-core/skills/hallmark/references/data-viz.md +48 -0
- package/sera-core/skills/hallmark/references/design-md.md +53 -0
- package/sera-core/skills/hallmark/references/direction.md +52 -0
- package/sera-core/skills/hallmark/references/export-formats.md +80 -0
- package/sera-core/skills/hallmark/references/flow.md +131 -0
- package/sera-core/skills/hallmark/references/fonts.md +58 -0
- package/sera-core/skills/hallmark/references/gates.md +243 -0
- package/sera-core/skills/hallmark/references/genres/atmospheric.md +24 -0
- package/sera-core/skills/hallmark/references/genres/editorial.md +24 -0
- package/sera-core/skills/hallmark/references/genres/modern-minimal.md +24 -0
- package/sera-core/skills/hallmark/references/genres/playful.md +24 -0
- package/sera-core/skills/hallmark/references/imagery.md +99 -0
- package/sera-core/skills/hallmark/references/interaction-and-states.md +89 -0
- package/sera-core/skills/hallmark/references/layout.md +104 -0
- package/sera-core/skills/hallmark/references/macrostructures/01-bento-grid.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/02-long-document.md +35 -0
- package/sera-core/skills/hallmark/references/macrostructures/03-marquee-hero.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/04-stat-led.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/05-workbench.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/06-conversational-faq.md +28 -0
- package/sera-core/skills/hallmark/references/macrostructures/07-manifesto.md +28 -0
- package/sera-core/skills/hallmark/references/macrostructures/08-photographic.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/09-quote-led.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/10-specimen.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/11-catalogue.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/12-letter.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/13-index-first.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/14-narrative-workflow.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/15-split-studio.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
- package/sera-core/skills/hallmark/references/macrostructures/17-type-specimen.md +19 -0
- package/sera-core/skills/hallmark/references/macrostructures/18-portfolio-grid.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/19-map-diagram.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/20-ecosystem-index.md +19 -0
- package/sera-core/skills/hallmark/references/macrostructures/21-component-playground.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures.md +119 -0
- package/sera-core/skills/hallmark/references/microinteractions.md +80 -0
- package/sera-core/skills/hallmark/references/patterns.md +202 -0
- package/sera-core/skills/hallmark/references/redesign.md +88 -0
- package/sera-core/skills/hallmark/references/responsive.md +46 -0
- package/sera-core/skills/hallmark/references/review-finish.md +19 -0
- package/sera-core/skills/hallmark/references/review-hero.md +20 -0
- package/sera-core/skills/hallmark/references/scroll-choreography.md +110 -0
- package/sera-core/skills/hallmark/references/texture.md +90 -0
- package/sera-core/skills/hallmark/references/themes/README.md +58 -0
- package/sera-core/skills/hallmark/references/themes/almanac.md +103 -0
- package/sera-core/skills/hallmark/references/themes/arcade.md +102 -0
- package/sera-core/skills/hallmark/references/themes/atelier.md +98 -0
- package/sera-core/skills/hallmark/references/themes/bloom.md +102 -0
- package/sera-core/skills/hallmark/references/themes/blueprint.md +103 -0
- package/sera-core/skills/hallmark/references/themes/broadside.md +108 -0
- package/sera-core/skills/hallmark/references/themes/brutal.md +95 -0
- package/sera-core/skills/hallmark/references/themes/carnival.md +104 -0
- package/sera-core/skills/hallmark/references/themes/cobalt.md +101 -0
- package/sera-core/skills/hallmark/references/themes/console.md +99 -0
- package/sera-core/skills/hallmark/references/themes/coral.md +102 -0
- package/sera-core/skills/hallmark/references/themes/darkroom.md +99 -0
- package/sera-core/skills/hallmark/references/themes/dose.md +98 -0
- package/sera-core/skills/hallmark/references/themes/dusk.md +105 -0
- package/sera-core/skills/hallmark/references/themes/editorial.md +97 -0
- package/sera-core/skills/hallmark/references/themes/formwork.md +107 -0
- package/sera-core/skills/hallmark/references/themes/furrow.md +98 -0
- package/sera-core/skills/hallmark/references/themes/garden.md +97 -0
- package/sera-core/skills/hallmark/references/themes/grid.md +101 -0
- package/sera-core/skills/hallmark/references/themes/halftone.md +106 -0
- package/sera-core/skills/hallmark/references/themes/hedgerow.md +104 -0
- package/sera-core/skills/hallmark/references/themes/hum.md +99 -0
- package/sera-core/skills/hallmark/references/themes/ink.md +106 -0
- package/sera-core/skills/hallmark/references/themes/kiln.md +108 -0
- package/sera-core/skills/hallmark/references/themes/loom.md +106 -0
- package/sera-core/skills/hallmark/references/themes/lumen.md +103 -0
- package/sera-core/skills/hallmark/references/themes/manifesto.md +101 -0
- package/sera-core/skills/hallmark/references/themes/midnight.md +97 -0
- package/sera-core/skills/hallmark/references/themes/newsprint.md +102 -0
- package/sera-core/skills/hallmark/references/themes/overprint.md +101 -0
- package/sera-core/skills/hallmark/references/themes/pasteup.md +100 -0
- package/sera-core/skills/hallmark/references/themes/piste.md +99 -0
- package/sera-core/skills/hallmark/references/themes/refract.md +101 -0
- package/sera-core/skills/hallmark/references/themes/ribbon.md +106 -0
- package/sera-core/skills/hallmark/references/themes/rim.md +96 -0
- package/sera-core/skills/hallmark/references/themes/riso.md +98 -0
- package/sera-core/skills/hallmark/references/themes/solstice.md +104 -0
- package/sera-core/skills/hallmark/references/themes/specimen.md +100 -0
- package/sera-core/skills/hallmark/references/themes/spore.md +104 -0
- package/sera-core/skills/hallmark/references/themes/sport.md +101 -0
- package/sera-core/skills/hallmark/references/themes/squeeze.md +99 -0
- package/sera-core/skills/hallmark/references/themes/sticker.md +106 -0
- package/sera-core/skills/hallmark/references/themes/studio.md +99 -0
- package/sera-core/skills/hallmark/references/themes/terminal.md +96 -0
- package/sera-core/skills/hallmark/references/themes/terrazzo.md +106 -0
- package/sera-core/skills/hallmark/references/themes/ultraviolet.md +106 -0
- package/sera-core/skills/hallmark/references/themes/vantage.md +99 -0
- package/sera-core/skills/hallmark/references/themes/vellum.md +105 -0
- package/sera-core/skills/hallmark/references/themes/wayfind.md +105 -0
- package/sera-core/skills/hallmark/references/themes/werkstatt.md +105 -0
- package/sera-core/skills/hallmark/scripts/capture.mjs +132 -0
- package/sera-core/skills/hallmark/scripts/refcheck.mjs +405 -0
- package/sera-core/skills/hallmark/scripts/sloplint-render.mjs +1283 -0
- package/sera-core/skills/hallmark/scripts/sloplint.mjs +4426 -0
- package/sera-core/skills/hallmark/scripts/theme.mjs +660 -0
- package/sera-core/skills/kurum-ici-iletisim/SKILL.md +40 -0
- package/sera-core/skills/launch/LICENSE +21 -0
- package/sera-core/skills/launch/NOTICE +5 -0
- package/sera-core/skills/launch/SKILL.md +385 -0
- package/sera-core/skills/launch/references/shipped-changes.md +84 -0
- package/sera-core/skills/launch/references/site-launch-qa.md +57 -0
- package/sera-core/skills/marka-kimligi/SKILL.md +30 -0
- package/sera-core/skills/mcp-yaz/SKILL.md +41 -0
- package/sera-core/skills/mobil-arayuz/SKILL.md +12 -0
- package/sera-core/skills/mvp-scoping/LICENSE +21 -0
- package/sera-core/skills/mvp-scoping/NOTICE +5 -0
- package/sera-core/skills/mvp-scoping/SKILL.md +95 -0
- package/sera-core/skills/ortak-yazarlik/SKILL.md +32 -0
- package/sera-core/skills/oyun-turleri/SKILL.md +176 -0
- package/sera-core/skills/paralel-sadelestirme/SKILL.md +33 -0
- package/sera-core/skills/phaser-core/LICENSE +201 -0
- package/sera-core/skills/phaser-core/NOTICE +5 -0
- package/sera-core/skills/phaser-core/NOTICE-UPSTREAM +15 -0
- package/sera-core/skills/phaser-core/SKILL.md +245 -0
- package/sera-core/skills/phaser-core/references/scene-flow.md +177 -0
- package/sera-core/skills/pitch-deck/LICENSE +21 -0
- package/sera-core/skills/pitch-deck/NOTICE +5 -0
- package/sera-core/skills/pitch-deck/SKILL.md +103 -0
- package/sera-core/skills/sera-3d-oyun/NOTICE +1 -0
- package/sera-core/skills/sera-3d-oyun/SKILL.md +12 -0
- package/sera-core/skills/sera-3d-oyun/sera-3d.js +3697 -0
- package/sera-core/skills/sera-diyagram/SKILL.md +43 -0
- package/sera-core/skills/sera-ofis-dosya/SKILL.md +3 -0
- package/sera-core/skills/sera-ofis-dosya/referanslar/ofis-ileri.md +46 -0
- package/sera-core/skills/sera-ui-site/NOTICE +1 -0
- package/sera-core/skills/sera-ui-site/SKILL.md +10 -0
- package/sera-core/skills/sera-ui-site/sera-ui.js +83 -0
- package/sera-core/skills/sera-veri-gorsel/SKILL.md +3 -0
- package/sera-core/skills/sera-veri-gorsel/referanslar/palet-dogrula.mjs +80 -0
- package/sera-core/skills/sistem-tarama/SKILL.md +49 -0
- package/sera-core/skills/sistem-tarama/referanslar/komutlar.md +78 -0
- package/sera-core/skills/tasarim-stilleri/SKILL.md +113 -0
- package/sera-core/skills/teardown/LICENSE +22 -0
- package/sera-core/skills/teardown/NOTICE +3 -0
- package/sera-core/skills/teardown/SKILL.md +144 -0
- package/sera-core/skills/teardown/package-lock.json +545 -0
- package/sera-core/skills/teardown/package.json +18 -0
- package/sera-core/skills/teardown/paths.mjs +30 -0
- package/sera-core/skills/teardown/run_sfx.py +10 -0
- package/sera-core/skills/teardown/sfx/__init__.py +10 -0
- package/sera-core/skills/teardown/sfx/__main__.py +64 -0
- package/sera-core/skills/teardown/sfx/dsp.py +453 -0
- package/sera-core/skills/teardown/sfx/loudness.py +72 -0
- package/sera-core/skills/teardown/sfx/mix.py +111 -0
- package/sera-core/skills/teardown/sfx/samples/SOURCES.md +23 -0
- package/sera-core/skills/teardown/sfx/samples/fs-258269-mouth-pop.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-323432-typing.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-329533-room-tone-in-an-apartment-livi.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-329569-roomtone-bedroom-yew.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-339521-vhs-rewind-forward-and-eject.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-349504-triangle-open-04.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-416777-digital-typing-wav.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-426767-apartment-room-tone-wav.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-447909-keyboard-typing.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-447910-plop.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-79388-keyboard-typing-wav.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-824189-pop-in-sfx.ogg +0 -0
- package/sera-core/skills/teardown/sfx/score_kit.py +206 -0
- package/sera-core/skills/teardown/sfx/synth.py +294 -0
- package/sera-core/skills/teardown/sheet.mjs +127 -0
- package/sera-core/skills/teardown/sims/beats.py +212 -0
- package/sera-core/skills/teardown/sims/build.mjs +141 -0
- package/sera-core/skills/teardown/sims/capture.mjs +211 -0
- package/sera-core/skills/teardown/sims/cessna-film/main.js +4 -0
- package/sera-core/skills/teardown/sims/cessna-film/timeline.json +1 -0
- package/sera-core/skills/teardown/sims/cessna-live/main.js +5 -0
- package/sera-core/skills/teardown/sims/cessna-shared/console.js +288 -0
- package/sera-core/skills/teardown/sims/cessna-shared/film.js +254 -0
- package/sera-core/skills/teardown/sims/cessna-shared/flight.js +53 -0
- package/sera-core/skills/teardown/sims/cessna-shared/gear.js +364 -0
- package/sera-core/skills/teardown/sims/cessna-shared/live.js +351 -0
- package/sera-core/skills/teardown/sims/cessna-shared/score.py +41 -0
- package/sera-core/skills/teardown/sims/cessna-shared/stage.js +248 -0
- package/sera-core/skills/teardown/sims/kit/director.js +300 -0
- package/sera-core/skills/teardown/sims/kit/hud.js +194 -0
- package/sera-core/skills/teardown/sims/kit/runtime.js +168 -0
- package/sera-core/skills/teardown/sims/kit/stage3d.js +114 -0
- package/sera-core/skills/teardown/sims/kit/style.css +137 -0
- package/sera-core/skills/teardown/sims/kit/util.js +79 -0
- package/sera-core/skills/teardown/sims/kit/warm.js +66 -0
- package/sera-core/skills/teardown/sims/strandbeest-film/main.js +4 -0
- package/sera-core/skills/teardown/sims/strandbeest-film/timeline.json +1 -0
- package/sera-core/skills/teardown/sims/strandbeest-live/main.js +5 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/beast.js +419 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/console.js +375 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/film.js +352 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/jansen.js +67 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/live.js +420 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/score.py +85 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/stage.js +463 -0
- package/sera-core/skills/teardown/sims/v8-film/main.js +4 -0
- package/sera-core/skills/teardown/sims/v8-film/timeline.json +1 -0
- package/sera-core/skills/teardown/sims/v8-live/main.js +5 -0
- package/sera-core/skills/teardown/sims/v8-shared/console.js +339 -0
- package/sera-core/skills/teardown/sims/v8-shared/engine.js +624 -0
- package/sera-core/skills/teardown/sims/v8-shared/film.js +239 -0
- package/sera-core/skills/teardown/sims/v8-shared/kin.js +86 -0
- package/sera-core/skills/teardown/sims/v8-shared/live.js +374 -0
- package/sera-core/skills/teardown/sims/v8-shared/score.py +60 -0
- package/sera-core/skills/teardown/sims/v8-shared/stage.js +173 -0
- package/sera-core/skills/teardown/wave.mjs +67 -0
- package/sera-core/skills/toplu-degisiklik/SKILL.md +39 -0
- package/sera-core/skills/ui-ux-pro-max/LICENSE +21 -0
- package/sera-core/skills/ui-ux-pro-max/NOTICE +5 -0
- package/sera-core/skills/ui-ux-pro-max/SKILL.md +13 -0
- package/sera-core/skills/ui-ux-pro-max/references/pro-rules.md +117 -0
- package/sera-core/skills/ui-ux-pro-max/references/quick-reference.md +266 -0
- package/sera-core/skills/unslop/LICENSE.md +410 -0
- package/sera-core/skills/unslop/SKILL.md +217 -0
- package/sera-core/skills/unslop/references/effects.md +113 -0
- package/sera-core/skills/unslop/references/refs/unslop-dashboard-after.webp +0 -0
- package/sera-core/skills/unslop/references/refs/unslop-hero-after.webp +0 -0
- package/sera-core/skills/unslop/references/refs.md +16 -0
- package/sera-core/skills/unslop/references/rtl.md +72 -0
- package/sera-core/skills/unslop/references/signs.md +125 -0
- package/sera-core/skills/unslop/references/tokens.md +137 -0
- package/sera-core/skills/unslop/references/visuals.md +84 -0
- package/sera-core/skills/unslop/scripts/snapshot.mjs +197 -0
- package/sera-core/skills/uretken-sanat/SKILL.md +42 -0
- package/sera-core/skills/verification-before-completion/LICENSE +21 -0
- package/sera-core/skills/verification-before-completion/NOTICE +5 -0
- package/sera-core/skills/verification-before-completion/SKILL.md +120 -0
- package/sera-core/skills/web-yayin-listesi/SKILL.md +3 -0
- package/sera-core/src/app-master.ts +2 -2
- package/sera-core/src/app-verify.ts +33 -0
- package/sera-core/src/extension.ts +16 -2
- package/sera-core/src/generated/build-rules.ts +81 -17
- package/sera-core/src/generated/quality-probe.ts +2 -0
- package/sera-core/src/generated/zero-knowledge.ts +36 -9
- package/sera-core/src/image-tool.ts +12 -2
- package/sera-core/src/link-data-tools.ts +411 -0
- package/sera-core/src/skills.ts +54 -18
- package/sera-core/src/video-tool.ts +51 -0
- package/sera-core/src/zk.ts +7 -3
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
<!-- Generated from tests/nexttest by tests/_gen/build.py; edit there, not here. -->
|
|
2
|
+
# Next.js (App Router)
|
|
3
|
+
|
|
4
|
+
The default stack. Every file below was built and run under Next 16 with React 19, including
|
|
5
|
+
the transitions, back/forward navigation, the 404 and the WebGL planes. Next ships version-matched
|
|
6
|
+
docs in `node_modules/next/dist/docs/`; read the relevant guide whenever an API looks different
|
|
7
|
+
from what you remember.
|
|
8
|
+
|
|
9
|
+
## Scaffold
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx create-next-app@latest <dir> --ts --app --src-dir --eslint --no-tailwind --import-alias "@/*" --use-npm --yes
|
|
13
|
+
cd <dir> && npm i gsap lenis ogl && npm i -D playwright axe-core
|
|
14
|
+
```
|
|
15
|
+
Delete the starter page styles and assets. Tailwind is fine if the user or project uses it;
|
|
16
|
+
tokens then become `@theme` variables with the same names.
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
src/app/layout.tsx flags script, persistent layers, loader, header, <Motion /> last
|
|
20
|
+
src/app/fonts.ts next/font declarations
|
|
21
|
+
src/app/globals.css tokens + engine.css (engine.md), then site styles
|
|
22
|
+
src/app/page.tsx, work/[slug]/page.tsx, not-found.tsx, sitemap.ts, robots.ts, icon.svg
|
|
23
|
+
src/components/Motion.tsx client wrapper: <Engine setup={setupMotion} />
|
|
24
|
+
src/motion/setup.ts global motion: transition, loader format/exit, background, driver
|
|
25
|
+
src/engine/ engine.md files + next.tsx (below) + gl/ (webgl.md, optional)
|
|
26
|
+
src/data/site.ts all content (content.md)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Adapter: `src/engine/next.tsx`
|
|
30
|
+
|
|
31
|
+
A capture-phase click listener intercepts internal links: plain `<a>` and `next/link` (which
|
|
32
|
+
stands down when `defaultPrevented` is set). It plays the leave animation while prefetching,
|
|
33
|
+
cleans up, then pushes. A `usePathname` effect runs `enter()` once the new page is committed.
|
|
34
|
+
Back/forward skips the curtain.
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
'use client';
|
|
38
|
+
// Next.js App Router adapter. Render <Engine setup={…} /> once, as the LAST child of <body> in the
|
|
39
|
+
// root layout (React runs child effects first, so page components register before the engine boots).
|
|
40
|
+
// `setup` (global motion: transition, loader, background, driver) must come from a client module.
|
|
41
|
+
// Internal links (plain <a> or next/link) get the leave → push → enter transition automatically.
|
|
42
|
+
// Opt a link out with data-no-transition. Back/forward re-inits the page without the curtain.
|
|
43
|
+
import { useEffect, useRef } from 'react';
|
|
44
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
45
|
+
import { boot, cleanup, enter, leave, onPage, type PageFn } from './index';
|
|
46
|
+
|
|
47
|
+
export function Engine({ setup }: { setup?: () => void }) {
|
|
48
|
+
const router = useRouter();
|
|
49
|
+
const pathname = usePathname();
|
|
50
|
+
const mode = useRef<'idle' | 'push' | 'pop'>('idle');
|
|
51
|
+
const first = useRef(true);
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
|
+
useEffect(() => { boot(setup); }, []);
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const onClick = async (e: MouseEvent) => {
|
|
58
|
+
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
59
|
+
const a = (e.target as Element).closest('a');
|
|
60
|
+
if (!a || (a.target && a.target !== '_self') || a.hasAttribute('download') || a.hasAttribute('data-no-transition')) return;
|
|
61
|
+
const url = new URL(a.href, location.href);
|
|
62
|
+
if (url.origin !== location.origin || url.pathname === location.pathname) return; // external, hash or same page
|
|
63
|
+
e.preventDefault(); // next/link sees defaultPrevented and stands down
|
|
64
|
+
if (mode.current !== 'idle') return;
|
|
65
|
+
mode.current = 'push';
|
|
66
|
+
const href = url.pathname + url.search + url.hash;
|
|
67
|
+
router.prefetch(href);
|
|
68
|
+
await leave();
|
|
69
|
+
cleanup();
|
|
70
|
+
router.push(href, { scroll: false });
|
|
71
|
+
};
|
|
72
|
+
const onPop = () => { mode.current = 'pop'; cleanup(); };
|
|
73
|
+
document.addEventListener('click', onClick, true);
|
|
74
|
+
addEventListener('popstate', onPop);
|
|
75
|
+
return () => {
|
|
76
|
+
document.removeEventListener('click', onClick, true);
|
|
77
|
+
removeEventListener('popstate', onPop);
|
|
78
|
+
};
|
|
79
|
+
}, [router]);
|
|
80
|
+
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
if (first.current) { first.current = false; return; }
|
|
83
|
+
const pop = mode.current === 'pop';
|
|
84
|
+
mode.current = 'idle';
|
|
85
|
+
enter({ transition: !pop, scrollTop: !pop });
|
|
86
|
+
}, [pathname]);
|
|
87
|
+
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** Component-level page code: runs when the page is ready (after the loader), reverted on leave. */
|
|
92
|
+
export function usePage(fn: PageFn) {
|
|
93
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
94
|
+
useEffect(() => onPage(fn), []);
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Layout: `src/app/layout.tsx`
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
import type { Metadata } from 'next';
|
|
102
|
+
import { Header } from '@/components/Header';
|
|
103
|
+
import { Motion } from '@/components/Motion';
|
|
104
|
+
import { site } from '@/data/site';
|
|
105
|
+
import { display, text } from './fonts';
|
|
106
|
+
import './globals.css';
|
|
107
|
+
|
|
108
|
+
export const metadata: Metadata = {
|
|
109
|
+
metadataBase: new URL(site.url),
|
|
110
|
+
title: { default: `${site.name} | ${site.role}`, template: `%s | ${site.name}` },
|
|
111
|
+
description: site.description,
|
|
112
|
+
alternates: { canonical: './' },
|
|
113
|
+
openGraph: { type: 'website', siteName: site.name, images: ['/og.png'] },
|
|
114
|
+
twitter: { card: 'summary_large_image' },
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// Runs before first paint: hidden-until-revealed styles only apply when JS and motion are on.
|
|
118
|
+
const flags = `document.documentElement.classList.add('js');if(!matchMedia('(prefers-reduced-motion: reduce)').matches)document.documentElement.classList.add('motion')`;
|
|
119
|
+
|
|
120
|
+
const jsonLd = {
|
|
121
|
+
'@context': 'https://schema.org',
|
|
122
|
+
'@type': 'Person',
|
|
123
|
+
name: site.name,
|
|
124
|
+
jobTitle: site.role,
|
|
125
|
+
url: site.url,
|
|
126
|
+
email: `mailto:${site.email}`,
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export default function RootLayout({ children }: LayoutProps<'/'>) {
|
|
130
|
+
return (
|
|
131
|
+
<html lang="en" className={`${display.variable} ${text.variable}`} suppressHydrationWarning>
|
|
132
|
+
<head>
|
|
133
|
+
<script dangerouslySetInnerHTML={{ __html: flags }} />
|
|
134
|
+
</head>
|
|
135
|
+
<body>
|
|
136
|
+
<a className="skip-link" href="#main">Skip to content</a>
|
|
137
|
+
<div id="gl" aria-hidden="true" />
|
|
138
|
+
<div id="curtain" aria-hidden="true"><div className="curtain__panel" /></div>
|
|
139
|
+
<div id="cursor" aria-hidden="true"><span data-cursor-label /></div>
|
|
140
|
+
<div id="loader" role="status" aria-label="Loading">
|
|
141
|
+
<div className="loader__inner">
|
|
142
|
+
<span className="loader__name" data-loader-out>{site.name}</span>
|
|
143
|
+
<span className="loader__count" data-loader-out data-loader-count>000</span>
|
|
144
|
+
</div>
|
|
145
|
+
<div className="loader__bar" data-loader-bar />
|
|
146
|
+
</div>
|
|
147
|
+
<Header />
|
|
148
|
+
<main id="main" tabIndex={-1}>{children}</main>
|
|
149
|
+
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }} />
|
|
150
|
+
<Motion />
|
|
151
|
+
</body>
|
|
152
|
+
</html>
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
- `suppressHydrationWarning` on `<html>` is required: the flags script and the engine add classes
|
|
157
|
+
before React hydrates.
|
|
158
|
+
- `<Motion />` must be the **last** child of `<body>`. React runs effects children-first, so
|
|
159
|
+
`usePage` registrations in pages happen before the engine boots.
|
|
160
|
+
- `#gl`, `#curtain`, `#cursor` and `#loader` live in the root layout, so they persist across
|
|
161
|
+
navigations for free.
|
|
162
|
+
- Header with `aria-current`: a client component using `usePathname()`.
|
|
163
|
+
|
|
164
|
+
## Global motion: `src/components/Motion.tsx` + `src/motion/setup.ts`
|
|
165
|
+
|
|
166
|
+
```tsx
|
|
167
|
+
'use client';
|
|
168
|
+
import { Engine } from '@/engine/next';
|
|
169
|
+
import { setupMotion } from '@/motion/setup';
|
|
170
|
+
|
|
171
|
+
export function Motion() {
|
|
172
|
+
return <Engine setup={setupMotion} />;
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
```ts
|
|
176
|
+
// src/motion/setup.ts (example: iris transition from the click point + a scroll-tinted background)
|
|
177
|
+
// Global motion for this site: runs once on the client, before the first page initializes.
|
|
178
|
+
import { gsap } from 'gsap';
|
|
179
|
+
import { ease, setBackground, setLoaderFormat, setTransition } from '@/engine';
|
|
180
|
+
|
|
181
|
+
const sky = /* glsl */ `
|
|
182
|
+
precision highp float;
|
|
183
|
+
varying vec2 vUv;
|
|
184
|
+
uniform float uScroll;
|
|
185
|
+
void main() {
|
|
186
|
+
vec3 top = mix(vec3(0.95), vec3(0.85, 0.88, 0.93), uScroll);
|
|
187
|
+
gl_FragColor = vec4(mix(vec3(0.95), top, vUv.y), 1.0);
|
|
188
|
+
}`;
|
|
189
|
+
|
|
190
|
+
export function setupMotion() {
|
|
191
|
+
setLoaderFormat((p) => `${Math.round(p)}%`);
|
|
192
|
+
let point = { x: innerWidth / 2, y: innerHeight / 2 };
|
|
193
|
+
addEventListener('pointerdown', (e) => { point = { x: e.clientX, y: e.clientY }; });
|
|
194
|
+
setTransition({
|
|
195
|
+
leave: (c) => gsap.timeline()
|
|
196
|
+
.set(c, { autoAlpha: 1 })
|
|
197
|
+
.set(c.querySelector('.curtain__panel'), { yPercent: 0 })
|
|
198
|
+
.fromTo(c.querySelector('.curtain__panel'),
|
|
199
|
+
{ clipPath: `circle(0% at ${point.x}px ${point.y}px)` },
|
|
200
|
+
{ clipPath: `circle(150% at ${point.x}px ${point.y}px)`, duration: 0.9, ease: ease.inOut }),
|
|
201
|
+
enter: (c) => gsap.timeline()
|
|
202
|
+
.to(c.querySelector('.curtain__panel'), { clipPath: 'circle(0% at 50% 50%)', duration: 0.9, ease: ease.inOut })
|
|
203
|
+
.set(c, { autoAlpha: 0 }),
|
|
204
|
+
});
|
|
205
|
+
const bg = setBackground(sky);
|
|
206
|
+
if (!bg) document.documentElement.style.background = '#f2f2f2';
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
`setupMotion` runs once on the client, after scroll and GL init and before the first page. It
|
|
210
|
+
is the only safe place for code that touches `window` at setup time. Never put DOM code at the
|
|
211
|
+
top level of a module: `'use client'` modules also run on the server.
|
|
212
|
+
|
|
213
|
+
## Component-level motion: `usePage`
|
|
214
|
+
|
|
215
|
+
```tsx
|
|
216
|
+
'use client';
|
|
217
|
+
import { useRef } from 'react';
|
|
218
|
+
import { gsap } from 'gsap';
|
|
219
|
+
import { onScroll } from '@/engine';
|
|
220
|
+
import { usePage } from '@/engine/next';
|
|
221
|
+
|
|
222
|
+
export function Marquee({ text }: { text: string }) {
|
|
223
|
+
const track = useRef<HTMLDivElement>(null);
|
|
224
|
+
usePage(() => {
|
|
225
|
+
const loop = gsap.to(track.current, { xPercent: -50, ease: 'none', duration: 20, repeat: -1 });
|
|
226
|
+
const off = onScroll(({ velocity }) => {
|
|
227
|
+
gsap.to(loop, { timeScale: (velocity < 0 ? -1 : 1) * (1 + Math.min(Math.abs(velocity) / 8, 5)), duration: 0.4, overwrite: true });
|
|
228
|
+
});
|
|
229
|
+
return off;
|
|
230
|
+
});
|
|
231
|
+
return (
|
|
232
|
+
<div style={{ overflow: 'clip', fontSize: 'var(--t-xl)', whiteSpace: 'nowrap' }} aria-hidden="true">
|
|
233
|
+
<div ref={track} style={{ display: 'inline-flex', gap: '1em' }}>
|
|
234
|
+
<span>{text}</span><span>{text}</span>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
`usePage(fn)` registers on mount and runs `fn` once the page is ready (after the loader). Its
|
|
241
|
+
tweens and ScrollTriggers are reverted on navigation, and the returned cleanup runs too. Use
|
|
242
|
+
refs for targets. Server components just use data attributes (`data-split`, `data-reveal`,
|
|
243
|
+
`data-gl`): no client code needed.
|
|
244
|
+
|
|
245
|
+
## Fonts: `src/app/fonts.ts`
|
|
246
|
+
|
|
247
|
+
```ts
|
|
248
|
+
import { Archivo } from 'next/font/google';
|
|
249
|
+
import localFont from 'next/font/local';
|
|
250
|
+
|
|
251
|
+
// Google families: next/font/google self-hosts them at build time.
|
|
252
|
+
export const display = Archivo({ subsets: ['latin'], axes: ['wdth'], variable: '--font-display', display: 'swap' });
|
|
253
|
+
|
|
254
|
+
// Fontshare (or licensed files): download with `font.mjs ... --next`, which prints this block.
|
|
255
|
+
export const text = localFont({
|
|
256
|
+
src: [
|
|
257
|
+
{ path: '../fonts/satoshi-400-normal.woff2', weight: '400', style: 'normal' },
|
|
258
|
+
{ path: '../fonts/satoshi-700-normal.woff2', weight: '700', style: 'normal' },
|
|
259
|
+
],
|
|
260
|
+
variable: '--font-text',
|
|
261
|
+
display: 'swap',
|
|
262
|
+
});
|
|
263
|
+
```
|
|
264
|
+
Add every `.variable` to `<html className>`. In tokens:
|
|
265
|
+
`--f-display: var(--font-display), system-ui, sans-serif;`. `next/font` handles preloading and
|
|
266
|
+
fallback metrics.
|
|
267
|
+
|
|
268
|
+
## Metadata, sitemap, robots, 404, icons
|
|
269
|
+
|
|
270
|
+
- `metadata` / `generateMetadata` per page: unique `title` and `description` (the layout's
|
|
271
|
+
`title.template` adds the site name). `alternates: { canonical: './' }` in the layout
|
|
272
|
+
resolves per page.
|
|
273
|
+
- OG image: `public/og.png` (1200x630, generate with `og.mjs`, then rebuild), or an
|
|
274
|
+
`opengraph-image.tsx` file convention for per-page images.
|
|
275
|
+
- `src/app/sitemap.ts` and `src/app/robots.ts`:
|
|
276
|
+
|
|
277
|
+
```ts
|
|
278
|
+
import type { MetadataRoute } from 'next';
|
|
279
|
+
import { projects, site } from '@/data/site';
|
|
280
|
+
|
|
281
|
+
export default function sitemap(): MetadataRoute.Sitemap {
|
|
282
|
+
return ['/', ...projects.map((p) => `/work/${p.slug}/`)].map((path) => ({ url: `${site.url}${path}` }));
|
|
283
|
+
}
|
|
284
|
+
```
|
|
285
|
+
```ts
|
|
286
|
+
import type { MetadataRoute } from 'next';
|
|
287
|
+
import { site } from '@/data/site';
|
|
288
|
+
|
|
289
|
+
export default function robots(): MetadataRoute.Robots {
|
|
290
|
+
return { rules: { userAgent: '*', allow: '/' }, sitemap: `${site.url}/sitemap.xml` };
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
- `src/app/not-found.tsx` is the designed 404 (it carries the concept). Static routes with
|
|
294
|
+
`generateStaticParams` + `export const dynamicParams = false` make unknown slugs 404.
|
|
295
|
+
- Favicon: `src/app/icon.svg` (file convention), plus `apple-icon.png` if possible.
|
|
296
|
+
- JSON-LD: a `<script type="application/ld+json">` in the layout or page, escaped as shown above.
|
|
297
|
+
|
|
298
|
+
## Pages
|
|
299
|
+
|
|
300
|
+
```tsx
|
|
301
|
+
// src/app/work/[slug]/page.tsx (a case page: static params, metadata, GL hero, next project)
|
|
302
|
+
import type { Metadata } from 'next';
|
|
303
|
+
import Image from 'next/image';
|
|
304
|
+
import Link from 'next/link';
|
|
305
|
+
import { notFound } from 'next/navigation';
|
|
306
|
+
import { projects, site } from '@/data/site';
|
|
307
|
+
|
|
308
|
+
export const dynamicParams = false;
|
|
309
|
+
export function generateStaticParams() {
|
|
310
|
+
return projects.map((p) => ({ slug: p.slug }));
|
|
311
|
+
}
|
|
312
|
+
export async function generateMetadata({ params }: PageProps<'/work/[slug]'>): Promise<Metadata> {
|
|
313
|
+
const { slug } = await params;
|
|
314
|
+
const p = projects.find((x) => x.slug === slug);
|
|
315
|
+
return p ? { title: p.title, description: `${p.title} (${p.year}): a case study page used to validate page transitions and the enter animation.` } : {};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export default async function Work({ params }: PageProps<'/work/[slug]'>) {
|
|
319
|
+
const { slug } = await params;
|
|
320
|
+
const i = projects.findIndex((x) => x.slug === slug);
|
|
321
|
+
if (i < 0) notFound();
|
|
322
|
+
const p = projects[i];
|
|
323
|
+
const next = projects[(i + 1) % projects.length];
|
|
324
|
+
return (
|
|
325
|
+
<article style={{ padding: '18vh var(--gutter)', display: 'grid', gap: '8vh' }}>
|
|
326
|
+
<h1 data-split="lines" data-intro style={{ fontSize: 'var(--t-xl)', lineHeight: 0.9 }}>{p.title}</h1>
|
|
327
|
+
{p.cover.src ? (
|
|
328
|
+
<figure data-gl data-gl-instant style={{ aspectRatio: '16 / 9' }}>
|
|
329
|
+
<Image src={p.cover.src} alt={p.cover.alt} width={1600} height={1067} loading="eager" fetchPriority="high" sizes="100vw" style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
|
|
330
|
+
</figure>
|
|
331
|
+
) : (
|
|
332
|
+
<figure data-gl="procedural" data-gl-instant data-seed={p.cover.seed} data-colors={site.glPalette.join(',')} style={{ aspectRatio: '16 / 9' }}>
|
|
333
|
+
<div className="gl-fallback" role="img" aria-label={p.cover.alt} />
|
|
334
|
+
</figure>
|
|
335
|
+
)}
|
|
336
|
+
<p data-split="lines" style={{ maxWidth: '40ch', fontSize: 'var(--t-m)' }}>
|
|
337
|
+
The case page enters behind the curtain, plays its own intro, and reverts cleanly when you leave it again.
|
|
338
|
+
</p>
|
|
339
|
+
<Link href={`/work/${next.slug}/`} style={{ fontSize: 'var(--t-l)' }}>Next project: {next.title}</Link>
|
|
340
|
+
</article>
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
```
|
|
344
|
+
- Images: `next/image` with `width`/`height` (or `fill` + a sized parent) and `sizes`. The
|
|
345
|
+
hero/LCP image takes `loading="eager" fetchPriority="high"` (`priority` is deprecated in
|
|
346
|
+
Next 16). GL planes read the rendered `<img>`, so `next/image` works with `data-gl`.
|
|
347
|
+
- Inline styles in these examples are for brevity. Real projects use CSS modules or global
|
|
348
|
+
classes from the system.
|
|
349
|
+
|
|
350
|
+
## Static export (optional)
|
|
351
|
+
|
|
352
|
+
For a site with no server features, `output: 'export'` in `next.config.ts` produces `out/`.
|
|
353
|
+
Deploy it anywhere and QA it with `serve.mjs out`. `next/image` then needs
|
|
354
|
+
`images: { unoptimized: true }`, so pre-size and compress images yourself. On Vercel, prefer
|
|
355
|
+
the default build: image optimization included.
|
|
356
|
+
|
|
357
|
+
## QA
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
npm run build && npx next start -p 4400 # background; production server
|
|
361
|
+
node $SKILL/scripts/audit.mjs http://127.0.0.1:4400/
|
|
362
|
+
node $SKILL/scripts/shoot.mjs http://127.0.0.1:4400/ --nav
|
|
363
|
+
```
|
|
364
|
+
Never QA `next dev`: it is slower, has dev overlays, and runs effects twice in Strict Mode.
|
|
365
|
+
The engine is idempotent, but timings and FPS are not representative.
|
|
366
|
+
|
|
367
|
+
## Pitfalls
|
|
368
|
+
|
|
369
|
+
- **SplitText vs React re-renders.** Only put `data-split` on text that never re-renders on the
|
|
370
|
+
client (server components, static props). If a client component re-renders split text, React
|
|
371
|
+
throws on the mutated DOM.
|
|
372
|
+
- **Don't remove React-owned nodes.** The engine hides the loader instead of removing it.
|
|
373
|
+
Follow the same rule in your own code: hide, or render conditionally from state.
|
|
374
|
+
- **No DOM at module level** in anything imported by a client component. Put it in
|
|
375
|
+
`setupMotion`, `usePage`, or effects.
|
|
376
|
+
- **Opting out:** `data-no-transition` on a link skips the curtain (downloads, modals, anchors
|
|
377
|
+
handled elsewhere). `target="_blank"`, external, `mailto:` and same-page links are skipped
|
|
378
|
+
automatically.
|
|
379
|
+
- **`loading.tsx` / Suspense:** the enter animation runs when the pathname commits. Avoid
|
|
380
|
+
route-level loading UI on showcase pages, or the curtain lifts onto a skeleton.
|
|
381
|
+
- **Native alternative:** React's `<ViewTransition>` (docs:
|
|
382
|
+
`node_modules/next/dist/docs/01-app/02-guides/view-transitions.md`) morphs shared elements
|
|
383
|
+
with the browser View Transitions API. It is great for thumbnail → hero morphs. Don't combine
|
|
384
|
+
it with the curtain on the same navigation.
|
|
385
|
+
- Bundle baseline: Next + React is roughly 170 KB of gzipped JS before your code; with GSAP,
|
|
386
|
+
Lenis and OGL about 250 KB. Lazy-load anything heavier (`next/dynamic`, `await import()`).
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Proven implementation patterns
|
|
2
|
+
|
|
3
|
+
Patterns that worked in tested builds. They are structures, not looks: apply them to your concept.
|
|
4
|
+
(Do not reuse a tested build's concept; your concept must come from your subject.)
|
|
5
|
+
|
|
6
|
+
## 1. The driver module (one variable → every concept-bearing visual)
|
|
7
|
+
|
|
8
|
+
Concept sites feel inevitable when everything is lit/colored/positioned by the same source.
|
|
9
|
+
Write one module that owns the variable and fans it out:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
// src/motion/<concept>.ts
|
|
13
|
+
import { onPage, onScroll, setBackground } from '@/engine';
|
|
14
|
+
|
|
15
|
+
const FRAG = /* glsl */ `...`; // reads uniform float uState (see webgl.md)
|
|
16
|
+
const map = (p: number) => ({ /* derive everything from p: dark, label, uniform, transform... */ });
|
|
17
|
+
|
|
18
|
+
const uniforms = { uState: { value: 0 } }; // the shader reads these objects by reference
|
|
19
|
+
let targets: HTMLElement[] = [];
|
|
20
|
+
let current = 0; // latest driver value (the idle hookup reads it)
|
|
21
|
+
function apply(p: number, drift = 0) { // drift: the idle input, see below
|
|
22
|
+
const s = map(p); // discrete state from the real value only,
|
|
23
|
+
const c = drift ? map(p + drift) : s; // so a drift near a threshold never flickers
|
|
24
|
+
document.documentElement.classList.toggle('is-dark', s.dark); // global ink switch
|
|
25
|
+
const label = document.querySelector('[data-label]');
|
|
26
|
+
if (label && label.textContent !== s.label) label.textContent = s.label; // UI that narrates the state
|
|
27
|
+
uniforms.uState.value = c.uniform; // GL follows the same variable
|
|
28
|
+
for (const el of targets) el.style.transform = c.transform; // concept transforms (cheap props only)
|
|
29
|
+
}
|
|
30
|
+
// A page can pin its state (404 at night, a case page in its own chapter):
|
|
31
|
+
const pinned = () => { const v = document.querySelector<HTMLElement>('[data-state]')?.dataset.state; return v ? +v : null; };
|
|
32
|
+
|
|
33
|
+
export function startConcept() { // call from setupMotion
|
|
34
|
+
setBackground(FRAG, uniforms); // returns null without GL: the static fallback takes over
|
|
35
|
+
onScroll(({ progress }) => apply((current = pinned() ?? progress)));
|
|
36
|
+
onPage(() => {
|
|
37
|
+
targets = [...document.querySelectorAll<HTMLElement>('[data-concept]')];
|
|
38
|
+
apply((current = pinned() ?? 0));
|
|
39
|
+
return () => { targets = []; };
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
Call `startConcept()` once from `setupMotion`. Drivers can be scroll progress (time of day,
|
|
44
|
+
depth, temperature, zoom), the pointer (light source, wind), a chapter index (pinned sections),
|
|
45
|
+
real time (the local hour, which personalizes revisits), or audio level (opt-in).
|
|
46
|
+
|
|
47
|
+
Add a little pointer influence on top of the scroll driver (for example ±12% of the light
|
|
48
|
+
angle). That way the signature reacts before the visitor scrolls, which is the first thing
|
|
49
|
+
people try.
|
|
50
|
+
|
|
51
|
+
Add an **idle input** too: a slow term from `gsap.ticker` time (a drifting light, a second
|
|
52
|
+
hand, a breathing exposure) passed to `apply` as `drift`, small enough that the state stays
|
|
53
|
+
readable. With it, the concept keeps moving while the visitor reads, instead of freezing the
|
|
54
|
+
moment they stop scrolling. `references/motion.md` ("Idle state") has the rules, the `idle`
|
|
55
|
+
module and the ticker hookup, which pauses off screen and stays at rest under reduced motion.
|
|
56
|
+
|
|
57
|
+
## 2. Sticky stage hero (the signature plays while the hero is in view)
|
|
58
|
+
|
|
59
|
+
If the signature is scroll-driven, give it scroll distance while the hero is still on screen:
|
|
60
|
+
```css
|
|
61
|
+
.hero { height: 190svh; } /* 90svh of scroll belongs to the hero */
|
|
62
|
+
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: clip; container-type: inline-size; }
|
|
63
|
+
```
|
|
64
|
+
Cheaper and more robust than a GSAP pin. Use 150svh on phones.
|
|
65
|
+
|
|
66
|
+
## 3. Static fallbacks per section
|
|
67
|
+
|
|
68
|
+
Sections declare their state in markup (`data-sky="dawn"`, `data-chapter="2"`, `data-tone="dark"`).
|
|
69
|
+
With GL on, they are transparent over the canvas; without GL (reduced motion, no WebGL, Save-Data)
|
|
70
|
+
each paints its own static version:
|
|
71
|
+
```css
|
|
72
|
+
html:not(.gl-on) [data-sky='dawn'] { background: linear-gradient(var(--dawn-top), var(--dawn-bottom)); }
|
|
73
|
+
html:not(.gl-on) [data-sky='night'] { background: var(--night); }
|
|
74
|
+
```
|
|
75
|
+
The reduced-motion screenshot then looks designed, not broken.
|
|
76
|
+
|
|
77
|
+
## 4. Decorative text copies (shadows, reflections, outlines, echoes)
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<div class="name">
|
|
81
|
+
<h1 class="name__word" data-split="chars" data-intro>Name</h1>
|
|
82
|
+
<span class="name__echo" aria-hidden="true">Name</span> <!-- sibling, never inside the h1 -->
|
|
83
|
+
</div>
|
|
84
|
+
```
|
|
85
|
+
A projected shadow: `transform-origin: 50% 100%; transform: scaleY(-L) skewX(Sdeg)`, a mask
|
|
86
|
+
gradient fading with distance, a static `filter: blur(1-2px)`; drive L and S from the driver.
|
|
87
|
+
Transforms only: it costs nothing per frame.
|
|
88
|
+
|
|
89
|
+
## 5. Loader → UI handoff
|
|
90
|
+
|
|
91
|
+
Put the loader's counter exactly where a persistent UI element lives (a corner clock, a page
|
|
92
|
+
counter, a progress line), in the same type style. When the loader background fades, the counter
|
|
93
|
+
"becomes" the UI. `setLoaderFormat()` turns 0→100 into the concept's unit (a time, a year, a depth).
|
|
94
|
+
`setLoaderExit()` owns the choreography. Keep progress + exit ≤ 2.6 s (`loaderMs` in the shoot report).
|
|
95
|
+
|
|
96
|
+
## 6. Frame that steps aside
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
// in setupMotion
|
|
100
|
+
let last = 0;
|
|
101
|
+
onScroll(({ y }) => {
|
|
102
|
+
if (Math.abs(y - last) < 4) return;
|
|
103
|
+
document.documentElement.classList.toggle('frame-away', y > 160 && y > last);
|
|
104
|
+
last = y;
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
```css
|
|
108
|
+
html.frame-away .frame__tl, html.frame-away .frame__tr { translate: 0 -220%; }
|
|
109
|
+
.frame__tl, .frame__tr { transition: translate 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
|
|
110
|
+
```
|
|
111
|
+
Use the individual `translate` property so it never fights GSAP transforms.
|
|
112
|
+
|
|
113
|
+
## 7. Index as concept (the work list is part of the idea)
|
|
114
|
+
|
|
115
|
+
A tested build presented projects as days on a calendar because its concept was about time: the index
|
|
116
|
+
format itself expressed the concept (a frame wall, a contact sheet, a timetable, a map, a
|
|
117
|
+
dial). On phones, collapse to only the meaningful entries in a single column.
|
|
118
|
+
|
|
119
|
+
## 8. Transitions that belong to the concept
|
|
120
|
+
|
|
121
|
+
A tested build about light used "a shadow passes": a dark band with a soft gradient leading edge
|
|
122
|
+
sweeping in the light's direction. Derive yours from the concept's physics (a frame closing, a page turning,
|
|
123
|
+
film advancing, water rising) and keep it ≤ 1 s each way.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<!-- Generated from jury/references/quality-bar.md by tests/_gen/build.py; edit there, not here. -->
|
|
2
|
+
# The quality bar: how award sites are scored, the rubric, and the critic brief
|
|
3
|
+
|
|
4
|
+
The bar is the Awwwards scoring system. It is public, detailed, and backed by years of real
|
|
5
|
+
scores. The goal is a site that would hold up in front of that jury; submitting is optional and
|
|
6
|
+
up to the owner. These skills are not affiliated with Awwwards, and every score they give is an
|
|
7
|
+
estimate.
|
|
8
|
+
|
|
9
|
+
## The system (awwwards.com/about-evaluation, verified Oct 2026)
|
|
10
|
+
|
|
11
|
+
| Criterion | Weight | What reviewers actually judge |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| Design | 40% | Craft and control: the typographic system, layout and negative space, color and contrast, consistency, detail. Sites that feel "inevitable" score highest. Piling on effects reads as a lack of control. |
|
|
14
|
+
| Usability | 30% | Orientation in under 3 s, clear navigation, load time, responsiveness on real phones, accessibility (keyboard, focus, reduced motion), feedback on interaction. |
|
|
15
|
+
| Creativity | 20% | Originality with intent: an idea that could not be moved to another brand. Generic tropes are discounted. |
|
|
16
|
+
| Content | 10% | Real, specific copy and imagery integrated into the design. Placeholder content is noticed. |
|
|
17
|
+
|
|
18
|
+
- Honorable Mention starts at 6.5. Site of the Day is the highest score of the day, and recent
|
|
19
|
+
winners average 7.2 to 7.6.
|
|
20
|
+
- The developer review looks for scores above 7 in six areas: **Semantics/SEO,
|
|
21
|
+
Animations/Transitions, Accessibility, WPO (web performance), Responsive Design, and
|
|
22
|
+
Markup/Meta-data.**
|
|
23
|
+
|
|
24
|
+
## What gets punished
|
|
25
|
+
|
|
26
|
+
- A polished template with no point of view. Effects bolted on rather than choreographed.
|
|
27
|
+
- Hard cuts or plain fades between states ("craft lives between states").
|
|
28
|
+
- A WebGL hero at 18 to 20 fps on a mid-range phone, a 9 MB page, a 6-second progress bar.
|
|
29
|
+
- Desktop-only thinking: a broken or squished mobile layout caps a site at Honorable Mention.
|
|
30
|
+
- A custom cursor that hides the native one, missing focus states, low contrast.
|
|
31
|
+
- A dead site: primary hovers that only swap a color, a concept that freezes the moment the
|
|
32
|
+
visitor stops. Reviewers call it
|
|
33
|
+
"static" or "a template" even when the frames are well composed.
|
|
34
|
+
- Lorem ipsum, stock imagery, machine-translated copy.
|
|
35
|
+
- Borrowed concepts: this season's horizontal gallery, the same distortion everyone ships.
|
|
36
|
+
|
|
37
|
+
## Critic's self-test (do this on your screenshots)
|
|
38
|
+
|
|
39
|
+
1. Screenshot the hero. Is the static frame strong on its own?
|
|
40
|
+
2. Throttle (4x CPU, slow 4G). Does it still paint quickly and hold its frame rate? `shoot.mjs`
|
|
41
|
+
runs its mobile pass this way: read `mobile.vitals` and `mobile.scrollFps`.
|
|
42
|
+
3. Watch the transitions between states, not just between pages.
|
|
43
|
+
4. Toggle reduced motion. Is the site complete and calm?
|
|
44
|
+
5. Open it at phone width. Is it designed, or squished?
|
|
45
|
+
6. Point at things. Do the links, buttons and images answer in one voice? Leave the mouse
|
|
46
|
+
still for five seconds. Does the concept still breathe?
|
|
47
|
+
|
|
48
|
+
## Score rubric (1 to 10, with evidence from specific screenshots)
|
|
49
|
+
|
|
50
|
+
Score as a skeptical critic. Every score needs evidence, for example: "d-01-hero: display type 18vw,
|
|
51
|
+
tracking -0.05em, optically aligned to the grid; the static frame works as a poster." No
|
|
52
|
+
evidence, no points.
|
|
53
|
+
|
|
54
|
+
**Design (40%)**
|
|
55
|
+
- 6: clean and consistent, but could be any template; safe type; uniform spacing.
|
|
56
|
+
- 7: a clear typographic system, an intentional palette, good hierarchy; one or two memorable compositions.
|
|
57
|
+
- 8: every frame composed; type used as image; rhythm varied on purpose; every detail designed (hover, focus, captions, footer, 404).
|
|
58
|
+
- 9: inevitable. Nothing to add or remove, and a visual language you could recognize from a crop.
|
|
59
|
+
|
|
60
|
+
**Usability (30%)**
|
|
61
|
+
- 6: works, but the loader is long, nav is unclear on some page, mobile is squished, or FPS drops.
|
|
62
|
+
- 7: fast, clear nav, mobile works, reduced motion is acceptable.
|
|
63
|
+
- 8: instant orientation, mobile composed for the hand, transitions never block, accessibility basics complete, 60 fps, every primary hover target answers in the site's own motion, not a color swap alone (`h-*` pairs; `hover.noHoverChange` empty).
|
|
64
|
+
- 9: all of 8, plus delightful feedback everywhere and zero friction on every device.
|
|
65
|
+
|
|
66
|
+
**Creativity (20%)**
|
|
67
|
+
- 6: known patterns, competently assembled.
|
|
68
|
+
- 7: one idea specific to the subject, partially carried through.
|
|
69
|
+
- 8: the concept drives layout, motion and the signature moment; something reviewers haven't seen this month.
|
|
70
|
+
- 9: a new interaction idea that becomes a reference for others.
|
|
71
|
+
|
|
72
|
+
**Content (10%)**
|
|
73
|
+
- 6: placeholder-feeling or generic copy.
|
|
74
|
+
- 7: specific copy, honest imagery, a clear story.
|
|
75
|
+
- 8: copy with voice and real substance; case studies explain the problem, the idea and the outcome.
|
|
76
|
+
|
|
77
|
+
**Developer (each 1 to 10):** Semantics/SEO, Animations/Transitions, Accessibility, WPO,
|
|
78
|
+
Responsive, Markup/Meta-data. Use the `audit.mjs` and `shoot.mjs` reports as evidence. An 8
|
|
79
|
+
needs everything in its row; each miss costs a point or more. The audit reads the HTML the
|
|
80
|
+
server sends, while `report.json` reads the page after JavaScript ran. When they disagree (the
|
|
81
|
+
audit finds no `<h1>`, `desktop.h1` lists one), the element only exists after JavaScript: that
|
|
82
|
+
is a Semantics/SEO risk, not a missing element.
|
|
83
|
+
|
|
84
|
+
| Area | Evidence | An 8 needs |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| Semantics/SEO | audit: lang, one `<h1>`, heading order, `<main>`, titles, descriptions, canonical, robots, sitemap, 404 status | 0 audit FAILs in the area, a unique title and description per page, a real 404 |
|
|
87
|
+
| Animations/Transitions | `d-90`..`d-92` frames, `h-*` pairs, `hover`, `desktop.idleMotion`, `scrollFps` | a continuous transition between pages, no primary target in `noHoverChange` or a text-color-only `colorOnly`, smooth scroll |
|
|
88
|
+
| Accessibility | `a11y` (axe), `keyboard`, `k-*` and `r-*` frames, `reduced.hiddenText`, `reduced.moving` | 0 serious or critical axe violations, a skip link first, every focus stop visible, `hiddenText` 0, nothing still moving under reduced motion |
|
|
89
|
+
| WPO | `mobile.vitals`, `mobile.loaderMs` (null: no loader), `desktop.settledMs` and `mobile.settledMs`, `mobile.loadMs`, `mobile.scrollFps`, the audit's heaviest-page line | throttled mobile LCP under 2.5 s, CLS under 0.05, a loader or intro done within 2.6 s, JS under 300 KB gzipped, a page under 3 MB. `loadMs` is when the last asset arrived, not when visitors could read: judge waiting by LCP and the loader |
|
|
90
|
+
| Responsive | `m-*` frames, `overflowX` and `offenders`, `smallTargets` | no overflow, tap targets of at least 24 px, a phone layout composed rather than squished |
|
|
91
|
+
| Markup/Meta-data | audit: OG and Twitter tags, `og:image` loads, favicon, viewport, alt text, accessible names | 0 audit FAILs in the area, an OG image that loads |
|
|
92
|
+
|
|
93
|
+
Weighted overall = 0.4 Design + 0.3 Usability + 0.2 Creativity + 0.1 Content.
|
|
94
|
+
|
|
95
|
+
## Critic brief (for a fresh subagent on every QA pass)
|
|
96
|
+
|
|
97
|
+
The builder knows what it meant to build, so it scores intent instead of what's on screen. A
|
|
98
|
+
critic that sees only the evidence scores like a jury. Pass this brief to a fresh subagent,
|
|
99
|
+
filling in the three paths. Give it nothing else: no `DESIGN.md`, no code, no concept card, no
|
|
100
|
+
earlier scores, no notes on what you were going for.
|
|
101
|
+
|
|
102
|
+
- **Google Antigravity (CLI `agy`, IDE, 2.0)**: Launch via `invoke_subagent` with `TypeName: "self"` (or `"research"`), `Role: "Awwwards QA Critic"`, passing the brief below in `Prompt`. The critic runs independently and reports back.
|
|
103
|
+
- **Claude Code**: Launch via the `Agent` tool (`Task` in older versions).
|
|
104
|
+
- **Codex & Other Multi-Agent Harnesses**: Spawn a fresh delegated worker/sub-session with this brief.
|
|
105
|
+
- **Single-turn / Without subagents**: Only if your environment cannot launch subagents or delegate. See "Without subagents" below.
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
You are an Awwwards juror reviewing a site you have never seen. You get only evidence. Use
|
|
109
|
+
only the files below: don't open the site, search the web, or read anything else about it.
|
|
110
|
+
|
|
111
|
+
Rubric: <absolute path to references/quality-bar.md>, the "Score rubric" section
|
|
112
|
+
Screenshots: <absolute path to .shots/>. Each page has its own folder with a report.json;
|
|
113
|
+
summary.json gives an overview. Prefixes: d- desktop 1440, m- phone 390,
|
|
114
|
+
r- reduced motion, k- keyboard focus, d-90..92 page transition and back.
|
|
115
|
+
h-NN-rest / h-NN-hover: one pointer target, clipped at the same
|
|
116
|
+
coordinates, at rest and under the pointer (report.json hover.targets
|
|
117
|
+
names each target, says whether it is primary and lists what changed).
|
|
118
|
+
Audit: <absolute path to the saved audit.mjs output>
|
|
119
|
+
|
|
120
|
+
1. Open every screenshot. Before scoring, write in one sentence what you think the site's
|
|
121
|
+
idea is. If you can't tell, say so: that is a Creativity finding, not a guess to make.
|
|
122
|
+
2. Score Design, Usability, Creativity and Content from 1 to 10, and each developer area
|
|
123
|
+
(Semantics/SEO, Animations/Transitions, Accessibility, WPO, Responsive, Markup/Meta-data).
|
|
124
|
+
Cite a screenshot file or a report field for every score. No evidence, no points. Start
|
|
125
|
+
from 6 and make the evidence earn every point above it.
|
|
126
|
+
3. Weighted overall = 0.4 Design + 0.3 Usability + 0.2 Creativity + 0.1 Content.
|
|
127
|
+
4. List the fixes that would raise a score, most score gained first. Each one names the
|
|
128
|
+
screenshot or field, what is wrong, and what to change. Be concrete ("m-03: the case-study
|
|
129
|
+
title wraps to five lines at 390 px; drop the mobile display size to 14vw"), never generic
|
|
130
|
+
("improve the typography").
|
|
131
|
+
5. Judge interaction from the h- pairs and report.json `hover`. Primary targets in
|
|
132
|
+
`noHoverChange` cost Design and Animations/Transitions points. `colorOnly`, `pixels` and
|
|
133
|
+
`masked` are leads, not verdicts: open each pair. A fill that floods or inverts the whole button is
|
|
134
|
+
a real treatment; a CTA, nav or project link whose text only changes color is not, and
|
|
135
|
+
costs the same points.
|
|
136
|
+
`desktop.idleMotion: false` is not a fault by itself: judge whether a concept this big
|
|
137
|
+
should keep moving at rest. Things you can't judge from stills (how motion feels,
|
|
138
|
+
sound) you leave out of the score. Don't assume they are good.
|
|
139
|
+
|
|
140
|
+
Reply with: the one-sentence idea, a score table with evidence, the weighted overall, and the
|
|
141
|
+
ranked fix list. Do not suggest a new concept; judge the one on screen.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Compare the critic's one-sentence idea with what the site was meant to say (a concept card, a
|
|
145
|
+
brief, the owner's own words). If they don't match, the site isn't saying it: fix the site, not
|
|
146
|
+
the critic.
|
|
147
|
+
|
|
148
|
+
**Without subagents**, and only then, score it yourself under the same rules, strictly from the
|
|
149
|
+
evidence. Look at the evidence before reading any code, design notes or description of intent,
|
|
150
|
+
start every category at 6, and give no points without a cited file. Say in the final message
|
|
151
|
+
that the score is a self-score.
|