Branchwell

PulseCanvas / website · pulsecanvas.ai / commits / 9a61f4f7

Website: sync to the live site source new

written by pulsecanvas · 9a61f4f728665274f519e7ae9ba8b9b38ca7d963 · parent 0cef5bc0

33 files changed

.env.example added

1+ # Hosted directory whose loops/ folder holds the silent visualizer loops.
2+ # Leave blank to use the R2 media host in media.config.js.
3+ VITE_VISUALIZER_MEDIA_BASE_URL=
4+ # Defaults to https://branchwell.ai/pulsecanvas/app.
5+ VITE_PUBLIC_SOURCE_URL=
6+ # Shared community CTA override; defaults to https://projectatom.ai/apps?app=pulsecanvas#feedback.
7+ VITE_NEWSLETTER_URL=
8+ # Defaults to https://pulsecanvas.ai.
9+ VITE_WEBSITE_URL=

README.md changed

11 # PulseCanvas Studio website
22
3- Website: https://pulsecanvas.ai
4-
53 Static product website for PulseCanvas Studio, a free native Mac music visualizer and music-video maker. Built with semantic HTML, CSS, plain JavaScript, and Vite. Fonts are local. No backend, accounts, on-site checkout, separate newsletter, or Vercel Analytics.
64
75 ## Setup and preview
⋯
1715
1816 ```sh
1917 npm run build
20- npm run check:seo
2118 ```
2219
23- The check validates metadata, JSON-LD, crawl directives, sitemap coverage, local assets, internal links, and headings on all eleven pages. `seo.config.js` defines canonical paths and metadata. `scripts/seo.mjs` renders them into HTML and generates the sitemap/robots file; `vite.config.js` and the Vercel output routing follow that same registry. See [SEO.md](SEO.md) for search intent, content strategy, crawler policy, measurement, indexing dashboards, and remaining destinations.
20+ Nothing on this site tries to optimize for a search engine (2026-12-02): no sitemap, llms.txt, IndexNow, canonical tags, structured data or search-console verification. `seo.config.js` is just the list of pages with their titles and descriptions.
2421
25- IndexNow: `scripts/indexnow.mjs` runs as the last step of `npm run deploy:prepare` on Vercel. It compares each sitemap page's words with the live page and, on a production deploy, submits only the changed pages so Bing re-reads them within minutes (preview deploys just print the list; local builds do nothing; it never fails a build). Keep `public/66365049776433ceca35572e03fca658.txt`: IndexNow checks it to confirm the site sent the request.
2622
2723 ## Public configuration
2824
⋯
3127 - `VITE_PUBLIC_SOURCE_URL`: owner-designated `https://branchwell.ai/pulsecanvas/app`. The public repository’s current application source is released under the Unlicense. Pinned releases and third-party files retain their own notices and terms.
3228 - `VITE_NEWSLETTER_URL`: the community CTA destination, which defaults to [Project ATOM feedback](https://projectatom.ai/apps?app=pulsecanvas#feedback). This site does not collect emails.
3329 - A self-hosted homepage counter displays aggregate visits without a third-party analytics SDK.
34- - `VITE_WEBSITE_URL`: production origin for the runtime analytics guard. SEO uses the verified canonical origin in `seo.config.js`; update both if moving domains.
30+ - `VITE_WEBSITE_URL`: production origin for the runtime analytics guard. `seo.config.js` holds the same origin; update both if moving domains.
3531 - `VITE_FEATURE_VIDEO_URL`, `VITE_FEATURE_VIDEO_POSTER_URL`, `VITE_FEATURE_CAPTIONS_URL`: optional public HTTPS or site-relative feature media overrides. The video defaults to its R2 URL in `media.config.js`.
3632 - `VITE_WALKTHROUGH_URL`, `VITE_WALKTHROUGH_CAPTIONS_URL`: optional walkthrough overrides. The video defaults to its R2 URL in `media.config.js`. If footage changes, also update the static watch page, transcript, and VideoObject data.
3733 - `VITE_VISUALIZER_MEDIA_BASE_URL`: optional directory for `loops/` media (same filenames as the R2 bucket). Defaults to the R2 media host in `media.config.js`.
⋯
104100
105101 ```sh
106102 npm run deploy:prepare
107- npm run check:seo
108103 vercel deploy --prebuilt --prod --yes --scope protomota
109104 ```
110105

SEO.md deleted

1- # Search and AI discovery
2-
3- ## Strategy
4-
5- The homepage serves people looking for a free **Mac music visualizer** or **music-video maker**. It introduces the app, shows actual footage and screenshots, explains Studio and export, answers common questions, and leads to the configured Mac App Store destination. These are intent targets, not claims of measured keyword volume.
6-
7- The guide hub links to three original, product-specific guides:
8-
9- | Page | Visitor intent | Useful detail |
10- | --- | --- | --- |
11- | `/guides/make-a-music-video-on-mac/` | How to make a music visualizer video on Mac | Soundtrack import, visual controls, project saving, MP4 export |
12- | `/guides/beat-aligned-visuals/` | How to arrange visuals to a song | Beat-grid fallback, individual bars, shared styles, randomization, presentation |
13- | `/guides/export-music-videos/` | Vertical, square, wide and 4K export settings | Exact dimensions, frame rates, audio codec, full-track export |
14- | `/watch/walkthrough/` | Watch the app workflow | Prominent native video player, captions and an HTML transcript |
15-
16- Keep facts synchronized with the application README and package requirements. Add genuinely useful examples when a feature or workflow merits one. Do not generate repetitive pages for slight keyword variations or invent reviews, ratings, availability, integrations, or comparisons. Use one shared Protomota newsletter.
17-
18- ## Implementation
19-
20- `seo.config.js` is the route and metadata registry. The Vite plugin in `scripts/seo.mjs` produces metadata in the initial HTML, canonical URLs, Open Graph/Twitter previews, and JSON-LD. It also generates `robots.txt` and `sitemap.xml`. No client JavaScript is needed for search metadata or guide text. Vite's build inputs and Vercel routing follow the registry. Unknown URLs stay 404.
21-
22- Schema uses Organization, WebSite, WebPage/TechArticle, BreadcrumbList, SoftwareApplication, and VideoObject. App data has a zero-price offer and verified platform requirements. The app has no published ratings or reviews, so none are fabricated; its schema.org data does **not** currently qualify for Google's app rich result, which requires a real rating/review. Video uploadDate is the first website publication timestamp (October 11, 2026, 22:28:23 UTC), verified from the Vercel deployment. Update the video metadata and transcript when replacing footage. The standalone walkthrough page makes video its primary content. Legal pages are kept in the sitemap but are not landing pages for product keywords.
23-
24- `public/images/social-preview-v2.png` is the current 1200×630 share image, generated with the built-in image tool. The previous SVG/PNG remain for reference. `socialImage` in `seo.config.js` defines its URL, dimensions, MIME type, and accessible description. The generation prompt is saved in `output/imagegen/og-prompt.txt`. Website icons are sized WebP derivatives, with a small PNG favicon. Keep original artwork. Assets with Vite hashes receive immutable caching; stable-name media gets a one-day cache. Offscreen video posters and footage are deferred; the hero starts after the initial document loads. All audible videos require a deliberate Play action. Reduced motion still shows posters and retains explicit hero playback.
25-
26- The social image URL includes a version query to avoid retaining an earlier cached missing-image response. Preserve the query in both metadata and review-page links. Deployment preparation generates `/og-review.html` from the packaged metadata, checks that its referenced images exist, and validates SEO against the complete deployment output before publication.
27-
28- ## Crawler access
29-
30- The robots file welcomes normal search and names the AI search, assistant and training crawlers it allows (OpenAI, Anthropic, Perplexity, Google, Apple, Microsoft, Amazon, Meta and others); the list lives in `scripts/seo.mjs`. Naming them changes nothing for a crawler that already followed the general allow rule, but it states the policy plainly. The sitemap contains only canonical HTTPS pages.
31-
32- `/llms.txt` is generated by the same plugin: a plain-text summary of the app, its key facts, and a map of the pages for AI assistants and coding agents. Google's AI search does not use it, and no study shows it changes citations, so treat it as a cheap courtesy and keep its facts in step with the pages. The support page's FAQ is also published as FAQPage data, read from the page's own questions at build time. No new bot bypasses or weakened security protections were added.
33-
34- Cloudflare root and www records are DNS-only, so its proxy crawl controls are outside the serving path. Vercel custom domains have no password/SSO protection. Firewall overview checked October 11: no custom firewall configured, attack mode off, system mitigations active.
35-
36- References:
37- - https://developers.google.com/search/docs/fundamentals/ai-optimization-guide
38- - https://developers.google.com/search/docs/appearance/structured-data/software-app
39- - https://developers.google.com/search/docs/appearance/structured-data/video
40- - https://developers.openai.com/api/docs/bots
41-
42- ## Validation and measurement
43-
44- Run `npm run build` then `npm run check:seo`. The check validates all page titles, unique descriptions, canonicals, share metadata, JSON-LD parsing, internal links/assets, headings, sitemap coverage, and crawler directives. Run `npm run deploy:prepare` for Build Output API routing and asset caching. Review the mobile guides, scrollable export table, native video controls, captions, and keyboard navigation in a real browser.
45-
46- Baseline PageSpeed mobile on October 11, 2026: Performance 73, Accessibility 96, Best Practices 96, SEO 100; FCP 1.4 s, LCP 15.2 s, TBT 0 ms, CLS 0. Report: https://pagespeed.web.dev/analysis/https-pulsecanvas-si/auduqqlake?form_factor=mobile . A Lighthouse SEO score is a basic technical check, not evidence that a content strategy is complete. Post-deployment mobile: Performance 98, Accessibility 100, Best Practices 100, SEO 100; LCP 2.1 s. Report: https://pagespeed.web.dev/analysis/https-pulsecanvas-si/1bobsvqti5?form_factor=mobile . Full results and provider status are in VALIDATION.md. Field Core Web Vitals need real visitor data; do not substitute lab scores for field performance.
47-
48- ## Indexing dashboards
49-
50- Google domain ownership was verified with a Cloudflare TXT record. Retain that record to retain ownership. Google Search Console:
51- - Overview: https://search.google.com/search-console?resource_id=sc-domain%3Apulsecanvas.si
52- - Sitemaps: https://search.google.com/search-console/sitemaps?resource_id=sc-domain%3Apulsecanvas.si
53- - Performance: https://search.google.com/search-console/performance/search-analytics?resource_id=sc-domain%3Apulsecanvas.si
54- - Core Web Vitals: https://search.google.com/search-console/core-web-vitals?resource_id=sc-domain%3Apulsecanvas.si
55-
56- Bing property: https://www.bing.com/webmasters?siteUrl=https%3A%2F%2Fpulsecanvas.si%2F . Its `msvalidate.01` tag is rendered on the homepage. Sitemap: https://pulsecanvas.si/sitemap.xml . Bing processed the sitemap successfully and discovered nine URLs. Google accepted submission but its sitemap table still shows Couldn't fetch; its separate live test fetched the complete XML successfully. Homepage reindexing was accepted. See VALIDATION.md for the exact results; do not equate submitted with indexed.
57-
58- After launch, inspect the homepage and each guide in Search Console, submit the sitemap, and review indexing issues. Review impressions, clicks, query intent and relevant countries monthly. The aggregate homepage counter does not measure individual guide performance or clicks. Search crawling, ranking, and AI citations are decisions made by their providers; submission is not guaranteed inclusion. No recurring automation or additional analytics service is installed.
59-
60- ## Remaining product destinations
61-
62- The owner has not provided the actual Mac App Store URL. Configure `VITE_MAC_APP_STORE_URL` when supplied and update any availability text as appropriate. The public application repository is https://github.com/projectatomai/pulsecanvas, verified October 13, 2026. Its application code is open source under the MIT license. Creators Edition uses the real release manifest and immutable installer/source URLs.
63-
64- ## Checking pending Google processing
65-
66- No repeated submission is needed while the accepted requests process. If the sitemap error remains after processing, use the verified domain property rather than creating duplicates:
67-
68- 1. Open https://search.google.com/search-console/sitemaps?resource_id=sc-domain%3Apulsecanvas.si while signed in to the owner account. Click the `https://pulsecanvas.si/sitemap.xml` row to read its latest status and Last read.
69- 2. In the top URL inspection box, enter `https://pulsecanvas.si/sitemap.xml` and press Enter. Click **Test live URL**, then **View tested page → Source**. Confirm the response contains the XML urlset and nine canonical URLs; do not request indexing of the sitemap as if it were an HTML page.
70- 3. If the live fetch fails, inspect deployment routing and crawler access before changing security or repeatedly submitting. If it succeeds, preserve the valid sitemap and allow the report to refresh.
71- 4. For homepage crawl status, inspect `https://pulsecanvas.si/` in the same URL inspection box. The October 11 refresh request is already queued.
72- 5. Settings/crawl reports: https://search.google.com/search-console/settings?resource_id=sc-domain%3Apulsecanvas.si . The new property currently has no crawl/robots report; Search generative AI is set to Include.

compare/index.html changed

1111 <tr><th scope="row">What it is</th><td>A music visualizer and video maker that arranges scenes to the beat of a song.</td><td>A Mac app that turns system audio or microphone input into real-time visuals.</td><td>A free audio visualization creator for making videos from an audio file.</td><td>An open-source library that brings back Winamp’s MilkDrop visualizer, with preview apps.</td></tr>
1212 <tr><th scope="row">Runs on</th><td>Apple silicon Mac on macOS 14 or later, plus iPhone and iPad on iOS 18 or later and Apple Vision Pro through the TestFlight beta.</td><td>Apple silicon Mac on macOS 15 or later.</td><td>Windows and Linux. There is no Mac build.</td><td>Windows, macOS, Linux and Android, as preview apps.</td></tr>
1313 <tr><th scope="row">Video export</th><td>MP4 with audio, up to 4K at 60 fps, on wide, landscape, portrait, phone and square canvases.</td><td>Yes, in the Creator tier.</td><td>MP4, at the resolution and frame rate you set.</td><td>Not listed for its apps. A separate plugin renders offline.</td></tr>
14- <tr><th scope="row">Source</th><td>Open source on GitHub, public domain (Unlicense).</td><td>Not stated.</td><td>Open source under GPL 3.0 or later.</td><td>Open source under LGPL 2.1.</td></tr>
14+ <tr><th scope="row">Source</th><td>Open source on Branchwell, public domain (Unlicense).</td><td>Not stated.</td><td>Open source under GPL 3.0 or later.</td><td>Open source under LGPL 2.1.</td></tr>
1515 </tbody>
1616 </table>
1717 </div></section>

index.html changed

663663 </div>
664664 </section>
665665 </main>
666- <!-- branch-note --><link rel="stylesheet" href="/branch-note.css"><section class="branch-note" id="branch" aria-labelledby="branch-h"><div class="bn-box"><p class="bn-eye">We're open source</p><h2 id="branch-h">Make your own&nbsp;branch</h2><p>Anyone can make their own branch of PulseCanvas without asking us, and can ship it under a different name. We're fully open source: our designs, research and specs are public domain, free for anyone to use, copy and&nbsp;change.</p></div></section><!-- /branch-note -->
666+ <!-- branch-note --><link rel="stylesheet" href="/branch-note.css"><section class="branch-note" id="branch" aria-labelledby="branch-h"><div class="bn-box"><p class="bn-eye">Open model</p><h2 id="branch-h">Start your&nbsp;own</h2><p>Anyone can start their own PulseCanvas without asking us, and can ship it under a different name. We have an open model: our designs, research and specs are public domain, free for anyone to use, copy and&nbsp;change.</p></div></section><!-- /branch-note -->
667667 <!-- site-footer -->
668668 <dialog id="image-dialog" aria-labelledby="image-dialog-caption">
669669 <button class="dialog-close" aria-label="Close screenshot">

media.config.js changed

11 // The films play from our Cloudflare R2 bucket at media.protomota.com/video/<slug>/ (1080p, and 720p
2- // on phones; the owner 2026-11-27: all videos are off YouTube). Section video loops and the app
2+ // on phones; Brad 2026-11-27: all videos are off YouTube). Section video loops and the app
33 // installers still come from the pulsecanvas-media Cloudflare R2 bucket.
44 // R2 copies are cached for a year, so a new loop cut needs a new filename (see "Website videos" in README.md).
55 export const mediaBaseUrl = 'https://media.pulsecanvas.si';

package.json changed

1212 "preview": "vite preview --host 127.0.0.1 --port 3010 --strictPort",
1313 "videos:optimize": "node scripts/optimize-videos.mjs",
1414 "check:media": "node scripts/check-media.mjs",
15- "deploy:prepare": "npm run check:media && vite build && node scripts/prepare-deploy.mjs && node scripts/indexnow.mjs .vercel/output/static/sitemap.xml .vercel/output/static",
16- "check:seo": "python3 scripts/check-seo.py",
17- "cf:build": "npm run check:media && vite build && node scripts/prepare-cloudflare.mjs && node scripts/indexnow.mjs dist/sitemap.xml dist"
15+ "deploy:prepare": "npm run check:media && vite build && node scripts/prepare-deploy.mjs",
16+ "cf:build": "npm run check:media && vite build && node scripts/prepare-cloudflare.mjs"
1817 },
1918 "devDependencies": {
2019 "vite": "8.3.4"

privacy/index.html changed

5454 <section>
5555 <h2>Services you choose to visit</h2>
5656 <p>The direct-download edition uses Sparkle to check for signed updates. New versions use pulsecanvas.ai; earlier versions may still check pulsecanvas.si. The update service receives routine network request information, including your IP address and app version. System profiling is disabled. Automatic update checks can be disabled in app Settings. The iPhone and iPad app does not include Sparkle.</p>
57- <p>Apple handles TestFlight and optional diagnostic information under <a href="https://www.apple.com/legal/privacy/">Apple’s privacy practices</a> and your device settings. GitHub handles visits to its site under its own policy.</p>
57+ <p>Apple handles TestFlight and optional diagnostic information under <a href="https://www.apple.com/legal/privacy/">Apple’s privacy practices</a> and your device settings.</p>
5858
5959 </section>
6060 <section id="contact">

public-links.js changed

1010 }
1111
1212 export function configurePublicLinks() {
13- const sourceUrl = httpsUrl(siteConfig.sourceUrl, 'https://github.com/projectatomai/pulsecanvas');
13+ const sourceUrl = httpsUrl(siteConfig.sourceUrl, 'https://branchwell.ai/pulsecanvas/app');
1414 const newsletterUrl = httpsUrl(siteConfig.newsletterUrl, '/download/');
1515 document.querySelectorAll('[data-source]').forEach(link => { link.href = sourceUrl; });
1616 document.querySelectorAll('[data-newsletter]').forEach(link => { link.href = newsletterUrl; });

public/66365049776433ceca35572e03fca658.txt deleted

1- 66365049776433ceca35572e03fca658

public/appcast.xml changed

7070 <item>
7171 <title>PulseCanvas Studio Creators Edition 1.1.4 (21)</title>
7272 <pubDate>Fri, 16 Oct 2026 16:50:41 +0000</pubDate>
73- <description>The built-in demo song now says “Source on GitHub”, matching PulseCanvas's license. Everything else is unchanged: Radio, favorites, the Creators update button, 270 native Metal visualizers and 7,758 community effects.</description>
73+ <description>The built-in demo song now credits the open source, matching the PulseCanvas license. Everything else is unchanged: Radio, favorites, the Creators update button, 270 native Metal visualizers and 7,758 community effects.</description>
7474 <sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
7575 <enclosure url="https://pulsecanvas.ai/downloads/PulseCanvas-Studio-1.1.4-21.dmg" length="37239599" type="application/octet-stream" sparkle:version="21" sparkle:shortVersionString="1.1.4" sparkle:edSignature="S5nAdDbzuK+IyuBjWx5pfWukpSfuDYzOld5l4W7eG8lqme8bnjb7BAuBQPtW2/LKFiBi02rJS+McQgwRc/tAAw==" />
7676 </item>

public/assets/visitor-odometer.v1.js changed

55 const selector = '[data-visitor-odometer][data-visitor-site]';
66 const siteIDs = new Set(['projectatom', 'protomota', 'airesourcepro', 'skillfarm', 'portfolio', 'opentalon', 'inkspring', 'jotley',
77 'glimmer', 'pulsecanvas', 'graphley', 'bucksley', 'jobley', 'voxley', 'textley', 'moontrace', 'sunlaid', 'cypress', 'lightwell', 'lumengesso', 'clearwake', 'krahn', 'chewandrinse', 'carryspan', 'commonwakemarine', 'rootwardgardens', 'evenharbor', 'clearmeadow', 'fieldofwhy',
8- 'watchencyclopedia', 'paywell', 'makeaclip', 'groundroom', 'brightpatchstories', 'calendarley', 'champagnedamage',
9- 'neverwastv', 'noctvrne', 'otherworldvision', 'quillflow', 'tradenook', 'trendii', 'vexley', 'laceless', 'kindpaw', 'petgrove',
10- 'homegrove', 'cyclical', 'commongrocer', 'brightiris', 'homeandroad', 'clothworks', 'jotkey']);
8+ 'watchencyclopedia', 'paywell', 'makeaclip', 'groundroom', 'calendarley',
9+ 'tradenook', 'vexley', 'laceless', 'kindpaw', 'petgrove',
10+ 'homegrove', 'cyclical', 'commongrocer', 'brightiris', 'homeandroad', 'clothworks']);
1111 const pending = new Map();
1212 const minimumDigits = 7;
1313 const ordinal = n => Number.isSafeInteger(n) && n > 0;

public/feature-v6.vtt deleted

1- WEBVTT
2-
3- 00:00:00.105 --> 00:00:01.045
4- Press play.
5-
6- 00:00:01.275 --> 00:00:02.725
7- Watch your music move.
8-
9- 00:00:04.965 --> 00:00:07.825
10- Hundreds of visual worlds, built on Metal.
11-
12- 00:00:08.740 --> 00:00:09.740
13- Pick a palette.
14-
15- 00:00:10.615 --> 00:00:12.010
16- Turn up the chaos.
17-
18- 00:00:14.445 --> 00:00:16.620
19- Arrange every scene on the beat.
20-
21- 00:00:18.160 --> 00:00:18.910
22- Wide.
23-
24- 00:00:19.135 --> 00:00:19.960
25- Vertical.
26-
27- 00:00:20.100 --> 00:00:21.075
28- Square.
29-
30- 00:00:21.100 --> 00:00:23.925
31- Up to 4K at sixty frames per second.
32-
33- 00:00:24.000 --> 00:00:25.690
34- One hundred percent free.
35-
36- 00:00:25.830 --> 00:00:27.535
37- Every feature included.
38-
39- 00:00:27.825 --> 00:00:29.610
40- Source available on GitHub.
41-
42- 00:00:30.025 --> 00:00:31.540
43- PulseCanvas Studio.
44-
45- 00:00:31.540 --> 00:00:32.510
46- Your music.
47-
48- 00:00:32.510 --> 00:00:33.780
49- Your visual world.

public/feature.vtt deleted

1- WEBVTT
2-
3- 00:00:00.105 --> 00:00:01.095
4- Press play.
5-
6- 00:00:01.275 --> 00:00:02.775
7- Watch your music move.
8-
9- 00:00:04.965 --> 00:00:07.875
10- Hundreds of visual worlds, built on Metal.
11-
12- 00:00:08.740 --> 00:00:09.790
13- Pick a palette.
14-
15- 00:00:10.615 --> 00:00:12.060
16- Turn up the chaos.
17-
18- 00:00:14.445 --> 00:00:16.670
19- Arrange every scene on the beat.
20-
21- 00:00:18.160 --> 00:00:18.960
22- Wide.
23-
24- 00:00:19.135 --> 00:00:20.010
25- Vertical.
26-
27- 00:00:20.100 --> 00:00:21.125
28- Square.
29-
30- 00:00:21.100 --> 00:00:23.975
31- Up to 4K at sixty frames per second.
32-
33- 00:00:24.000 --> 00:00:25.740
34- 100% free.
35-
36- 00:00:25.830 --> 00:00:27.585
37- Every feature included.
38-
39- 00:00:27.825 --> 00:00:29.660
40- Source available on GitHub.
41-
42- 00:00:30.025 --> 00:00:31.715
43- PulseCanvas Studio.
44-
45- 00:00:31.540 --> 00:00:32.580
46- Your music.
47-
48- 00:00:32.510 --> 00:00:33.830
49- Your visual world.

public/research/research.css changed

1- /* Base layout the research page used to load from the old careers stylesheet. */
2- .cr{max-width:640px;margin:0 auto;padding:72px 20px 64px;color:inherit;box-sizing:border-box}
3- .cr-home{display:inline-block;margin-bottom:28px;color:inherit;opacity:.75;text-decoration:none;font-size:15px}
4- .cr-home:hover{opacity:1}
5- .cr h1{font-size:clamp(34px,6vw,52px);line-height:1.1;margin:0 0 18px}
6- .cr p{font-size:18px;line-height:1.6;margin:0 0 14px}
7- .cr-bonus{font-weight:600}
8- .cr form{margin-top:30px;display:grid;gap:12px}
9- .cr label{font-weight:600;font-size:16px}
10- .cr textarea{width:100%;box-sizing:border-box;min-height:160px;padding:14px 16px;border-radius:14px;border:1px solid rgba(128,128,128,.45);background:rgba(128,128,128,.08);color:inherit;font:inherit;font-size:17px;line-height:1.5;resize:vertical}
11- .cr textarea:focus{outline:2px solid currentColor;outline-offset:2px}
12- .cr button{justify-self:start;padding:12px 28px;border-radius:999px;border:1.5px solid currentColor;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:16px;font-weight:600}
13- .cr button:hover{background:rgba(128,128,128,.14)}
14- .cr button[disabled]{opacity:.6;cursor:default}
15- .cr-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
16- .cr-msg{min-height:1.6em;font-size:16px;margin:4px 0 0}
17-
181 /* Research pages (tools/research-gen). Neutral colors from currentColor so each site's own theme shows through. */
192 .rs{max-width:1120px!important;margin:0 auto;padding:56px 24px 72px;box-sizing:border-box;color:inherit}
203 .rs *{box-sizing:border-box}
⋯
8063 .rs-tree>ul>li>ul>li li::before,.rs-tree>ul>li>ul>li li::after{display:none}
8164 .rs-tree>ul>li>ul>li li span{font-size:13px;padding:5px 10px;border-style:dashed}
8265 }
66+ @media(min-width:760px){.rs-flow.rs-flow-3{grid-template-columns:repeat(3,1fr)}}
67+ .rs-flow.rs-flow-3 li:nth-child(3n)::after{display:none}
68+ .rs-selforg{font-size:1.08em;line-height:1.6;max-width:62ch}
69+ .rs-net{max-width:560px;margin:18px auto 8px}
70+ .rs-net-svg{display:block;width:100%;height:auto;overflow:visible}
71+ .rs-circles{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
72+ .rs-circles>li{border:1px solid rgba(128,128,128,.4);border-radius:18px;padding:14px 16px;background:rgba(128,128,128,.06)}
73+ .rs-circles>li>b{display:block;font-size:16px}
74+ .rs-circles ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
75+ .rs-circles ul li{font-size:13px;border:1px dashed rgba(128,128,128,.55);border-radius:999px;padding:4px 10px}
8376 .rs-cols{display:grid;gap:14px;margin:32px 0 0}
8477 @media(min-width:720px){.rs-cols{grid-template-columns:1fr 1fr}}
8578 .rs-card{border-radius:18px;padding:4px 22px 18px;background:rgba(128,128,128,.07)}
⋯
107100 .rs-updated{font-size:14px;opacity:.65;margin-top:28px}
108101 .rs-topics small{opacity:.6;margin-left:4px}
109102 .rs-topic{margin-top:44px;padding-top:8px;border-top:1px solid rgba(128,128,128,.25)}
103+ .rs-num{counter-reset:n}.rs-num li{counter-increment:n}.rs-num li::before{content:counter(n)"."!important}
104+ .rs-services{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
105+ .rs-services li{border:1px solid rgba(128,128,128,.32);border-radius:16px;padding:14px 18px;background:rgba(128,128,128,.05);font-size:16px;line-height:1.55}
106+ .rs-services a{display:block;font-weight:700;font-size:18px;color:inherit;margin-bottom:4px}
107+ .rs-services span{opacity:.85}

public/song-v4.vtt deleted

1- WEBVTT
2-
3- 00:00:00.200 --> 00:00:03.600
4- You've seen the videos where the screen hits with the snare.
5-
6- 00:00:04.250 --> 00:00:06.800
7- Wanna make your own for free?
8-
9- 00:00:07.250 --> 00:00:09.100
10- Stay right there.
11-
12- 00:00:15.450 --> 00:00:19.600
13- It's called PulseCanvas Studio, and it runs on your Mac.
14-
15- 00:00:19.680 --> 00:00:22.700
16- Source on GitHub, no subscription attached.
17-
18- 00:00:22.730 --> 00:00:26.320
19- Drop in your song, pick a look. Press play.
20-
21- 00:00:26.350 --> 00:00:29.820
22- Thousands of presets moving straight away.
23-
24- 00:00:29.850 --> 00:00:32.160
25- Every kick sends a wave through it.
26-
27- 00:00:32.190 --> 00:00:34.330
28- Flip the strobe and the hats go white.
29-
30- 00:00:34.360 --> 00:00:36.300
31- No keyframes, no hassle.
32-
33- 00:00:36.330 --> 00:00:38.380
34- Your song paints the light.
35-
36- 00:00:38.410 --> 00:00:42.200
37- Your song already knows what it looks like.
38-
39- 00:00:42.850 --> 00:00:46.200
40- PulseCanvas just turns on the lights.
41-
42- 00:00:50.890 --> 00:00:52.700
43- PulseCanvas.
44-
45- 00:00:53.340 --> 00:00:55.200
46- PulseCanvas.
47-
48- 00:00:58.590 --> 00:01:04.820
49- Five palettes, from Ultraviolet to Emberlight.
50-
51- 00:01:04.850 --> 00:01:06.820
52- Zoom it, spin it, blur it.
53-
54- 00:01:06.850 --> 00:01:08.320
55- Turn the Chaos up high.
56-
57- 00:01:08.350 --> 00:01:09.840
58- Can't decide?
59-
60- 00:01:09.870 --> 00:01:12.320
61- Hit randomize and roll the dice.
62-
63- 00:01:12.350 --> 00:01:16.240
64- A new look every click and you never pay a price.
65-
66- 00:01:16.270 --> 00:01:17.810
67- Vertical for TikTok,
68-
69- 00:01:17.840 --> 00:01:18.820
70- square for the feed,
71-
72- 00:01:18.850 --> 00:01:19.820
73- widescreen for YouTube,
74-
75- 00:01:19.850 --> 00:01:20.830
76- whatever you need.
77-
78- 00:01:20.860 --> 00:01:22.320
79- Up to 4K at sixty,
80-
81- 00:01:22.350 --> 00:01:23.930
82- every frame on the beat.
83-
84- 00:01:23.960 --> 00:01:28.180
85- Export the MP4 and your post is complete.
86-
87- 00:01:28.210 --> 00:01:31.700
88- Your song already knows what it looks like.
89-
90- 00:01:32.350 --> 00:01:36.200
91- PulseCanvas just turns on the lights.
92-
93- 00:01:40.430 --> 00:01:42.200
94- PulseCanvas.
95-
96- 00:01:42.350 --> 00:01:44.700
97- PulseCanvas.
98-
99- 00:01:51.390 --> 00:01:54.820
100- You made the song, you put in the time.
101-
102- 00:01:54.850 --> 00:01:58.740
103- Now let PulseCanvas make it shine.
104-
105- 00:01:58.770 --> 00:01:59.840
106- No monthly plan.
107-
108- 00:01:59.870 --> 00:02:00.830
109- No watermark.
110-
111- 00:02:00.860 --> 00:02:02.200
112- No fee.
113-
114- 00:02:02.850 --> 00:02:04.830
115- Just your music on the screen,
116-
117- 00:02:04.860 --> 00:02:07.200
118- and it's free.
119-
120- 00:02:13.910 --> 00:02:17.200
121- Your song already knows what it looks like.
122-
123- 00:02:17.850 --> 00:02:21.200
124- PulseCanvas just turns on the lights.
125-
126- 00:02:26.130 --> 00:02:27.820
127- PulseCanvas.
128-
129- 00:02:27.850 --> 00:02:30.200
130- PulseCanvas.
131-
132- 00:02:33.950 --> 00:02:36.200
133- PulseCanvas Studio.
134-
135- 00:02:37.850 --> 00:02:40.310
136- Free on the Mac App Store.
137-
138- 00:02:40.340 --> 00:02:44.200
139- Go add a soundtrack
140-
141- 00:02:44.850 --> 00:02:47.200
142- and put on a show.

public/song.vtt deleted

1- WEBVTT
2-
3- 00:00:00.200 --> 00:00:03.600
4- You've seen the videos where the screen hits with the snare.
5-
6- 00:00:04.250 --> 00:00:06.800
7- Wanna make your own for free?
8-
9- 00:00:07.250 --> 00:00:09.100
10- Stay right there.
11-
12- 00:00:15.450 --> 00:00:19.600
13- It's called PulseCanvas Studio, and it runs on your Mac.
14-
15- 00:00:19.680 --> 00:00:22.700
16- Source on GitHub, no subscription attached.
17-
18- 00:00:22.730 --> 00:00:26.320
19- Drop in your song, pick a look. Press play.
20-
21- 00:00:26.350 --> 00:00:29.820
22- Thousands of presets moving straight away.
23-
24- 00:00:29.850 --> 00:00:32.160
25- Every kick sends a wave through it.
26-
27- 00:00:32.190 --> 00:00:34.330
28- Flip the strobe and the hats go white.
29-
30- 00:00:34.360 --> 00:00:36.300
31- No keyframes, no hassle.
32-
33- 00:00:36.330 --> 00:00:38.380
34- Your song paints the light.
35-
36- 00:00:38.410 --> 00:00:42.200
37- Your song already knows what it looks like.
38-
39- 00:00:42.850 --> 00:00:46.200
40- PulseCanvas just turns on the lights.
41-
42- 00:00:50.890 --> 00:00:52.700
43- PulseCanvas.
44-
45- 00:00:53.340 --> 00:00:55.200
46- PulseCanvas.
47-
48- 00:00:58.590 --> 00:01:04.820
49- Five palettes, from Ultraviolet to Emberlight.
50-
51- 00:01:04.850 --> 00:01:06.820
52- Zoom it, spin it, blur it.
53-
54- 00:01:06.850 --> 00:01:08.320
55- Turn the Chaos up high.
56-
57- 00:01:08.350 --> 00:01:09.840
58- Can't decide?
59-
60- 00:01:09.870 --> 00:01:12.320
61- Hit randomize and roll the dice.
62-
63- 00:01:12.350 --> 00:01:16.240
64- A new look every click and you never pay a price.
65-
66- 00:01:16.270 --> 00:01:17.810
67- Vertical for TikTok,
68-
69- 00:01:17.840 --> 00:01:18.820
70- square for the feed,
71-
72- 00:01:18.850 --> 00:01:19.820
73- widescreen for YouTube,
74-
75- 00:01:19.850 --> 00:01:20.830
76- whatever you need.
77-
78- 00:01:20.860 --> 00:01:22.320
79- Up to 4K at sixty,
80-
81- 00:01:22.350 --> 00:01:23.930
82- every frame on the beat.
83-
84- 00:01:23.960 --> 00:01:28.180
85- Export the MP4 and your post is complete.
86-
87- 00:01:28.210 --> 00:01:31.700
88- Your song already knows what it looks like.
89-
90- 00:01:32.350 --> 00:01:36.200
91- PulseCanvas just turns on the lights.
92-
93- 00:01:40.430 --> 00:01:42.200
94- PulseCanvas.
95-
96- 00:01:42.350 --> 00:01:44.700
97- PulseCanvas.
98-
99- 00:01:51.390 --> 00:01:54.820
100- You made the song, you put in the time.
101-
102- 00:01:54.850 --> 00:01:58.740
103- Now let PulseCanvas make it shine.
104-
105- 00:01:58.770 --> 00:01:59.840
106- No monthly plan.
107-
108- 00:01:59.870 --> 00:02:00.830
109- No watermark.
110-
111- 00:02:00.860 --> 00:02:02.200
112- No fee.
113-
114- 00:02:02.850 --> 00:02:04.830
115- Just your music on the screen,
116-
117- 00:02:04.860 --> 00:02:07.200
118- and it's free.
119-
120- 00:02:13.910 --> 00:02:17.200
121- Your song already knows what it looks like.
122-
123- 00:02:17.850 --> 00:02:21.200
124- PulseCanvas just turns on the lights.
125-
126- 00:02:26.130 --> 00:02:27.820
127- PulseCanvas.
128-
129- 00:02:27.850 --> 00:02:30.200
130- PulseCanvas.
131-
132- 00:02:33.950 --> 00:02:36.200
133- PulseCanvas Studio.
134-
135- 00:02:37.850 --> 00:02:40.310
136- Free on the Mac App Store.
137-
138- 00:02:40.340 --> 00:02:44.200
139- Go add a soundtrack
140-
141- 00:02:44.850 --> 00:02:47.200
142- and put on a show.

public/tutorial.vtt deleted

1- WEBVTT
2-
3- 00:00:00.735 --> 00:00:03.950
4- This is PulseCanvas Studio, Creators edition.
5-
6- 00:00:03.965 --> 00:00:07.784
7- It's the free download for Mac with the full effects library.
8-
9- 00:00:07.585 --> 00:00:10.196
10- Let's turn a song into a music video.
11-
12- 00:00:11.030 --> 00:00:12.573
13- Start with the music.
14-
15- 00:00:12.520 --> 00:00:17.268
16- Press Play, scrub to any moment, and leave Loop on while you explore.
17-
18- 00:00:17.225 --> 00:00:20.812
19- To use your own song, click Replace audio.
20-
21- 00:00:21.495 --> 00:00:23.468
22- Open Library for everything:
23-
24- 00:00:23.759 --> 00:00:29.168
25- our own visualizers, plus thousands of effects from the projectM library.
26-
27- 00:00:28.880 --> 00:00:34.545
28- Search by name, creator or folder, pick a category and subfolder, and tap the
29-
30- 00:00:34.441 --> 00:00:36.460
31- heart to save a favorite.
32-
33- 00:00:36.185 --> 00:00:38.564
34- Surprise me picks from your results.
35-
36- 00:00:39.360 --> 00:00:43.167
37- Back up favorites saves your hearts to a file you can take to another
38-
39- 00:00:43.064 --> 00:00:46.662
40- Mac, and the app keeps its own daily backup too.
41-
42- 00:00:47.260 --> 00:00:49.871
43- Visual style works on every effect.
44-
45- 00:00:49.810 --> 00:00:55.150
46- Pick a palette, set motion and zoom speed, and use Chaos to decide how
47-
48- 00:00:55.093 --> 00:00:56.972
49- hard it hits on the beat.
50-
51- 00:00:56.855 --> 00:01:00.906
52- The dice randomizes the style, and Reset brings it back.
53-
54- 00:01:01.595 --> 00:01:06.946
55- In Studio, PulseCanvas finds the beat and splits your song into sections.
56-
57- 00:01:06.805 --> 00:01:12.098
58- Pick any effect, or one of your favorites, for each section, set its bars,
59-
60- 00:01:12.099 --> 00:01:15.779
61- and Randomize timeline when you want a fresh mix.
62-
63- 00:01:16.200 --> 00:01:19.183
64- Radio plays music and visuals on shuffle.
65-
66- 00:01:19.355 --> 00:01:23.627
67- Heart a song to keep it, and your favorite songs play first, with your
68-
69- 00:01:23.535 --> 00:01:26.471
70- favorite visualizers leading each one.
71-
72- 00:01:26.440 --> 00:01:30.352
73- Find saved songs in Library, under Favorite songs.
74-
75- 00:01:31.000 --> 00:01:33.286
76- Click Present for full screen.
77-
78- 00:01:33.235 --> 00:01:36.125
79- Space pauses, and Escape takes you back.
80-
81- 00:01:36.885 --> 00:01:44.698
82- In Project settings, choose wide, landscape, portrait, phone or square, up to 4K.
83-
84- 00:01:44.675 --> 00:01:49.736
85- Save video renders every frame with your full soundtrack, and Show in Finder takes
86-
87- 00:01:49.632 --> 00:01:51.512
88- you to your MP4.
89-
90- 00:01:52.100 --> 00:01:55.779
91- Save project keeps your timeline and settings for next time.
92-
93- 00:01:55.685 --> 00:02:00.665
94- PulseCanvas Studio is free to download, and its source is available on GitHub.

research-pages/research/img/detail.webp deleted

Not a text file.

research-pages/research/img/hero.webp deleted

Not a text file.

research-pages/research/img/how.webp deleted

Not a text file.

research-pages/research/img/team.webp deleted

Not a text file.

research/index.html changed

2020 </header>
2121 <main class="cr rs" id="main">
2222 <a class="cr-home" href="/">&larr; PulseCanvas</a>
23- <header class="rs-hero has-img"><div class="rs-hero-text"><p class="rs-eyebrow">Research</p><h1>Research</h1><p class="rs-intro">Public research on hearing the beat in music and turning sound into pictures.</p><p class="rs-lede">Everything about how PulseCanvas works is on this page: the steps, the team, what we have decided, and how to start your own. Then the public research behind it, with a link to every source.</p></div><figure class="rs-hero-fig"><img src="/research/img/hero.webp" alt="A dark room filled with colorful abstract light visuals projected on a wall" fetchpriority="high" decoding="async"></figure></header>
24- <nav class="rs-jump" aria-label="On this page"><a href="#how">How it works</a><a href="#team">How we're organized</a><a href="#copy">Start your own</a><a href="#sources">The research</a></nav>
25- <div class="rs-glance"><div><b>4</b><span>steps from start to finish</span></div><div><b>4</b><span>teams</span></div><div><b>25</b><span>public sources</span></div><div><b>CC0</b><span>free to copy and share</span></div></div>
23+ <header class="rs-hero has-img"><div class="rs-hero-text"><p class="rs-eyebrow">Research</p><h1>Research</h1><p class="rs-intro">Public research on hearing the beat in music and turning sound into pictures.</p><p class="rs-lede">Everything about how PulseCanvas works is on this page: the steps, what we have decided, and how to start your own. Then the public research behind it, with a link to every source.</p></div><figure class="rs-hero-fig"><img src="/research/img/hero.webp" alt="A dark room filled with colorful abstract light visuals projected on a wall" fetchpriority="high" decoding="async"></figure></header>
24+ <nav class="rs-jump" aria-label="On this page"><a href="#how">How it works</a><a href="#costs">What it costs</a><a href="#setup">How to set one up</a><a href="#copy">Start your own</a><a href="#sources">The research</a></nav>
25+ <div class="rs-glance"><div><b>4</b><span>steps from start to finish</span></div><div><b>25</b><span>public sources</span></div><div><b>CC0</b><span>free to copy and share</span></div></div>
2626 <section class="rs-plan" aria-labelledby="plan">
27- <h2 id="plan" class="rs-h2">How PulseCanvas works</h2>
27+ <h2 id="plan" class="rs-h2">Our open model: how PulseCanvas works</h2>
2828 <p class="rs-status"><strong>Where we are:</strong> Free for Mac.</p>
2929 <div class="rs-split"><div><p>PulseCanvas turns your music into a visual world. Explore visualizers, arrange beat-aligned scenes, and export music videos up to 4K.</p><p>We build it in the open, keep it free with no nag screens, and let the research on this page shape the design.</p></div><figure class="rs-fig"><img src="/research/img/detail.webp" alt="Close-up of a speaker cone vibrating with colorful light reflections" loading="lazy" decoding="async"></figure></div>
3030 <h3 class="rs-h3" id="how">How it works</h3><ol class="rs-flow">
⋯
3333 <li><b>Arrange</b><span>Place scenes that move with the music.</span></li>
3434 <li><b>Export</b><span>Render a music video up to 4K.</span></li>
3535 </ol>
36- <div class="rs-split rs-flip"><div><h3 class="rs-h3" id="earn">How it keeps going</h3><p>It is free. It is built and kept going by our own small team, with no ads and no selling of anyone&#x27;s data.</p></div><figure class="rs-fig"><img src="/research/img/how.webp" alt="A musician at a laptop and keyboard with glowing abstract visuals on a monitor" loading="lazy" decoding="async"></figure></div>
37- <h3 class="rs-h3" id="team">How we're organized</h3>
38- <div class="rs-tree" role="img" aria-label="Team chart for PulseCanvas"><ul><li><span>PulseCanvas</span><ul><li><span>Visual engine</span></li><li><span>Beat detection</span></li><li><span>Mac app</span></li><li><span>Research</span></li></ul></li></ul></div>
39- <p class="rs-small">Everyone on the team grows through the same three levels: Explorer (starting out), Builder (growing) and Guide (on the way to mastery).</p>
40- <figure class="rs-fig rs-wide-fig"><img src="/research/img/team.webp" alt="Friends watching a vivid music visualizer at a small party" loading="lazy" decoding="async"></figure>
36+ <div class="rs-split rs-flip"><div><h3 class="rs-h3" id="earn">How it pays for itself</h3><p>It is free, with no ads and no selling of anyone&#x27;s data. It belongs to everyone, and anyone can help build it.</p></div><figure class="rs-fig"><img src="/research/img/how.webp" alt="A musician at a laptop and keyboard with glowing abstract visuals on a monitor" loading="lazy" decoding="async"></figure></div>
37+ <div class="rs-cols"><div class="rs-card"><h3 class="rs-h3" id="costs">What it costs to run</h3><ul class="rs-bullets rs-arrows"><li>Our own time to design, build and test each release.</li><li>Web hosting for the site and downloads.</li><li>Developer memberships with the app stores we publish on.</li><li>Test devices.</li></ul></div><div class="rs-card"><h3 class="rs-h3" id="setup">How to set one up</h3><ol class="rs-bullets rs-num"><li><b>Get the code.</b> Every line is open. Download it and build it on your own computer.</li><li><b>Make it yours.</b> Change the name, the look and anything else you like.</li><li><b>Publish.</b> Sign it with your own developer account and share it.</li><li><b>Keep it free.</b> No ads and no selling of data: that is what keeps people trusting it.</li></ol></div></div>
4138 <div class="rs-cols"><div class="rs-card"><h3 class="rs-h3">What we've decided</h3><ul class="rs-bullets rs-checks"><li>Your music stays yours.</li><li>Free, with no watermark.</li></ul></div><div class="rs-card"><h3 class="rs-h3">What comes next</h3><ul class="rs-bullets rs-arrows"><li>More scenes and visualizers.</li></ul></div></div>
4239 <h3 class="rs-h3" id="copy">Start your own</h3><p>Nothing here is secret. Anyone can copy how PulseCanvas works and open their own version.</p><ol class="rs-steps">
4340 <li><b>Read this page</b><span>Everything about how PulseCanvas works is here and in the public sources below. Our designs, specs and plans are public domain.</span></li>
4441 <li><b>Pick your name and place</b><span>Choose your own name and where you will start. You do not need to ask us, and you do not need to call it PulseCanvas.</span></li>
45- <li><b>Build the team</b><span>Start with the roles in the chart above. One person can hold several roles at first.</span></li>
4642 <li><b>Follow the steps</b><span>Run it the way the &quot;How it works&quot; steps describe, then improve on it.</span></li>
4743 <li><b>Share back</b><span>Publish what you learn, so the next person can start further ahead.</span></li>
4844 </ol></section>

scripts/check-seo.py deleted

1- """Validate built metadata, structured data, assets, sitemap, and internal links."""
2- from html.parser import HTMLParser
3- from pathlib import Path
4- from urllib.parse import urlsplit, unquote, urljoin
5- import json
6- import struct
7- import sys
8- from datetime import datetime
9- import xml.etree.ElementTree as ET
10-
11- root = Path(sys.argv[1] if len(sys.argv) > 1 else 'dist')
12- class Page(HTMLParser):
13- def __init__(self):
14- super().__init__(); self.meta = []; self.links = []; self.ids = set(); self.h1 = 0; self.title = 0; self.schema = []; self.in_schema = False; self.buffer = ''; self.title_text = ''; self.in_title = False; self.lang = None
15- def handle_starttag(self, tag, attrs):
16- a = dict(attrs)
17- if 'id' in a:
18- assert a['id'] not in self.ids, ('duplicate ID', a['id'])
19- self.ids.add(a['id'])
20- if tag == 'html': self.lang = a.get('lang')
21- if tag == 'img': assert 'alt' in a, ('missing image alt', a.get('src'))
22- if tag == 'h1': self.h1 += 1
23- if tag == 'title': self.title += 1; self.in_title = True
24- if tag == 'meta': self.meta.append(a)
25- if tag == 'link': self.links.append((tag, a))
26- if tag in ('a', 'img', 'source', 'track', 'script', 'video'): self.links.append((tag, a))
27- if tag == 'script' and a.get('type') == 'application/ld+json': self.in_schema = True; self.buffer = ''
28- def handle_data(self, text):
29- if self.in_schema: self.buffer += text
30- if self.in_title: self.title_text += text
31- def handle_endtag(self, tag):
32- if tag == 'title': self.in_title = False
33- if tag == 'script' and self.in_schema:
34- self.schema.append(json.loads(self.buffer)); self.in_schema = False
35-
36- pages = {}
37- for path in root.rglob('index.html'):
38- route = '/' + str(path.parent.relative_to(root)).replace('\\','/') + '/'
39- route = '/' if route == '/./' else route
40- page = Page(); page.feed(path.read_text()); pages[route] = page
41-
42- descriptions = set()
43- titles = set()
44- origin = 'https://pulsecanvas.ai'
45- def meta_value(page, key, value):
46- matches = [m.get('content', '') for m in page.meta if m.get(key) == value]
47- assert len(matches) == 1 and matches[0].strip(), (value, 'missing or duplicate metadata')
48- return matches[0]
49- def local_asset(url):
50- parsed = urlsplit(url)
51- assert parsed.scheme == 'https' and parsed.netloc == 'pulsecanvas.ai', ('asset must be canonical HTTPS', url)
52- asset = root / unquote(parsed.path).lstrip('/')
53- assert asset.is_file(), ('missing metadata/schema asset', url)
54- return asset
55- def schema_assets(value):
56- if isinstance(value, dict):
57- for key, child in value.items():
58- if key in ['image', 'screenshot', 'logo', 'thumbnailUrl', 'contentUrl']:
59- for url in child if isinstance(child, list) else [child]:
60- if isinstance(url, str) and url.startswith(origin): local_asset(url)
61- schema_assets(child)
62- elif isinstance(value, list):
63- for child in value: schema_assets(child)
64- for route, page in pages.items():
65- assert page.h1 == 1 and page.title == 1, (route, 'heading/title count')
66- assert page.lang == 'en', (route, 'document language')
67- assert page.title_text.strip() and page.title_text not in titles, (route, 'empty/duplicate title')
68- titles.add(page.title_text)
69- robots = meta_value(page, 'name', 'robots')
70- assert 'noindex' not in robots and 'nofollow' not in robots, (route, 'indexing blocked')
71- assert meta_value(page, 'name', 'viewport').startswith('width=device-width')
72- description = [m['content'] for m in page.meta if m.get('name') == 'description']
73- assert len(description) == 1 and description[0] not in descriptions, (route, 'description')
74- descriptions.add(description[0])
75- canonical = [a['href'] for tag, a in page.links if a.get('rel') == 'canonical']
76- assert canonical == ['https://pulsecanvas.ai' + route], (route, canonical)
77- for property in ['og:title','og:description','og:type','og:url','og:site_name','og:locale','og:image','og:image:secure_url','og:image:type','og:image:width','og:image:height','og:image:alt']:
78- meta_value(page, 'property', property)
79- assert meta_value(page, 'property', 'og:url') == canonical[0]
80- assert meta_value(page, 'property', 'og:description') == description[0]
81- assert meta_value(page, 'name', 'twitter:card') == 'summary_large_image'
82- for name in ['twitter:title','twitter:description','twitter:image','twitter:image:alt']:
83- meta_value(page, 'name', name)
84- og_image = meta_value(page, 'property', 'og:image')
85- assert meta_value(page, 'property', 'og:image:secure_url') == og_image
86- assert meta_value(page, 'name', 'twitter:image') == og_image
87- assert meta_value(page, 'name', 'twitter:title') == meta_value(page, 'property', 'og:title')
88- assert meta_value(page, 'name', 'twitter:description') == description[0]
89- image = local_asset(og_image)
90- with image.open('rb') as png:
91- header = png.read(24)
92- assert header[:8] == b'\x89PNG\r\n\x1a\n', ('invalid PNG', image)
93- width, height = struct.unpack('>II', header[16:24])
94- assert (width, height) == (1200, 630), (route, 'social image dimensions')
95- assert meta_value(page, 'property', 'og:image:width') == str(width)
96- assert meta_value(page, 'property', 'og:image:height') == str(height)
97- assert meta_value(page, 'property', 'og:image:type') == 'image/png'
98- assert len(page.schema) == 1
99- graph = page.schema[0]['@graph']
100- schema_assets(graph)
101- if route.startswith('/guides/') and route != '/guides/':
102- article = next(node for node in graph if node['@type'] == 'TechArticle')
103- assert article['headline'] == page.title_text and article['author'] and article['image']
104- if route == '/': assert any(node['@type'] == 'SoftwareApplication' and node['offers']['price'] == 0 for node in graph)
105- for node in graph:
106- if node['@type'] == 'VideoObject':
107- published = datetime.fromisoformat(node['uploadDate'].replace('Z', '+00:00'))
108- assert published.tzinfo is not None, (route, 'video publication timezone')
109- assert node['contentUrl'].startswith('https://media.protomota.com/video/'), (route, 'video plays from R2')
110- assert not any('aggregateRating' in node or 'review' in node for node in graph), 'No fabricated reviews'
111- for tag, attrs in page.links:
112- for attribute in ['href','src','poster','data-poster']:
113- url = attrs.get(attribute, '')
114- if not url or urlsplit(url).scheme or url.startswith('//'): continue
115- parsed = urlsplit(url); path = unquote(parsed.path)
116- if tag == 'use': continue
117- if not path:
118- if parsed.fragment: assert parsed.fragment in page.ids, (route,url)
119- continue
120- if not path.startswith('/'):
121- path = urlsplit(urljoin(origin + route, url)).path
122- target = root / path.lstrip('/')
123- if path == '/': target = root/'index.html'
124- if path.endswith('/') and path != '/': target /= 'index.html'
125- assert target.exists(), (route, 'missing asset/link',url)
126- if parsed.fragment and path in pages:
127- assert parsed.fragment in pages[path].ids, (route,url)
128-
129- urls = {node.text for node in ET.parse(root/'sitemap.xml').getroot().iter('{http://www.sitemaps.org/schemas/sitemap/0.9}loc')}
130- assert urls == {'https://pulsecanvas.ai'+route for route in pages}
131- robots = (root/'robots.txt').read_text()
132- assert 'Disallow' not in robots and robots.count('Allow: /') == 2
133- for crawler in ['OAI-SearchBot', 'GPTBot', 'ClaudeBot', 'Claude-SearchBot', 'PerplexityBot', 'Google-Extended']:
134- assert f'User-agent: {crawler}\n' in robots, crawler
135- llms = (root/'llms.txt').read_text()
136- assert llms.startswith('# PulseCanvas Studio\n') and 'https://pulsecanvas.ai/download/' in llms
137- support = next(node for node in pages['/help/'].schema[0]['@graph'] if node['@type'] == 'FAQPage')
138- assert len(support['mainEntity']) >= 3 and all(q['name'] and q['acceptedAnswer']['text'] for q in support['mainEntity'])
139- assert 'Sitemap: https://pulsecanvas.ai/sitemap.xml' in robots
140- assert {'/download/', '/help/'} <= pages.keys()
141- print(f'{len(pages)} pages: unique metadata, social-image files/dimensions, JSON-LD assets, sitemap, crawler directives, image alt text, and internal links passed.')

scripts/create-og-review.py changed

1- # Create an OG and SEO review page from actual built metadata.
1+ # Create a link-preview review page from actual built metadata.
22 from html.parser import HTMLParser
33 from html import escape
44 from pathlib import Path
⋯
88 root = Path(sys.argv[1] if len(sys.argv) > 1 else '.vercel/output/static')
99 class Head(HTMLParser):
1010 def __init__(self):
11- super().__init__(); self.meta = {}; self.title = ''; self.in_title = False; self.canonical = ''; self.images = []
11+ super().__init__(); self.meta = {}; self.title = ''; self.in_title = False; self.images = []
1212 def handle_starttag(self, tag, attrs):
1313 attrs = dict(attrs)
1414 if tag == 'title': self.in_title = True
1515 if tag == 'meta': self.meta[attrs.get('property', attrs.get('name', ''))] = attrs.get('content', '')
16- if tag == 'link' and attrs.get('rel') == 'canonical': self.canonical = attrs.get('href', '')
1716 if tag == 'img' and attrs.get('src'): self.images.append(attrs['src'])
1817 def handle_endtag(self, tag):
1918 if tag == 'title': self.in_title = False
⋯
2322 home = None
2423 for file in sorted(root.rglob('index.html')):
2524 head = Head(); head.feed(file.read_text())
26- route = urlsplit(head.canonical).path
25+ route = urlsplit(head.meta.get('og:url', '')).path
2726 if route == '/': home = head
28- rows.append(f'<article class="page"><a class="route" href="{escape(route)}">{escape(route)}</a><h3>{escape(head.title)}</h3><p>{escape(head.meta["description"])}</p><dl><dt>Social title</dt><dd>{escape(head.meta["og:title"])}</dd><dt>Canonical</dt><dd>{escape(head.canonical)}</dd></dl></article>')
27+ rows.append(f'<article class="page"><a class="route" href="{escape(route)}">{escape(route)}</a><h3>{escape(head.title)}</h3><p>{escape(head.meta["description"])}</p><dl><dt>Social title</dt><dd>{escape(head.meta["og:title"])}</dd><dt>Address</dt><dd>{escape(head.meta.get("og:url", ""))}</dd></dl></article>')
2928 image_url = urlsplit(home.meta['og:image'])
3029 image_path = image_url.path + ('?' + image_url.query if image_url.query else '')
3130 html = '''<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex, nofollow"><title>OG & SEO review — PulseCanvas Studio</title><link rel="icon" href="/images/favicon.png"><style>
3231 :root{color-scheme:dark;font-family:Arial,sans-serif;color:#f7f1ed;background:#17121b}*{box-sizing:border-box}body{margin:0}main{width:min(1060px,100% - 40px);margin:56px auto 80px}a{color:#f2b394}a:focus-visible{outline:3px solid #f2b394;outline-offset:5px}.eyebrow{color:#f2b394;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:700}h1{font-size:clamp(32px,5vw,54px);line-height:1.08;margin:18px 0 16px;letter-spacing:-.04em}h2{font-size:26px;margin:40px 0 18px}p{line-height:1.7;color:#c8bdcd}.intro{max-width:710px;margin:0 0 28px}.hero{width:100%;height:auto;display:block;border-radius:16px;border:1px solid #3b303f}.meta-line{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;font-size:13px;color:#b8adbf;margin:14px 0 30px}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.card{background:#201925;border:1px solid #3b303f;border-radius:14px;overflow:hidden}.card img{display:block;width:100%;height:auto}.card-copy{padding:20px}.domain{font-size:12px;color:#c5b3df}.card h3{font-size:20px;line-height:1.3;margin:12px 0}.card p{font-size:14px;margin:0}.search-card{padding:24px;background:#fff;color:#202124;border-radius:14px;align-self:start}.search-card .search-domain{font-size:13px;color:#3c4043}.search-card h3{color:#1a0dab;font-size:22px;line-height:1.3;font-weight:400;margin:16px 0 10px}.search-card p{color:#4d5156;font-size:14px;margin:0}.caption{font-size:12px;color:#b8adbf;margin-top:10px}.checks{padding:22px 26px;border:1px solid #3b303f;border-radius:14px;background:#201925;line-height:1.8}.checks li{color:#d4c8db}.checks li+li{margin-top:8px}.status{color:#bde1c5}.page{border-top:1px solid #3b303f;padding:26px 0}.route{font-size:13px;overflow-wrap:anywhere}.page h3{font-size:22px;margin:12px 0}.page p{margin:0;font-size:15px;max-width:800px}dl{display:grid;grid-template-columns:95px 1fr;gap:8px;font-size:13px;margin-bottom:0}dt{color:#b8adbf}dd{margin:0;overflow-wrap:anywhere}.note{margin:22px 0;color:#c5b3df;font-size:14px}footer{padding-top:30px;border-top:1px solid #3b303f;margin-top:24px;font-size:14px}@media(max-width:680px){main{margin-top:32px;width:calc(100% - 32px)}.split{grid-template-columns:1fr}.checks{padding:20px}dl{grid-template-columns:1fr;gap:4px}dd{margin-bottom:8px}}
33- </style></head><body><main><p class="eyebrow">PulseCanvas Studio · Production review</p><h1>Your next first impression.</h1><p class="intro">Review the new social image and metadata for all 11 pages. The new OG image, metadata, and SEO fixes are now deployed to production.</p>'''
32+ </style></head><body><main><p class="eyebrow">PulseCanvas Studio · Production review</p><h1>Your next first impression.</h1><p class="intro">Review the new social image and metadata for all 11 pages. The social image and metadata are live.</p>'''
3433 html += f'<a href="{image_path}"><img class="hero" src="{image_path}" width="1200" height="630" alt="{escape(home.meta["og:image:alt"])}"></a><div class="meta-line"><span>1200 × 630 · PNG · Open Graph + X</span><a href="{image_path}">Open full image</a></div><h2>How the homepage could appear</h2><div class="split"><div><article class="card"><img src="{image_path}" width="1200" height="630" alt=""><div class="card-copy"><div class="domain">PULSECANVAS.AI</div><h3>{escape(home.meta["og:title"])}</h3><p>{escape(home.meta["og:description"])}</p></div></article><p class="caption">Illustrative social preview. Platforms may crop images and shorten text.</p></div><div><article class="search-card"><div class="search-domain">PulseCanvas Studio<br>https://pulsecanvas.ai</div><h3>{escape(home.title)}</h3><p>{escape(home.meta["description"])}</p></article><p class="caption">Illustrative search snippet. Search engines choose the final title and description.</p></div></div>'
35- html += '''<h2>SEO checks & fixes</h2><div class="checks"><span class="status">All 11 built pages passed technical checks.</span><ul><li>Unique titles and descriptions, one canonical URL per page, crawlable HTML, sitemap coverage, image alt attributes, and internal links.</li><li>Complete Open Graph and X cards; verified image file, dimensions, MIME type, HTTPS URL, and descriptive alt text.</li><li>Added guide headlines, author and relevant app imagery to structured data. Removed brittle effect counts from schema.</li><li>Corrected stale support-page source availability and licensing copy.</li><li>Public production pages, crawl directives, canonical redirects, and genuine 404 behavior checked separately.</li></ul></div><p class="note">The app has no published ratings or reviews, so it currently lacks the rating/review required for Google's software-app rich result. No ratings were invented. Passing technical checks does not guarantee indexing or rankings.</p><h2>Metadata for every page</h2>'''
34+ html += '''<h2>Metadata for every page</h2>'''
3635 html += ''.join(rows)
3736 html += '''<footer><a href="/">Open the live website</a> · <a href="https://developers.google.com/search/docs/essentials/technical">Google technical requirements</a> · <a href="https://developers.google.com/search/docs/appearance/structured-data/software-app">Software-app rich results</a></footer></main></body></html>'''
3837 review = Head()
⋯
4948 if not any(route.get('src') == '^/og-review\\.html$' for route in config['routes']):
5049 config['routes'].insert(0, {'src': '^/og-review\\.html$', 'headers': {'X-Robots-Tag': 'noindex, nofollow'}, 'continue': True})
5150 config_path.write_text(json.dumps(config, indent=2)+'\n')
52- print('OG and SEO review page created at /og-review.html.')
51+ print('Link-preview review page created at /og-review.html.')

scripts/indexnow.mjs deleted

1- #!/usr/bin/env node
2- // Tells IndexNow which pages changed in this deploy, so Bing (and the assistants that
3- // search through it, such as Copilot and ChatGPT) re-read them within minutes instead of days.
4- //
5- // It runs at the end of a Vercel or Cloudflare Pages build. For every URL in the built sitemap it compares the
6- // page's words (title, description, structured data and visible text) with the page that is
7- // live right now, and submits only the pages that differ, plus pages that were added or removed.
8- // With --lastmod it also writes <lastmod> into the built sitemap: today for a changed page,
9- // otherwise the date the live sitemap (or the committed one) already shows.
10- //
11- // Production deploys submit. Preview deploys only print what they would submit.
12- // Local builds do nothing. It never fails a build.
13- //
14- // Usage: node indexnow.mjs <built sitemap> <built html dir> [more dirs...] [--lastmod]
15- // The key below is public by design: IndexNow checks it against /<key>.txt on the site.
16- import { existsSync, readFileSync, writeFileSync } from 'node:fs';
17- import { join } from 'node:path';
18-
19- const KEY = '66365049776433ceca35572e03fca658';
20- const ENDPOINT = process.env.INDEXNOW_ENDPOINT || 'https://api.indexnow.org/indexnow';
21- // Vercel sets VERCEL_ENV; a Cloudflare Pages build of main is production, any other branch a preview.
22- const cfBranch = process.env.CF_PAGES ? process.env.CF_PAGES_BRANCH : process.env.WORKERS_CI ? process.env.WORKERS_CI_BRANCH : null;
23- const mode = process.env.VERCEL_ENV || (cfBranch == null ? undefined : cfBranch === 'main' ? 'production' : 'preview'); // production | preview | undefined (local)
24-
25- const args = process.argv.slice(2);
26- const withLastmod = args.includes('--lastmod');
27- const [sitemapFile, ...dirs] = args.filter((arg) => arg !== '--lastmod');
28-
29- const locs = (xml) => [...xml.matchAll(/<url>([\s\S]*?)<\/url>/g)].map(([, entry]) => ({
30- loc: (entry.match(/<loc>\s*([^<\s]+)\s*<\/loc>/) || [])[1],
31- lastmod: (entry.match(/<lastmod>\s*([^<\s]+)\s*<\/lastmod>/) || [])[1],
32- })).filter((entry) => entry.loc);
33-
34- // What a page says, without markup, scripts or asset file names, so a rebuild alone is not a change.
35- // The robots tag is left out: preview builds set noindex, and a noindex page is not in the sitemap anyway.
36- export const words = (html) => {
37- const title = (html.match(/<title[^>]*>([\s\S]*?)<\/title>/i) || [])[1] || '';
38- const meta = [...html.matchAll(/<meta\b[^>]*>/gi)].map(([tag]) => tag)
39- .filter((tag) => /(?:name|property)=["'](?:description|og:title|og:description)["']/i.test(tag))
40- .map((tag) => (tag.match(/content=(?:"([^"]*)"|'([^']*)')/i) || []).slice(1).find(Boolean) || '');
41- const data = [...html.matchAll(/<script[^>]*application\/ld\+json[^>]*>([\s\S]*?)<\/script>/gi)].map(([, json]) => json);
42- const text = html
43- .replace(/<(script|style|noscript|template)\b[\s\S]*?<\/\1>/gi, ' ')
44- .replace(/<!--[\s\S]*?-->/g, ' ')
45- .replace(/<[^>]+>/g, ' ');
46- return [title, ...meta, ...data, text].join(' ').replace(/&nbsp;|&#160;/g, ' ').replace(/\s+/g, ' ').trim();
47- };
48-
49- const builtPage = (url) => {
50- const path = decodeURIComponent(new URL(url).pathname).replace(/\/+$/, '');
51- for (const dir of dirs) {
52- for (const file of path ? [`${path}.html`, `${path}/index.html`] : ['/index.html']) {
53- if (existsSync(join(dir, file))) return readFileSync(join(dir, file), 'utf8');
54- }
55- }
56- return null;
57- };
58-
59- const get = async (url) => {
60- const target = process.env.INDEXNOW_TEST_ORIGIN ? url.replace(/^https?:\/\/[^/]+/, process.env.INDEXNOW_TEST_ORIGIN) : url;
61- const response = await fetch(target, { signal: AbortSignal.timeout(10000), headers: { 'user-agent': 'indexnow-build-check' } });
62- return { status: response.status, body: response.status === 200 ? await response.text() : '' };
63- };
64-
65- async function main() {
66- if (!mode || !sitemapFile || !existsSync(sitemapFile)) return;
67- const xml = readFileSync(sitemapFile, 'utf8');
68- const pages = locs(xml);
69- if (!pages.length) return;
70- const origin = new URL(pages[0].loc).origin;
71-
72- const liveSitemap = await get(`${origin}/sitemap.xml`).catch(() => ({ status: 0, body: '' }));
73- const live = new Map(locs(liveSitemap.body).map((entry) => [entry.loc, entry.lastmod]));
74-
75- const changed = [];
76- const skipped = [];
77- for (let start = 0; start < pages.length; start += 8) {
78- await Promise.all(pages.slice(start, start + 8).map(async ({ loc }) => {
79- const built = builtPage(loc);
80- if (built === null) return skipped.push(`${loc} (not built as a file)`);
81- const now = await get(loc).catch(() => null);
82- if (now && now.status === 404) return changed.push(loc); // new page
83- if (!now || now.status !== 200) return skipped.push(`${loc} (live page did not load)`);
84- if (words(built) !== words(now.body)) changed.push(loc);
85- }));
86- }
87- // A page that left the sitemap is submitted too, so it drops out of the index.
88- const removed = liveSitemap.status === 200 ? [...live.keys()].filter((loc) => !pages.some((page) => page.loc === loc)) : [];
89-
90- if (withLastmod) {
91- const today = new Date().toISOString().slice(0, 10);
92- const dated = xml.replace(/<url>([\s\S]*?)<\/url>/g, (entry, inner) => {
93- const loc = (inner.match(/<loc>\s*([^<\s]+)\s*<\/loc>/) || [])[1];
94- const committed = (inner.match(/<lastmod>\s*([^<\s]+)\s*<\/lastmod>/) || [])[1];
95- const date = changed.includes(loc) ? today : live.get(loc) || committed;
96- const bare = inner.replace(/\s*<lastmod>[\s\S]*?<\/lastmod>/, '');
97- return `<url>${date ? bare.replace(/<\/loc>/, `</loc><lastmod>${date}</lastmod>`) : bare}</url>`;
98- });
99- writeFileSync(sitemapFile, dated);
100- }
101-
102- const urlList = [...changed, ...removed];
103- for (const note of skipped) console.log(`IndexNow: skipped ${note}`);
104- if (!urlList.length) return console.log(`IndexNow: no page changed (${pages.length} checked).`);
105- console.log(`IndexNow: ${urlList.length} of ${pages.length} page(s) changed:\n ${urlList.join('\n ')}`);
106- if (mode !== 'production') return console.log('IndexNow: preview build, nothing submitted.');
107-
108- const host = new URL(origin).host;
109- const response = await fetch(ENDPOINT, {
110- method: 'POST',
111- signal: AbortSignal.timeout(10000),
112- headers: { 'content-type': 'application/json; charset=utf-8' },
113- body: JSON.stringify({ host, key: KEY, keyLocation: `${origin}/${KEY}.txt`, urlList }),
114- });
115- console.log(`IndexNow: submitted, HTTP ${response.status}.`);
116- }
117-
118- main().catch((error) => console.log(`IndexNow: skipped (${error.message}).`));

scripts/installer-release.test.mjs changed

3030 }
3131 });
3232 test('rejects insecure, credential-bearing, local, or incorrect installer links', () => {
33- for (const downloadUrl of ['http://releases.example.com/PulseCanvas.dmg', 'file:///path/to/file', 'https://user:password@releases.example.com/PulseCanvas.dmg', '/images/app-icon.webp', '/downloads/PulseCanvas.dmg#secret', 'javascript:alert(1)']) {
33+ for (const downloadUrl of ['http://releases.example.com/PulseCanvas.dmg', 'file:///Users/example/PulseCanvas.dmg', 'https://user:password@releases.example.com/PulseCanvas.dmg', '/images/app-icon.webp', '/downloads/PulseCanvas.dmg#secret', 'javascript:alert(1)']) {
3434 assert.throws(() => validateCreatorsRelease({ ...release, downloadUrl }, origin));
3535 }
3636 });

scripts/optimize-videos.mjs changed

77 // (see "Website videos" in README.md). Filesystem paths are used only by this local script.
88 const outputDirectory =
99 process.env.PULSECANVAS_ASSET_DIR ||
10- '/path/to/file';
10+ process.env.VIDEO_SOURCE_DIR || 'video-sources';
1111 const websiteMediaDirectory =
1212 process.env.PULSECANVAS_WEBSITE_MEDIA_DIR ||
1313 '/Volumes/Expand/Video/Library/website-media/pulsecanvas';

scripts/prepare-cloudflare.mjs changed

6565
6666 // Generate the review from this exact package and fail if its assets are absent.
6767 execFileSync('python3', [resolve('scripts/create-og-review.py'), dist], { stdio: 'inherit' });
68- execFileSync('python3', [resolve('scripts/check-seo.py'), dist], { stdio: 'inherit' });
6968 console.log('Cloudflare Pages site prepared in dist/.');

scripts/prepare-deploy.mjs changed

4747 }, null, 2) + '\n');
4848 // Generate the review from this exact package and fail if its assets are absent.
4949 execFileSync('python3', [resolve('scripts/create-og-review.py')], { stdio: 'inherit' });
50- execFileSync('python3', [resolve('scripts/check-seo.py'), staticDirectory], { stdio: 'inherit' });
5150 console.log('Static Vercel deployment prepared in .vercel/output.');

scripts/seo.mjs changed

1- import { websiteUrl, seoPages, socialImage, testflightUrl, sourceUrl } from '../seo.config.js';
2- import { films, filmUrl } from '../media.config.js';
1+ import { websiteUrl, seoPages, socialImage } from '../seo.config.js';
32 const absolute = (path) => new URL(path, websiteUrl).href;
4- const organization = {
5- '@type': 'Organization', '@id': absolute('/#org'), name: 'PulseCanvas', url: absolute('/'),
6- logo: absolute('/images/app-icon.webp'),
7- };
8- const app = {
9- '@type': 'SoftwareApplication', '@id': absolute('/#app'), name: 'PulseCanvas Studio', url: absolute('/'),
10- description: 'PulseCanvas Studio is a free music visualizer and video maker for Mac, iPhone and iPad. Import a soundtrack, arrange beat-aligned visuals, and export an MP4 with audio, up to 4K at 60 fps.',
11- applicationCategory: 'MultimediaApplication', applicationSubCategory: 'Music visualizer',
12- operatingSystem: 'macOS 14 or later, iOS 18 or later, iPadOS 18 or later, visionOS', processorRequirements: 'Apple silicon (Mac)',
13- isAccessibleForFree: true, offers: { '@type': 'Offer', price: 0, priceCurrency: 'USD' },
14- downloadUrl: [testflightUrl, absolute('/download/')],
15- author: { '@id': organization['@id'] }, publisher: { '@id': organization['@id'] }, sameAs: [testflightUrl],
16- image: absolute('/images/app-icon.png'), screenshot: absolute('/images/app-studio.webp'),
17- featureList: ['Native Metal visualizers in both editions; additional projectM / MilkDrop community effects in Creators Edition', 'Soundtrack import, scrubbing and loop preview', 'Beat-aligned Studio sequences with individual bar lengths', 'Per-visualizer saved styles', 'Save and reopen projects', 'H.264 MP4 exports with audio, up to 4K and 60 fps', 'Wide, landscape, portrait, phone and square canvases'],
18- };
19- const video = {
20- '@type': 'VideoObject', '@id': absolute('/watch/walkthrough/#video'), name: 'PulseCanvas Studio tutorial: make your first music video',
21- description: seoPages['/watch/walkthrough/'].description, thumbnailUrl: [absolute('/images/tutorial-v6-poster.webp')],
22- // Date first published on this website, rather than the capture's filesystem timestamp.
23- uploadDate: '2026-10-15T22:00:00Z', duration: 'PT1M17.783S', contentUrl: filmUrl(films.walkthrough),
24- url: absolute('/watch/walkthrough/'), inLanguage: 'en', publisher: { '@id': organization['@id'] }, about: { '@id': app['@id'] },
25- };
26- // Questions and answers as the support and compare pages show them, so the FAQ data can't drift from the visible text.
27- const plainText = (markup) => markup.replace(/<[^>]+>/g, '').replace(/&amp;/g, '&').replace(/\s+/g, ' ').trim();
28- export function supportFaq(html) {
29- const block = html.match(/<div class="support-faq">([\s\S]*?)<\/div>/)?.[1] || '';
30- return Array.from(block.matchAll(/<h3>([\s\S]*?)<\/h3>\s*<p>([\s\S]*?)<\/p>/g), ([, question, answer]) => ({ question: plainText(question), answer: plainText(answer) }));
31- }
32- export function structuredData(path, html = '') {
33- const page = seoPages[path];
34- const graph = [organization, { '@type': 'WebSite', '@id': absolute('/#website'), url: absolute('/'), name: 'PulseCanvas Studio', publisher: { '@id': organization['@id'] }, inLanguage: 'en' }, {
35- '@type': page.video ? 'ItemPage' : path.startsWith('/guides/') && path !== '/guides/' ? 'TechArticle' : 'WebPage',
36- '@id': absolute(path + '#page'), url: absolute(path), name: page.title, description: page.description,
37- isPartOf: { '@id': absolute('/#website') }, inLanguage: 'en', publisher: { '@id': organization['@id'] },
38- primaryImageOfPage: { '@type': 'ImageObject', url: absolute(socialImage.path), width: socialImage.width, height: socialImage.height },
39- ...(path.startsWith('/guides/') && path !== '/guides/' ? { headline: page.title, image: absolute('/images/app-studio.webp'), author: { '@id': organization['@id'] } } : {}),
40- ...(page.video ? { mainEntity: { '@id': video['@id'] } } : { about: { '@id': app['@id'] } }),
41- }];
42- graph.push(app);
43- if (page.video) graph.push(video);
44- const faq = ['/help/', '/compare/'].includes(path) ? supportFaq(html) : [];
45- if (faq.length) graph.push({ '@type': 'FAQPage', '@id': absolute(path + '#faq'), url: absolute(path), about: { '@id': app['@id'] }, mainEntity: faq.map(({ question, answer }) => ({ '@type': 'Question', name: question, acceptedAnswer: { '@type': 'Answer', text: answer } })) });
46- if (path !== '/') {
47- const crumbs = [{ name: 'Home', path: '/' }];
48- if (path.startsWith('/guides/') && path !== '/guides/') crumbs.push({ name: 'Guides', path: '/guides/' });
49- crumbs.push({ name: page.name, path });
50- graph.push({ '@type': 'BreadcrumbList', itemListElement: crumbs.map((crumb, i) => ({ '@type': 'ListItem', position: i + 1, name: crumb.name, item: absolute(crumb.path) })) });
51- }
52- return { '@context': 'https://schema.org', '@graph': graph };
53- }
54- export const sitemap = `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n${Object.keys(seoPages).map(path => ` <url><loc>${absolute(path)}</loc></url>`).join('\n')}\n</urlset>\n`;
55- // Search engines and AI search, assistant and training crawlers are welcome, and named so the policy is explicit. This does not promise inclusion.
56- const aiCrawlers = ['OAI-SearchBot', 'ChatGPT-User', 'GPTBot', 'ClaudeBot', 'Claude-SearchBot', 'Claude-User', 'PerplexityBot', 'Perplexity-User', 'Google-Extended', 'GoogleOther', 'Applebot', 'Applebot-Extended', 'bingbot', 'Amazonbot', 'meta-externalagent', 'meta-externalfetcher', 'DuckAssistBot', 'MistralAI-User', 'CCBot', 'cohere-ai', 'YouBot'];
57- export const robots = `# PulseCanvas Studio welcomes search engines and AI assistants.\n# A plain-text summary for language models: ${absolute('/llms.txt')}\n\nUser-agent: *\nAllow: /\n\n# AI search, assistant and training crawlers, allowed by name.\n${aiCrawlers.map(name => `User-agent: ${name}\n`).join('')}Allow: /\n\nSitemap: ${absolute('/sitemap.xml')}\n`;
58- // llms.txt: a plain-text summary of the app and a map of the site for AI assistants. Keep it in step with the pages.
59- export const llms = `# PulseCanvas Studio
60-
61- > PulseCanvas Studio is a free music visualizer and video maker for Mac, iPhone and iPad. Import a soundtrack, choose and style visuals, arrange beat-aligned scenes to your song, and export an MP4 with audio, up to 4K at 60 fps.
62-
63- Key facts:
64-
65- - Price: free. Creators Edition and the iPhone and iPad beta are free, and every video and export is free. No account or subscription is required.
66- - License: the application source is in the public domain (Unlicense).
67- - Mac: an Apple silicon Mac with macOS 14 or later. Creators Edition, downloaded from ${absolute('/download/')}, includes over 100 native Metal visualizers plus 7,000+ MilkDrop community effects powered by projectM.
68- - iPhone, iPad and Apple Vision Pro: a free beta on TestFlight, on iOS 18 and iPadOS 18 or later and on visionOS. ${testflightUrl}
69- - Studio: build a sequence that moves with your music. Studio creates beat-aligned sections automatically, and you choose the visuals and how many bars each scene gets.
70- - Export: H.264 MP4 with audio, up to 4K and 60 fps, on wide, landscape, portrait, phone and square canvases.
71- - Also included: soundtrack import with scrubbing and loop preview, saved visual styles, projects you can save and reopen, and Radio.
72- - Community effects: Creators Edition draws its 7,000+ effects from Cream of the Crop, a curated MilkDrop collection by ISOSCELES.
73-
74- ## Pages
75-
76- ${Object.entries(seoPages).filter(([path]) => !['/privacy/', '/licenses/'].includes(path)).map(([path, page]) => `- [${path === '/' ? 'PulseCanvas Studio' : page.name}](${absolute(path)}): ${page.description}`).join('\n')}
77-
78- ## Optional
79-
80- - [Privacy Policy](${absolute('/privacy/')})
81- - [Licenses](${absolute('/licenses/')})
82- `;
3+ // NO SEO (2026-12-02): no sitemap, llms.txt or crawler courting. robots.txt just allows everyone.
4+ export const robots = 'User-agent: *\nAllow: /\n';
835 export function seoPlugin() {
846 return {
857 name: 'pulsecanvas-seo',
⋯
8911 const path = context.path.replace(/index\.html$/, '').replace(/\/{2,}/g, '/');
9012 if (path === "/404.html") return html;
9113 const page = seoPages[path];
92- if (!page) throw new Error(`Missing SEO configuration for ${context.path}`);
14+ if (!page) throw new Error(`Missing page metadata for ${context.path}`);
9315 // Replace legacy metadata, so every route has exactly one canonical title and description.
9416 html = html.replace('href="/images/app-icon.png"', 'href="/images/favicon.png"')
9517 .replace(/<title>[\s\S]*?<\/title>/gi, '')
⋯
9921 return { html, tags: [
10022 { tag: 'title', children: page.title },
10123 { tag: 'meta', attrs: { name: 'description', content: page.description } },
102- ...(path === '/' ? [{ tag: 'meta', attrs: { name: 'msvalidate.01', content: 'E2001B47E91F72A19BB1E8E642B26928' } }] : []),
103- { tag: 'link', attrs: { rel: 'canonical', href: absolute(path) } },
104- { tag: 'meta', attrs: { name: 'robots', content: 'index, follow, max-image-preview:large, max-video-preview:-1' } },
10524 ...Object.entries({
10625 'og:title': page.socialTitle || page.title, 'og:description': page.description,
10726 'og:type': path.startsWith('/guides/') && path !== '/guides/' ? 'article' : 'website',
⋯
11534 'twitter:description': page.description, 'twitter:image': absolute(socialImage.path),
11635 'twitter:image:alt': socialImage.alt,
11736 }).map(([name, content]) => ({ tag: 'meta', attrs: { name, content } })),
118- { tag: 'script', attrs: { type: 'application/ld+json' }, children: JSON.stringify(structuredData(path, html)).replaceAll('<', '\\u003c') },
11937 ].map(tag => ({ ...tag, injectTo: 'head' })) };
12038 },
12139 },
12240 configureServer(server) {
12341 server.middlewares.use((request, response, next) => {
12442 const route = request.url?.split('?')[0];
125- if (!['/sitemap.xml', '/robots.txt', '/llms.txt'].includes(route)) return next();
126- response.setHeader('Content-Type', route.endsWith('.xml') ? 'application/xml' : 'text/plain');
127- response.end(route === '/sitemap.xml' ? sitemap : route === '/llms.txt' ? llms : robots);
43+ if (route !== '/robots.txt') return next();
44+ response.setHeader('Content-Type', 'text/plain');
45+ response.end(robots);
12846 });
12947 },
13048 generateBundle() {
131- this.emitFile({ type: 'asset', fileName: 'sitemap.xml', source: sitemap });
13249 this.emitFile({ type: 'asset', fileName: 'robots.txt', source: robots });
133- this.emitFile({ type: 'asset', fileName: 'llms.txt', source: llms });
13450 },
13551 };
13652 }

seo.config.js changed

22 export const websiteUrl = 'https://pulsecanvas.ai';
33 // Public destinations named in structured data and llms.txt (the same defaults as site.config.js).
44 export const testflightUrl = 'https://testflight.apple.com/join/477U764J';
5- export const sourceUrl = 'https://github.com/projectatomai/pulsecanvas';
5+ export const sourceUrl = 'https://branchwell.ai/pulsecanvas/app';
66 export const socialImage = {
77 path: '/images/social-preview-v3.png?v=monochrome1',
88 width: 1200, height: 630, type: 'image/png',

site.config.js changed

44 export const siteConfig = {
55 visualizerMediaBaseUrl:
66 import.meta.env.VITE_VISUALIZER_MEDIA_BASE_URL || mediaBaseUrl,
7- sourceUrl: import.meta.env.VITE_PUBLIC_SOURCE_URL || 'https://github.com/projectatomai/pulsecanvas',
7+ sourceUrl: import.meta.env.VITE_PUBLIC_SOURCE_URL || 'https://branchwell.ai/pulsecanvas/app',
88 newsletterUrl: import.meta.env.VITE_NEWSLETTER_URL || '/download/',
99 websiteUrl: import.meta.env.VITE_WEBSITE_URL || 'https://pulsecanvas.ai',
1010 requirements: 'Apple silicon · macOS 14 or later',

Browse files at this commit