Jotley / website · jotley.ai / commits / 0a393a31
Website: current files new
written by Branchwell · 0a393a3168157c7b745888defd19a9b829334f0b
206 files changed
.eslintrc.json added
| 1 | + { | |
| 2 | + "extends": ["next/core-web-vitals", "next/typescript"], | |
| 3 | + "rules": { | |
| 4 | + "@typescript-eslint/no-unused-vars": "off", | |
| 5 | + "@typescript-eslint/no-explicit-any": "off", | |
| 6 | + "@next/next/no-img-element": "off", | |
| 7 | + "react/no-unescaped-entities": "off", | |
| 8 | + "react-hooks/exhaustive-deps": "off" | |
| 9 | + } | |
| 10 | + } |
.gitignore added
| 1 | + # dependencies | |
| 2 | + /node_modules | |
| 3 | + /.pnp | |
| 4 | + .pnp.js | |
| 5 | + | |
| 6 | + # testing | |
| 7 | + /coverage | |
| 8 | + | |
| 9 | + # next.js | |
| 10 | + /.next/ | |
| 11 | + /out/ | |
| 12 | + | |
| 13 | + # production | |
| 14 | + /build | |
| 15 | + | |
| 16 | + # misc | |
| 17 | + .DS_Store | |
| 18 | + *.pem | |
| 19 | + | |
| 20 | + # debug | |
| 21 | + npm-debug.log* | |
| 22 | + yarn-debug.log* | |
| 23 | + yarn-error.log* | |
| 24 | + | |
| 25 | + # local env files | |
| 26 | + .env*.local | |
| 27 | + | |
| 28 | + # vercel | |
| 29 | + .vercel | |
| 30 | + | |
| 31 | + # typescript | |
| 32 | + *.tsbuildinfo | |
| 33 | + next-env.d.ts | |
| 34 | + | |
| 35 | + # test artifacts | |
| 36 | + test-results/ | |
| 37 | + playwright-report/ | |
| 38 | + | |
| 39 | + .env.check | |
| 40 | + .env.prod | |
| 41 | + | |
| 42 | + # Installers are served from Cloudflare R2 (see "Mac distribution" in README.md), never from git. | |
| 43 | + /public/*.dmg | |
| 44 | + /public/*.delta | |
| 45 | + /public/*.pkg | |
| 46 | + /public/*.zip | |
| 47 | + | |
| 48 | + | |
| 49 | + # Private signing material and local credentials never belong in the site. | |
| 50 | + .env | |
| 51 | + .env.* | |
| 52 | + *.p12 | |
| 53 | + *.p8 | |
| 54 | + *.mobileprovision | |
| 55 | + *.provisionprofile | |
| 56 | + | |
| 57 | + # Video production workspace (masters, private app snapshots) stays local. | |
| 58 | + /video-production/ | |
| 59 | + /output/ | |
| 60 | + | |
| 61 | + # Website videos stream from the jotley-media R2 bucket (see "Website videos" in README.md). | |
| 62 | + /public/media/**/*.mp4 | |
| 63 | + | |
| 64 | + # Public configuration template; never actual support credentials. | |
| 65 | + !.env.support.example | |
| 66 | + /supabase/.temp/ | |
| 67 | + | |
| 68 | + # Cloudflare build and local bindings | |
| 69 | + .open-next/ | |
| 70 | + .wrangler/ | |
| 71 | + .dev.vars* |
.vercelignore added
| 1 | + # Upload the website, excluding local credentials, caches and production workspaces. | |
| 2 | + .git | |
| 3 | + .next | |
| 4 | + node_modules | |
| 5 | + .env | |
| 6 | + .env.* | |
| 7 | + .claude | |
| 8 | + .agents | |
| 9 | + .codex | |
| 10 | + .playwright-cli | |
| 11 | + video-production | |
| 12 | + output | |
| 13 | + temp | |
| 14 | + temp-project | |
| 15 | + playwright-report | |
| 16 | + test-results | |
| 17 | + coverage | |
| 18 | + *.tsbuildinfo | |
| 19 | + *.pem | |
| 20 | + *.p12 | |
| 21 | + *.p8 | |
| 22 | + *.mobileprovision | |
| 23 | + *.provisionprofile | |
| 24 | + # Website videos and installers are served from Cloudflare R2, never from the deploy. | |
| 25 | + public/media/**/*.mp4 | |
| 26 | + public/*.dmg |
README.md added
| 1 | + # Jotley website | |
| 2 | + | |
| 3 | + Marketing and support website for Jotley, a native app with free note-taking features, open source for Mac, iPhone and iPad powered by on-device Apple Intelligence. Jotley transcribes as you speak and keeps transcribing when the device is locked; transcription and summaries run on the device after Apple model setup. Private iCloud sync is on by default and can be turned off; Mac update checks also use a connection and can be turned off. | |
| 4 | + | |
| 5 | + All features are free, with no in-app purchases or subscription. App help, bug reports and feedback are free. | |
| 6 | + | |
| 7 | + ## App source repository | |
| 8 | + | |
| 9 | + Jotley's app source is public at [projectatomai/jotley](https://github.com/projectatomai/jotley). | |
| 10 | + | |
| 11 | + ## Support | |
| 12 | + | |
| 13 | + Use [Jotley feedback](https://projectatom.ai/apps?app=jotley#feedback) or [GitHub issues](https://github.com/projectatomai/jotley/issues). | |
| 14 | + | |
| 15 | + ## Social preview and metadata | |
| 16 | + | |
| 17 | + Page titles, descriptions, canonical URLs, Open Graph and Twitter cards are defined in `src/lib/site-metadata.ts`. The social card uses the real app screenshots and logo at `public/og/jotley-v2.png` (1200 × 630). Regenerate it with `npm run generate:og`. `/api/og` serves the same image. `/metadata-preview` shows the image and all page metadata for review and is marked noindex. | |
| 18 | + | |
| 19 | + The sitemap uses the same public page list, with no synthetic modification dates. Homepage JSON-LD identifies the website and publisher. `www.jotley.ai` permanently redirects to `jotley.ai`. Maintenance rewrites return HTTP 503 with Retry-After while crawler files remain accessible. Run `npm test -- e2e/seo.spec.ts` to verify metadata, canonicals, indexable content, crawler files, JSON-LD, image delivery and maintenance behavior. | |
| 20 | + | |
| 21 | + IndexNow: `scripts/indexnow.mjs` runs at the end of every Vercel build. 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. | |
| 22 | + | |
| 23 | + ## Website videos | |
| 24 | + | |
| 25 | + The narrated films (the marketing film, the walkthrough and the iPhone, iPad and Mac tutorials) play from YouTube, so their views count on the original YouTube channel; each shows its poster from `public/media/films` until someone presses play. The short app clips stream from the `jotley-media` Cloudflare R2 bucket at `https://media.jotley.ai`. Videos are not committed or deployed; posters and stills stay in `public/media`. `src/app/components/home/media.ts` lists every film's YouTube id and every clip URL. To publish a new cut of a film, upload it to YouTube and change its `youtubeId`. | |
| 26 | + | |
| 27 | + The master copy of each uploaded file is on the Expand drive in `/Volumes/Expand/Video/Library/website-media/jotley`. That folder mirrors the bucket: `films/name.mp4` is served at `https://media.jotley.ai/films/name.mp4`. To publish a new video: | |
| 28 | + | |
| 29 | + 1. Copy it into the folder at the path its URL should have. Use a new filename for every new cut, for example `films/jotley-marketing-v4-1080p.mp4`. Uploads are cached for a year, and the upload script refuses to overwrite a key with different bytes. | |
| 30 | + 2. Run `python3 /Volumes/Expand/Video/Library/website-media/r2_media.py upload jotley films/jotley-marketing-v4-1080p.mp4`. It sets the content type and `Cache-Control: public, max-age=31536000, immutable`, then checks the stored checksum. | |
| 31 | + 3. Run `python3 /Volumes/Expand/Video/Library/website-media/r2_media.py verify jotley` to check every public URL, its headers, range requests and CORS. | |
| 32 | + 4. Update the paths in `media.ts`. | |
| 33 | + | |
| 34 | + The How it works phone uses current iPhone captures. The live transcription clip streams as a WebGL video texture, with a poster for reduced motion and a native video fallback when WebGL is unavailable. | |
| 35 | + | |
| 36 | + To preview unpublished videos locally, run `r2_media.py serve jotley --port 8790` and start the site with `NEXT_PUBLIC_VIDEO_BASE_URL=http://127.0.0.1:8790`. | |
| 37 | + | |
| 38 | + ## Development | |
| 39 | + | |
| 40 | + Use Node.js 20.9 or later. | |
| 41 | + | |
| 42 | + ```sh | |
| 43 | + npm ci | |
| 44 | + npm run dev | |
| 45 | + ``` | |
| 46 | + | |
| 47 | + Open http://localhost:3006. | |
| 48 | + | |
| 49 | + ```sh | |
| 50 | + npm run lint | |
| 51 | + npm run build | |
| 52 | + npm test | |
| 53 | + ``` | |
| 54 | + | |
| 55 | + ## App distribution | |
| 56 | + | |
| 57 | + This repository contains the website and verified public Mac distribution assets. The `/download` page starts the Mac installer download and shows installation instructions; iPhone and iPad links go to the public TestFlight beta, https://testflight.apple.com/join/1y7UFzjK (`IOS_TESTFLIGHT_URL` in `src/lib/links.ts`). We are not on the App Store. | |
| 58 | + | |
| 59 | + - The signed Sparkle update feed and release manifest are in `public/`. The Mac installers are served from Cloudflare R2 (see "Mac distribution"). | |
| 60 | + - `/tips` and `/donate` redirect to the homepage. The site has no tip or payment links. | |
| 61 | + - `NEXT_PUBLIC_MAINTENANCE_MODE=true` enables website maintenance mode. | |
| 62 | + | |
| 63 | + See [SETUP.md](SETUP.md) for configuration. | |
| 64 | + | |
| 65 | + ## Mac distribution | |
| 66 | + | |
| 67 | + The production Mac buttons lead to the original `/download` installation guide, which offers the signed installer and installation steps. | |
| 68 | + | |
| 69 | + The installers are not in git or the deploy. They live in the `jotley-media` Cloudflare R2 bucket at `https://media.jotley.ai/downloads/Jotley-<version>-<build>.dmg`, with master copies on the Expand drive in `/Volumes/Expand/Video/Library/website-media/jotley/downloads`. The site keeps installer URLs on jotley.ai: `vercel.json` permanently redirects `https://jotley.ai/Jotley-*.dmg` to the matching R2 file, which is served as an attachment under its own filename. The appcast, `mac-release.json`, the download page and installed apps can keep using jotley.ai URLs. Release 2.2 (417) is the Developer ID signed and Apple-notarized release from app source `codex/mac-local-only` at `9de2bad`, built by GitHub Actions run [39832953460](https://github.com/protomota/jotley-app/actions/runs/39832953460). It includes the reviewed Liquid Glass controls, lighter theme-tinted transcripts, consistent onboarding, contextual Mac menus, inline transcript editing, aligned recording controls, restored native sidebar toggle and scroll-to-top fixes. The live onboarding walkthrough is available at [media.jotley.ai](https://media.jotley.ai/clips/jotley-onboarding-main-window-20261020.mp4). `public/install-jotley-339.jpg` is a real Finder capture of that signed installer, with its saved layout and embedded artwork; it replaces the old DMG contents image in the installation guide. `public/appcast.xml` is the Sparkle feed, using the existing app public key. `public/mac-release.json` records the version, build, byte count and SHA-256 digest. These files are public distribution assets; private signing material never belongs here. | |
| 70 | + | |
| 71 | + For a future release: | |
| 72 | + | |
| 73 | + 1. Verify Apple notarization and the Sparkle signature. | |
| 74 | + 2. Copy the DMG to the Expand-drive folder above, then run `python3 /Volumes/Expand/Video/Library/website-media/r2_media.py upload jotley downloads/Jotley-<version>-<build>.dmg` and `verify jotley`. Never commit the DMG. | |
| 75 | + 3. Update `public/appcast.xml` and `public/mac-release.json` together. Keep their URLs on `https://jotley.ai/`. | |
| 76 | + 4. Let the original installation page select the newest installer from the appcast, and run the production build and browser tests. Deploy the matching committed branch to the existing `projectatomai/jotley-site` Vercel project with the production target. Retain old release files in R2 while publishing a successor. No app-source repository visibility change is needed. | |
| 77 | + | |
| 78 | + `e2e/mac-download.spec.ts` checks actual download bytes against the manifest and verifies the Ed25519 signature using the public key. It checks automatic download on entry, manual download retries, the original installation screenshots, and home-page Mac destinations. Use a fresh local port and `TEST_BASE_URL` if the standard development port is occupied. | |
| 79 | + | |
| 80 | + The original installation page and components were restored from site commit `5c453acd5e0b331b91f470dab0cb175b9efa60e9`; four installation screenshots were restored byte-for-byte. `/downloads` is not a page. Legacy `/downloads/:file` asset requests redirect to the identical root file, and from there to R2, so previously fetched update feeds can still retrieve the signed installer. | |
| 81 | + | |
| 82 | + The iPhone v2 and iPad v3 tutorials use a rounded screen mask that follows the 3D device, with matched captions and 720p/1080p/4K60 exports. See [the screen-mask fix and verification](docs/video-fixes/README.md). |
SETUP.md added
| 1 | + # Website setup | |
| 2 | + | |
| 3 | + 1. Run `npm ci` in the repository. | |
| 4 | + 2. Optionally create `.env.local` using the variables below. | |
| 5 | + 3. Run `npm run dev` and open http://localhost:3006. | |
| 6 | + | |
| 7 | + ```dotenv | |
| 8 | + NEXT_PUBLIC_IOS_APP_STORE_URL=https://apps.apple.com/us/app/jotley/id6746770199 | |
| 9 | + NEXT_PUBLIC_MAINTENANCE_MODE=false | |
| 10 | + ``` | |
| 11 | + | |
| 12 | + The website does not require credentials to run. The iPhone/iPad app download is provided through an external App Store link. The Mac app download is coming soon; no Mac download link is currently published. No app binaries or update feeds belong in `public/`. | |
| 13 | + | |
| 14 | + The app source repository is `https://github.com/protomota/jotley`. It is currently private and will become public. The support page links to its GitHub issues; visitors can submit bugs once the repository is public. Do not change the repository's visibility as part of website work. The website's free and open source messaging stays in place. | |
| 15 | + | |
| 16 | + Support is handled only through `https://github.com/protomota/jotley/issues`; the website has no support form or email support. Website analytics measure page visits and download-link interactions independently of Jotley’s on-device processing. | |
| 17 | + | |
| 18 | + The site has no tip, donation or payment links. `/tips` and `/donate` redirect to the homepage. | |
| 19 | + | |
| 20 | + Before publishing, run `npm run lint`, `npm run build`, and `npm test`. |
cloudflare-worker.mjs added
| 1 | + import handler from './.open-next/worker.js'; | |
| 2 | + import config from './vercel.json'; | |
| 3 | + | |
| 4 | + const rules = config.headers; | |
| 5 | + | |
| 6 | + export default { | |
| 7 | + async fetch(request, env, ctx) { | |
| 8 | + const url = new URL(request.url); | |
| 9 | + const consent = rules.find(rule => | |
| 10 | + rule.source === url.pathname && | |
| 11 | + rule.has?.some(condition => condition.key === 'choice' && url.searchParams.get('choice') === condition.value) | |
| 12 | + ); | |
| 13 | + // OpenNext serves public assets without running Next's query-dependent headers. | |
| 14 | + const response = consent ? await env.ASSETS.fetch(request) : await handler.fetch(request, env, ctx); | |
| 15 | + const headers = new Headers(response.headers); | |
| 16 | + for (const { key, value } of consent?.headers ?? []) headers.set(key, value); | |
| 17 | + | |
| 18 | + if (!consent && response.status === 200 && !url.pathname.startsWith('/_next/')) { | |
| 19 | + const cacheSource = url.pathname.startsWith('/media/films/') | |
| 20 | + ? '/media/films/(.*)' | |
| 21 | + : /^\/media\/(clips|shots)\//.test(url.pathname) | |
| 22 | + ? '/media/(clips|shots)/(.*)' | |
| 23 | + : '/(.*)'; | |
| 24 | + for (const { key, value } of rules.find(rule => rule.source === cacheSource).headers) headers.set(key, value); | |
| 25 | + } | |
| 26 | + | |
| 27 | + return new Response(response.body, { status: response.status, statusText: response.statusText, headers }); | |
| 28 | + }, | |
| 29 | + }; |
docs/JOTLEY-2.2.1-STORE-COPY.md added
| 1 | + # Jotley 2.2.1 store update | |
| 2 | + | |
| 3 | + Prepared November 10, 2026. The current live iPhone/iPad App Store version is 2.2; the point-one update is 2.2.1. This is draft release copy until the corresponding build and support flow are verified. Do not submit App Review automatically. | |
| 4 | + | |
| 5 | + ## What’s New — iPhone and iPad | |
| 6 | + | |
| 7 | + Make every summary your own. | |
| 8 | + | |
| 9 | + • Custom summary templates: create and name your own templates, write the instructions you want Jotley to follow, and manage them in Settings → Summary Templates. | |
| 10 | + • Start from a built-in template: duplicate an existing format and adjust its headings, focus and level of detail. | |
| 11 | + • Preview before you save a summary: try a template on one of your notes without changing its saved summary. | |
| 12 | + • Use your custom templates when generating a note's summary. | |
| 13 | + • Backup and restore: save all notes, folders, tags, note chats, markers and custom templates in one portable file. Restore adds missing items while keeping existing versions. | |
| 14 | + • Personal technical support: purchase one support ticket for one Jotley issue, sign in with Apple, and keep your request and follow-up replies together in a private conversation with a real person. Your tickets are available in the app and on the Jotley website. | |
| 15 | + • A supporter thank-you: confirmed tips and support-ticket purchases receive a Jotley Supporter badge and purple confetti. | |
| 16 | + • Cleaner lists and summaries, including a fix for checklist brackets appearing in summary text. | |
| 17 | + • Bug fixes and improvements. | |
| 18 | + | |
| 19 | + Also new in Jotley for Mac: MCP support. Connect Claude or Codex on your Mac to read, create and edit notes, update titles, summaries and dates, and manage tags, folders and summary templates. Choose read-only or read-and-write access in Jotley’s Mac settings. MCP connections run on your Mac; connected agents may process retrieved content through their own AI provider. | |
| 20 | + | |
| 21 | + All note-taking features are free. Jotley’s built-in transcription and summaries continue to run on-device. Tips and personal technical support are optional paid purchases; there is no subscription or promised number of support hours. | |
| 22 | + | |
| 23 | + ## Templates screenshot slide | |
| 24 | + | |
| 25 | + Add one slide to each existing iPhone and iPad screenshot set, retaining the existing Jotley logo, Comfortaa type, purple palette and device framing. Use actual screens from the new build, with a synthetic custom template. Preserve all existing slides unless a screenshot slot must be replaced. | |
| 26 | + | |
| 27 | + Headline: **Your summaries. Your format.** | |
| 28 | + | |
| 29 | + Supporting line: **Create custom templates for the way you think.** | |
| 30 | + | |
| 31 | + Every new or updated screenshot carries: **All note-taking features are free. Optional paid support and tips.** Apply the same distinction to app onboarding, website copy and the tutorial availability/outro. Do not promise a completely free service with no in-app purchases. | |
| 32 | + | |
| 33 | + Show the custom template editor and its named template in context. Prefer the real preview action or a saved template over a generic picker containing only built-in templates. Do not put Mac interface screenshots in the iPhone/iPad set. | |
| 34 | + | |
| 35 | + ## Store description addition | |
| 36 | + | |
| 37 | + CUSTOM SUMMARY TEMPLATES | |
| 38 | + Create and manage your own summary templates. Choose the headings, focus and level of detail, duplicate a built-in template, and preview the result on a note before changing its saved summary. | |
| 39 | + | |
| 40 | + JOTLEY FOR MAC — NOW WITH MCP | |
| 41 | + Jotley for Mac also supports MCP connections to Claude, Codex and compatible agents running on your Mac. Let your chosen agent read or edit notes, manage folders and tags, and work with summary templates. You control access in Jotley’s Mac settings. MCP support is a Mac feature; connected agents may send retrieved content to their own AI providers. | |
| 42 | + | |
| 43 | + PERSONAL TECHNICAL SUPPORT | |
| 44 | + Optional personal support is available as a one-time in-app purchase for each Jotley issue. Sign in with Apple, describe your issue, and follow the conversation in the app or at jotley.ai. Each ticket includes follow-up replies for that issue. Free bug reporting and purchase help remain available. | |
| 45 | + | |
| 46 | + ## Verification before publishing | |
| 47 | + | |
| 48 | + Verify the final build, purchase-to-ticket flow, screenshot accuracy, current App Store screenshot dimensions and all localized metadata before uploading. Support wording must be omitted if paid support is held out of the final release. This direct user request for detailed What’s New supersedes the earlier general “Bug fixes and improvements.” preference for this update. |
docs/video-fixes/README.md added
| 1 | + # Rounded tutorial screens — October 17, 2026 | |
| 2 | + | |
| 3 | + The 3D tutorial devices use real video in a DOM screen projected over the WebGL device. The tutorial screen wrapper lacked a mask, so rectangular video corners covered the rounded bezel. | |
| 4 | + | |
| 5 | + `rounded-device-screen.patch` updates `composition/shared/social-stage.js`: mapScreen clips the DOM surface in local screen coordinates with the same quadratic corners and dimensions as the rounded 3D screen geometry, then applies its existing perspective transform. It also sets overflow clipping and overrides an approximate CSS border radius. No recording content, narration, timing or device choreography was changed by the masking patch. | |
| 6 | + | |
| 7 | + The shared change was applied to the active iPhone/iPad tutorial and portrait/landscape social projects. Future regeneration already stages this shared file through build_full_tutorials.py / build_social.py. The local composition root is the Jotley App Store Videos production folder on the Music volume; the website source keeps the focused patch here instead of committing large masters or private media. | |
| 8 | + | |
| 9 | + The tutorial projects were upgraded from HyperFrames 0.8.157 to 0.8.169. Both passed the current CLI check with no lint, runtime, layout or contrast findings. Corrected 4K60 masters are rendered locally. Delivery uses new immutable R2 filenames: iPhone v2 and iPad v3; old uploads are retained. Captions come from the matching existing production edit. The site offers 720p, 1080p and 2160p variants. | |
| 10 | + | |
| 11 | + The delivery verification report records sizes, SHA-256 hashes, actual duration, dimensions, 60 fps, stereo 48 kHz audio and full-decode checks. Representative encoded frames include the iPhone tag keyboard and iPad library chapters. All sources and outputs remain editable; only the website manifests, small posters/captions, this focused patch and verification documentation belong in this repository. |
docs/video-fixes/rounded-device-screen.patch added
| 1 | + --- a/composition/shared/social-stage.js | |
| 2 | + +++ b/composition/shared/social-stage.js | |
| 3 | + @@ -208,6 +208,14 @@ | |
| 4 | + const corners = [new THREE.Vector3(), new THREE.Vector3(), new THREE.Vector3(), new THREE.Vector3()]; | |
| 5 | + const normal = new THREE.Vector3(), centre = new THREE.Vector3(), toCam = new THREE.Vector3(); | |
| 6 | + const mapScreen = (el, group, dims) => { | |
| 7 | + + // The footage is a DOM layer above WebGL. Clip it in screen-local space | |
| 8 | + + // before the perspective transform, using the same quadratic corners as | |
| 9 | + + // roundedPlane(), so no rectangular video corners cover the device bezel. | |
| 10 | + + const w = el.offsetWidth, h = el.offsetHeight; | |
| 11 | + + const rx = dims.sr / dims.sw * w, ry = dims.sr / dims.sh * h; | |
| 12 | + + el.style.borderRadius = "0"; | |
| 13 | + + el.style.overflow = "hidden"; | |
| 14 | + + el.style.clipPath = `path("M ${rx} 0 H ${w - rx} Q ${w} 0 ${w} ${ry} V ${h - ry} Q ${w} ${h} ${w - rx} ${h} H ${rx} Q 0 ${h} 0 ${h - ry} V ${ry} Q 0 0 ${rx} 0 Z")`; | |
| 15 | + const z = dims.d / 2 + 0.0016; | |
| 16 | + corners[0].set(-dims.sw / 2, dims.sh / 2, z); | |
| 17 | + corners[1].set(dims.sw / 2, dims.sh / 2, z); |
docs/video-fixes/verification.json added
| 1 | + { | |
| 2 | + "iphone": { | |
| 3 | + "stem": "jotley-tutorial-iphone-v2", | |
| 4 | + "duration": 84.333, | |
| 5 | + "outputs": [ | |
| 6 | + { | |
| 7 | + "file": "jotley-tutorial-iphone-v2-2160p.mp4", | |
| 8 | + "bytes": 272393936, | |
| 9 | + "sha256": "303a4a4a5faabf5b2aca9315b578d396cc7991f38a290d09d35482f19e63ba08", | |
| 10 | + "height": 2160, | |
| 11 | + "fps": 60, | |
| 12 | + "duration": 84.333333, | |
| 13 | + "clean_decode": true, | |
| 14 | + "width": 3840, | |
| 15 | + "video_codec": "h264", | |
| 16 | + "audio_codec": "aac", | |
| 17 | + "audio_channels": 2, | |
| 18 | + "sample_rate": 48000 | |
| 19 | + }, | |
| 20 | + { | |
| 21 | + "file": "jotley-tutorial-iphone-v2-1080p.mp4", | |
| 22 | + "bytes": 18525821, | |
| 23 | + "sha256": "e44ca14ada673677b7a76fe6c15790be7381db6f8d255b84079b9f4db176016c", | |
| 24 | + "height": 1080, | |
| 25 | + "fps": 60, | |
| 26 | + "duration": 84.333333, | |
| 27 | + "clean_decode": true, | |
| 28 | + "width": 1920, | |
| 29 | + "video_codec": "h264", | |
| 30 | + "audio_codec": "aac", | |
| 31 | + "audio_channels": 2, | |
| 32 | + "sample_rate": 48000 | |
| 33 | + }, | |
| 34 | + { | |
| 35 | + "file": "jotley-tutorial-iphone-v2-720p.mp4", | |
| 36 | + "bytes": 10826578, | |
| 37 | + "sha256": "62fdedc1f0d5ef669daac2a455def621982fbb314cf0babf5af40bce1bdf09bc", | |
| 38 | + "height": 720, | |
| 39 | + "fps": 60, | |
| 40 | + "duration": 84.333333, | |
| 41 | + "clean_decode": true, | |
| 42 | + "width": 1280, | |
| 43 | + "video_codec": "h264", | |
| 44 | + "audio_codec": "aac", | |
| 45 | + "audio_channels": 2, | |
| 46 | + "sample_rate": 48000 | |
| 47 | + } | |
| 48 | + ], | |
| 49 | + "chapters": [ | |
| 50 | + { | |
| 51 | + "key": "intro", | |
| 52 | + "start": 0.8, | |
| 53 | + "end": 4.775 | |
| 54 | + }, | |
| 55 | + { | |
| 56 | + "key": "capture", | |
| 57 | + "start": 5.775, | |
| 58 | + "end": 19.575 | |
| 59 | + }, | |
| 60 | + { | |
| 61 | + "key": "summary", | |
| 62 | + "start": 20.575, | |
| 63 | + "end": 31.075 | |
| 64 | + }, | |
| 65 | + { | |
| 66 | + "key": "ask", | |
| 67 | + "start": 32.075, | |
| 68 | + "end": 41.675 | |
| 69 | + }, | |
| 70 | + { | |
| 71 | + "key": "tag", | |
| 72 | + "start": 42.675, | |
| 73 | + "end": 49.275 | |
| 74 | + }, | |
| 75 | + { | |
| 76 | + "key": "find", | |
| 77 | + "start": 50.275, | |
| 78 | + "end": 60.675 | |
| 79 | + }, | |
| 80 | + { | |
| 81 | + "key": "privacy", | |
| 82 | + "start": 61.675, | |
| 83 | + "end": 69.665 | |
| 84 | + }, | |
| 85 | + { | |
| 86 | + "key": "close", | |
| 87 | + "start": 70.665, | |
| 88 | + "end": 84.333 | |
| 89 | + } | |
| 90 | + ] | |
| 91 | + }, | |
| 92 | + "ipad": { | |
| 93 | + "stem": "jotley-tutorial-ipad-v3", | |
| 94 | + "duration": 71.528, | |
| 95 | + "outputs": [ | |
| 96 | + { | |
| 97 | + "file": "jotley-tutorial-ipad-v3-2160p.mp4", | |
| 98 | + "bytes": 237069720, | |
| 99 | + "sha256": "d0ba8ccce417a31dbeefe84f7ec7bb24591ac609040e95416a47cb608c86bab3", | |
| 100 | + "height": 2160, | |
| 101 | + "fps": 60, | |
| 102 | + "duration": 71.533333, | |
| 103 | + "clean_decode": true, | |
| 104 | + "width": 3840, | |
| 105 | + "video_codec": "h264", | |
| 106 | + "audio_codec": "aac", | |
| 107 | + "audio_channels": 2, | |
| 108 | + "sample_rate": 48000 | |
| 109 | + }, | |
| 110 | + { | |
| 111 | + "file": "jotley-tutorial-ipad-v3-1080p.mp4", | |
| 112 | + "bytes": 18258858, | |
| 113 | + "sha256": "0cbd4a8da9050cc3281f5e2eef430ce326e092d6e4e3c8c93f9385d99b33c4a1", | |
| 114 | + "height": 1080, | |
| 115 | + "fps": 60, | |
| 116 | + "duration": 71.533333, | |
| 117 | + "clean_decode": true, | |
| 118 | + "width": 1920, | |
| 119 | + "video_codec": "h264", | |
| 120 | + "audio_codec": "aac", | |
| 121 | + "audio_channels": 2, | |
| 122 | + "sample_rate": 48000 | |
| 123 | + }, | |
| 124 | + { | |
| 125 | + "file": "jotley-tutorial-ipad-v3-720p.mp4", | |
| 126 | + "bytes": 10304762, | |
| 127 | + "sha256": "a8c64ff47f3c173f1ad6b53c3fb425955038e4ae4f0c1c6150eb612e90e5b8a4", | |
| 128 | + "height": 720, | |
| 129 | + "fps": 60, | |
| 130 | + "duration": 71.533333, | |
| 131 | + "clean_decode": true, | |
| 132 | + "width": 1280, | |
| 133 | + "video_codec": "h264", | |
| 134 | + "audio_codec": "aac", | |
| 135 | + "audio_channels": 2, | |
| 136 | + "sample_rate": 48000 | |
| 137 | + } | |
| 138 | + ], | |
| 139 | + "chapters": [ | |
| 140 | + { | |
| 141 | + "key": "intro", | |
| 142 | + "start": 0.8, | |
| 143 | + "end": 4.615 | |
| 144 | + }, | |
| 145 | + { | |
| 146 | + "key": "capture", | |
| 147 | + "start": 5.615, | |
| 148 | + "end": 13.015 | |
| 149 | + }, | |
| 150 | + { | |
| 151 | + "key": "summary", | |
| 152 | + "start": 14.015, | |
| 153 | + "end": 23.015 | |
| 154 | + }, | |
| 155 | + { | |
| 156 | + "key": "ask", | |
| 157 | + "start": 24.015, | |
| 158 | + "end": 34.815 | |
| 159 | + }, | |
| 160 | + { | |
| 161 | + "key": "layout", | |
| 162 | + "start": 35.815, | |
| 163 | + "end": 48.515 | |
| 164 | + }, | |
| 165 | + { | |
| 166 | + "key": "privacy", | |
| 167 | + "start": 49.515, | |
| 168 | + "end": 56.86 | |
| 169 | + }, | |
| 170 | + { | |
| 171 | + "key": "close", | |
| 172 | + "start": 57.86, | |
| 173 | + "end": 71.528 | |
| 174 | + } | |
| 175 | + ] | |
| 176 | + } | |
| 177 | + } |
e2e/free-app.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + | |
| 3 | + const retiredRoutes = [ | |
| 4 | + '/signin', '/account', '/account-deleted', '/subscription-check', | |
| 5 | + '/post-auth-redirect', '/mac-app-success', | |
| 6 | + ]; | |
| 7 | + | |
| 8 | + test.describe('Free app website', () => { | |
| 9 | + test('browsing the site never starts account or billing requests', async ({ page }) => { | |
| 10 | + const retiredRequests: string[] = []; | |
| 11 | + page.on('request', (request) => { | |
| 12 | + if (/supabase|stripe|\/api\/(?:users|subscription|auth)/i.test(request.url())) { | |
| 13 | + retiredRequests.push(request.url()); | |
| 14 | + } | |
| 15 | + }); | |
| 16 | + for (const route of ['/', '/download', '/support', '/privacy', '/tos']) { | |
| 17 | + await page.goto(route); | |
| 18 | + await expect(page.getByRole('heading').first()).toBeVisible(); | |
| 19 | + await expect(page.locator('body')).toContainText(/free and open source|completely free\. open source/i); | |
| 20 | + if (route !== '/download') { | |
| 21 | + await expect(page.locator('body')).toContainText(/no subscriptions/i); | |
| 22 | + await expect(page.locator('body')).toContainText(/no in-app purchases/i); | |
| 23 | + } | |
| 24 | + await expect(page.locator('a[href*="signin"], a[href*="account"], a[href*="subscription"], a[href*="stripe"], a[href*="buymeacoffee"], a[href="/tips"]')).toHaveCount(0); | |
| 25 | + await expect(page.locator('body')).not.toContainText(/buy me a coffee|leave a tip|\$9\.99|paid support/i); | |
| 26 | + await expect(page.getByRole('button', { name: /get essential|get unlimited|sign in/i })).toHaveCount(0); | |
| 27 | + await expect(page.locator('body')).not.toContainText(/upgrade when|billed monthly|billing cycle|subscription-based|Deepgram|OpenAI|Supabase|Stripe|YouTube|web(?:site)?(?: page)? imports|imports from the web|importing content from the web/i); | |
| 28 | + } | |
| 29 | + expect(retiredRequests).toEqual([]); | |
| 30 | + }); | |
| 31 | + | |
| 32 | + test('FAQ explains open source, no purchases and locked-device transcription', async ({ page }) => { | |
| 33 | + await page.goto('/'); | |
| 34 | + await page.getByRole('button', { name: 'Is Jotley free?' }).click(); | |
| 35 | + await expect(page.locator('.faq-item.open')).toContainText('completely free'); | |
| 36 | + await expect(page.locator('.faq-item.open')).toContainText('No subscriptions, no in-app purchases, no paid upgrades'); | |
| 37 | + await expect(page.locator('.faq-item.open')).toContainText('No strings attached.'); | |
| 38 | + await page.getByRole('button', { name: 'Does Jotley keep transcribing when my iPhone is locked?' }).click(); | |
| 39 | + await expect(page.locator('.faq-item.open')).toContainText('keeps transcribing when your device is locked'); | |
| 40 | + await expect(page.locator('.faq-item.open')).toContainText('Private iCloud sync is on by default'); | |
| 41 | + }); | |
| 42 | + | |
| 43 | + test('MIT terms allow using and modifying the app', async ({ page }) => { | |
| 44 | + await page.goto('/tos'); | |
| 45 | + await expect(page.getByRole('heading', { name: '9. Source License', exact: true })).toBeVisible(); | |
| 46 | + await expect(page.locator('body')).toContainText('MIT license'); | |
| 47 | + await expect(page.locator('body')).not.toContainText(/reverse-engineer or decompile|No rights are granted except/); | |
| 48 | + }); | |
| 49 | + | |
| 50 | + test('Mac installer is available through an explicit download button', async ({ page, request }) => { | |
| 51 | + const manifestResponse = await request.get('/mac-release.json'); | |
| 52 | + expect(manifestResponse.ok()).toBeTruthy(); | |
| 53 | + const manifest = await manifestResponse.json(); | |
| 54 | + await page.goto('/download'); | |
| 55 | + const download = page.waitForEvent('download'); | |
| 56 | + await page.getByRole('link', { name: 'Download Jotley for Mac', exact: true }).click(); | |
| 57 | + expect((await download).suggestedFilename()).toBe(manifest.file); | |
| 58 | + await expect(page.getByRole('link', { name: 'Download Jotley for Mac', exact: true })).toHaveAttribute('href', `/${manifest.file}`); | |
| 59 | + await expect(page).toHaveURL(/\/download$/); | |
| 60 | + }); | |
| 61 | + | |
| 62 | + for (const route of retiredRoutes) { | |
| 63 | + test(`retired route ${route} returns 404`, async ({ page }) => { | |
| 64 | + const response = await page.goto(route); | |
| 65 | + expect(response?.status()).toBe(404); | |
| 66 | + }); | |
| 67 | + } | |
| 68 | + | |
| 69 | + test('retired installers are no longer served', async ({ request }) => { | |
| 70 | + for (const path of ['/Jotley-1.0.38-b314.dmg', '/Jotley314-313.delta']) { | |
| 71 | + const response = await request.get(path); | |
| 72 | + expect(response.status()).toBe(404); | |
| 73 | + } | |
| 74 | + }); | |
| 75 | + | |
| 76 | + test('sitemap contains only public site pages', async ({ request }) => { | |
| 77 | + const response = await request.get('/sitemap.xml'); | |
| 78 | + expect(response.ok()).toBeTruthy(); | |
| 79 | + const sitemap = await response.text(); | |
| 80 | + for (const route of retiredRoutes) expect(sitemap).not.toContain(route); | |
| 81 | + expect(sitemap).toContain('https://jotley.ai/support'); | |
| 82 | + expect(sitemap).not.toContain('https://jotley.ai/tips'); | |
| 83 | + }); | |
| 84 | + }); |
e2e/homepage.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + | |
| 3 | + test.describe('Home page', () => { | |
| 4 | + test.beforeEach(async ({ page }) => { | |
| 5 | + await page.goto('/'); | |
| 6 | + | |
| 7 | + const isMaintenanceMode = await page.getByText(/maintenance/i).isVisible() | |
| 8 | + .catch(() => false); | |
| 9 | + | |
| 10 | + if (isMaintenanceMode) { | |
| 11 | + test.skip(true, 'Site is in maintenance mode'); | |
| 12 | + } | |
| 13 | + }); | |
| 14 | + | |
| 15 | + test('has correct page title', async ({ page }) => { | |
| 16 | + await expect(page).toHaveTitle(/Jotley/i); | |
| 17 | + }); | |
| 18 | + | |
| 19 | + test('renders the hero', async ({ page }) => { | |
| 20 | + await expect(page.getByRole('heading', { level: 1 }).first()).toBeVisible(); | |
| 21 | + await expect(page.getByText(/leave the notes to us/i)).toBeVisible(); | |
| 22 | + }); | |
| 23 | + | |
| 24 | + test('shows the native apps section', async ({ page }) => { | |
| 25 | + await expect( | |
| 26 | + page.getByRole('heading', { name: 'Built for Apple Intelligence.' }) | |
| 27 | + ).toBeVisible(); | |
| 28 | + }); | |
| 29 | + | |
| 30 | + test('shows the free app section', async ({ page }) => { | |
| 31 | + await expect(page.getByRole('heading', { name: 'Completely free. Open source.' })).toBeVisible(); | |
| 32 | + await expect(page.getByText('All features included', { exact: true })).toBeVisible(); | |
| 33 | + await expect(page.getByText('No login required', { exact: true })).toBeVisible(); | |
| 34 | + await expect(page.getByText('On-device AI', { exact: true })).toBeVisible(); | |
| 35 | + }); | |
| 36 | + }); | |
| 37 | + | |
| 38 | + test.describe('Home page - Responsive', () => { | |
| 39 | + test('displays correctly on mobile', async ({ page }) => { | |
| 40 | + await page.setViewportSize({ width: 375, height: 667 }); | |
| 41 | + await page.goto('/'); | |
| 42 | + | |
| 43 | + await expect(page.getByRole('heading', { level: 1 }).first()).toBeVisible(); | |
| 44 | + }); | |
| 45 | + | |
| 46 | + test('displays correctly on tablet', async ({ page }) => { | |
| 47 | + await page.setViewportSize({ width: 768, height: 1024 }); | |
| 48 | + await page.goto('/'); | |
| 49 | + | |
| 50 | + await expect(page.getByRole('heading', { level: 1 }).first()).toBeVisible(); | |
| 51 | + }); | |
| 52 | + }); |
e2e/mac-download.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + import { createHash, createPublicKey, verify } from 'node:crypto'; | |
| 3 | + | |
| 4 | + test('Mac download matches the website release manifest', async ({ request }) => { | |
| 5 | + const manifestResponse = await request.get('/mac-release.json'); | |
| 6 | + expect(manifestResponse.ok()).toBeTruthy(); | |
| 7 | + const manifest = await manifestResponse.json(); | |
| 8 | + expect(manifest.version).toMatch(/^\d+(\.\d+){1,2}$/); | |
| 9 | + expect(manifest.build).toBeGreaterThan(0); | |
| 10 | + expect(manifest.file).toBe(`Jotley-${manifest.version}-${manifest.build}.dmg`); | |
| 11 | + const response = await request.get(`https://jotley.ai/${manifest.file}`); | |
| 12 | + expect(response.ok()).toBeTruthy(); | |
| 13 | + const bytes = await response.body(); | |
| 14 | + expect(bytes.length).toBe(manifest.bytes); | |
| 15 | + expect(createHash('sha256').update(bytes).digest('hex')).toBe(manifest.sha256); | |
| 16 | + }); | |
| 17 | + | |
| 18 | + test('the website and Sparkle serve the same signed Mac release', async ({ request }) => { | |
| 19 | + const manifestResponse = await request.get('/mac-release.json'); | |
| 20 | + expect(manifestResponse.ok()).toBeTruthy(); | |
| 21 | + const manifest = await manifestResponse.json(); | |
| 22 | + const feedResponse = await request.get('/appcast.xml'); | |
| 23 | + expect(feedResponse.ok()).toBeTruthy(); | |
| 24 | + const feed = await feedResponse.text(); | |
| 25 | + const firstItem = feed.match(/<item>[\s\S]*?<\/item>/)?.[0] ?? ''; | |
| 26 | + const url = firstItem.match(/<enclosure\s[^>]*\burl="(https:\/\/jotley\.ai\/Jotley-[\w.-]+\.dmg)"/)?.[1]; | |
| 27 | + const length = firstItem.match(/<enclosure\s[^>]*\blength="(\d+)"/)?.[1]; | |
| 28 | + const signature = firstItem.match(/sparkle:edSignature="([^"]+)"/)?.[1]; | |
| 29 | + expect(firstItem).toContain(`<sparkle:version>${manifest.build}</sparkle:version>`); | |
| 30 | + expect(firstItem).toContain(`<sparkle:shortVersionString>${manifest.version}</sparkle:shortVersionString>`); | |
| 31 | + const feedBuilds = Array.from(feed.matchAll(/<sparkle:version>(\d+)<\/sparkle:version>/g), match => Number(match[1])); | |
| 32 | + expect(Math.max(...feedBuilds)).toBe(manifest.build); | |
| 33 | + expect(url).toBe(`https://jotley.ai/${manifest.file}`); | |
| 34 | + expect(Number(length)).toBe(manifest.bytes); | |
| 35 | + expect(signature).toBeTruthy(); | |
| 36 | + expect(firstItem).toContain('<sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion>'); | |
| 37 | + const response = await request.get(url!); | |
| 38 | + expect(response.ok()).toBeTruthy(); | |
| 39 | + const bytes = await response.body(); | |
| 40 | + expect(bytes.length).toBe(Number(length)); | |
| 41 | + expect(createHash('sha256').update(bytes).digest('hex')).toBe(manifest.sha256); | |
| 42 | + const key = createPublicKey({ | |
| 43 | + key: Buffer.concat([ | |
| 44 | + Buffer.from('302a300506032b6570032100', 'hex'), | |
| 45 | + Buffer.from('oVkqL3P3OGrwFhzgcWJQcF2dQ2Dn2rBvlB3bNOXGZSc=', 'base64'), | |
| 46 | + ]), | |
| 47 | + type: 'spki', format: 'der', | |
| 48 | + }); | |
| 49 | + expect(verify(null, bytes, key, Buffer.from(signature!, 'base64'))).toBeTruthy(); | |
| 50 | + }); | |
| 51 | + | |
| 52 | + test('the installation page shows free feedback and downloads only after a click', async ({ page, request }) => { | |
| 53 | + const manifest = await (await request.get('/mac-release.json')).json(); | |
| 54 | + await page.goto('/'); | |
| 55 | + const links = page.getByRole('link', { name: 'Download for Mac', exact: true }); | |
| 56 | + expect(await links.count()).toBe(3); | |
| 57 | + await expect(page.locator('.mac-availability, .mac-download-status')).toHaveCount(0); | |
| 58 | + await expect(page.locator('.platform-downloads').filter({ hasText: /coming soon/i })).toHaveCount(0); | |
| 59 | + // Two TestFlight pills plus the phone-width header link. | |
| 60 | + await expect(page.locator('a[href="https://testflight.apple.com/join/1y7UFzjK"]')).toHaveCount(3); | |
| 61 | + await expect(page.getByRole('link', { name: 'Join the TestFlight beta', exact: true }).first()).toHaveAttribute('href', 'https://testflight.apple.com/join/1y7UFzjK'); | |
| 62 | + await expect(page.locator('a[href*="apps.apple.com"]')).toHaveCount(0); | |
| 63 | + for (const link of await links.all()) await expect(link).toHaveAttribute('href', '/download'); | |
| 64 | + const downloads: string[] = []; | |
| 65 | + page.on('download', download => downloads.push(download.suggestedFilename())); | |
| 66 | + await page.goto('/download'); | |
| 67 | + await expect(page.getByRole('heading', { name: 'Free software. Supported by people.' })).toBeVisible(); | |
| 68 | + const feedback = page.locator('.dl-support').getByRole('link', { name: 'Send feedback' }); | |
| 69 | + await expect(feedback).toHaveAttribute('href', 'https://projectatom.ai/apps?app=jotley#feedback'); | |
| 70 | + await expect(page.locator('.dl-support')).not.toContainText(/tip|coffee|paid/i); | |
| 71 | + const downloadButton = page.getByRole('link', { name: 'Download Jotley for Mac', exact: true }); | |
| 72 | + await expect(downloadButton).toHaveAttribute('href', `/${manifest.file}`); | |
| 73 | + const feedbackBounds = await feedback.boundingBox(); | |
| 74 | + const downloadBounds = await downloadButton.boundingBox(); | |
| 75 | + expect(feedbackBounds!.y + feedbackBounds!.height).toBeLessThan(downloadBounds!.y); | |
| 76 | + await expect(page.getByRole('heading', { name: 'Download the Installer' })).toBeVisible(); | |
| 77 | + await expect(page.getByRole('heading', { name: 'Open DMG, Drag to Applications & Launch' })).toBeVisible(); | |
| 78 | + await expect(page.getByRole('heading', { name: 'Confirm Opening & Grant Permissions' })).toBeVisible(); | |
| 79 | + for (const alt of ['Jotley DMG file in Downloads folder', 'Jotley installer window, showing the app icon, Applications shortcut, and instructions to drag Jotley into Applications', 'Confirm opening Jotley', 'Jotley microphone access prompt']) { | |
| 80 | + const image = page.getByRole('img', { name: alt, exact: true }); | |
| 81 | + await image.scrollIntoViewIfNeeded(); | |
| 82 | + await expect.poll(() => image.evaluate(el => (el as HTMLImageElement).naturalWidth)).toBeGreaterThan(0); | |
| 83 | + } | |
| 84 | + const installer = page.locator('.dl-shot--installer'); | |
| 85 | + await expect(installer.getByRole('img')).toHaveAttribute('src', '/install-jotley.png'); | |
| 86 | + await expect(installer.locator('.dl-mark')).toHaveCount(0); | |
| 87 | + expect(downloads).toEqual([]); | |
| 88 | + const retry = page.waitForEvent('download'); | |
| 89 | + await downloadButton.click(); | |
| 90 | + expect((await retry).suggestedFilename()).toBe(manifest.file); | |
| 91 | + expect(downloads).toEqual([manifest.file]); | |
| 92 | + }); | |
| 93 | + | |
| 94 | + test('the singular installation page is canonical', async ({ request, baseURL }) => { | |
| 95 | + const page = await request.get('/download', { maxRedirects: 0 }); | |
| 96 | + expect(page.status()).toBe(200); | |
| 97 | + expect(page.headers().location).toBeUndefined(); | |
| 98 | + expect(await page.text()).toContain('https://jotley.ai/download'); | |
| 99 | + const legacyPage = await request.get('/downloads', { maxRedirects: 0 }); | |
| 100 | + const local = ['localhost', '127.0.0.1'].includes(new URL(baseURL!).hostname); | |
| 101 | + if (local) { | |
| 102 | + expect(legacyPage.status()).toBe(404); | |
| 103 | + } else { | |
| 104 | + expect(legacyPage.status()).toBe(308); | |
| 105 | + expect(legacyPage.headers().location).toBe('/download'); | |
| 106 | + } | |
| 107 | + }); |
e2e/navigation.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + | |
| 3 | + test.describe('Navigation', () => { | |
| 4 | + test('download page loads correctly', async ({ page }) => { | |
| 5 | + await page.goto('/download'); | |
| 6 | + | |
| 7 | + await expect(page).toHaveURL(/download/); | |
| 8 | + }); | |
| 9 | + | |
| 10 | + test('support opens the shared Jotley feedback form', async ({ page }) => { | |
| 11 | + await page.goto('/support'); | |
| 12 | + | |
| 13 | + const reportLink = page.getByRole('link', { name: 'Open the feedback form', exact: true }); | |
| 14 | + await expect(reportLink).toBeVisible(); | |
| 15 | + await expect(reportLink).toHaveAttribute('href', 'https://projectatom.ai/apps?app=jotley#feedback'); | |
| 16 | + await expect(page.locator('form, input, textarea, select')).toHaveCount(0); | |
| 17 | + await expect(page.locator('a[href^="mailto:"]')).toHaveCount(0); | |
| 18 | + }); | |
| 19 | + | |
| 20 | + test('privacy policy page loads', async ({ page }) => { | |
| 21 | + await page.goto('/privacy'); | |
| 22 | + | |
| 23 | + await expect(page).toHaveURL(/privacy/); | |
| 24 | + }); | |
| 25 | + | |
| 26 | + test('terms of service page loads', async ({ page }) => { | |
| 27 | + await page.goto('/tos'); | |
| 28 | + | |
| 29 | + await expect(page).toHaveURL(/tos/); | |
| 30 | + }); | |
| 31 | + | |
| 32 | + }); | |
| 33 | + | |
| 34 | + test.describe('External Links', () => { | |
| 35 | + test('footer credits Project ATOM and has no Protomota or personal links', async ({ page }) => { | |
| 36 | + await page.goto('/'); | |
| 37 | + | |
| 38 | + await expect(page.getByRole('link', { name: /A Project ATOM project/i }).first()).toHaveAttribute('href', 'https://projectatom.ai/'); | |
| 39 | + await expect(page.locator('a[href*="protomota.com"], a[href*="personal-site"], a[href*="personal-site"]')).toHaveCount(0); | |
| 40 | + await expect(page.getByRole('link', { name: 'Read the source on GitHub' })).toHaveAttribute('href', 'https://github.com/projectatomai/jotley'); | |
| 41 | + await expect(page.getByRole('link', { name: /buy me a coffee/i })).toHaveCount(0); | |
| 42 | + }); | |
| 43 | + }); |
e2e/seo.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + import { NextRequest } from 'next/server'; | |
| 3 | + import { middleware } from '../src/middleware'; | |
| 4 | + import { SITE_PAGES, SITE_URL, OG_IMAGE_PATH } from '../src/lib/site-metadata'; | |
| 5 | + | |
| 6 | + for (const { path, title, description } of Object.values(SITE_PAGES)) { | |
| 7 | + test(`SEO tags and indexable content for ${path}`, async ({ page }) => { | |
| 8 | + const response = await page.goto(path); | |
| 9 | + expect(response?.status()).toBe(200); | |
| 10 | + await expect(page).toHaveTitle(title); | |
| 11 | + await expect(page.locator('h1')).toHaveCount(1); | |
| 12 | + await expect(page.locator('h1')).toBeVisible(); | |
| 13 | + await expect(page.locator('link[rel="canonical"]')).toHaveCount(1); | |
| 14 | + await expect(page.locator('link[rel="canonical"]')).toHaveAttribute('href', new URL(path, SITE_URL).href.replace(/\/$/, '')); | |
| 15 | + await expect(page.locator('meta[name="description"]')).toHaveAttribute('content', description); | |
| 16 | + await expect(page.locator('meta[property="og:title"]')).toHaveAttribute('content', title); | |
| 17 | + await expect(page.locator('meta[property="og:description"]')).toHaveAttribute('content', description); | |
| 18 | + await expect(page.locator('meta[name="twitter:title"]')).toHaveAttribute('content', title); | |
| 19 | + await expect(page.locator('meta[name="twitter:description"]')).toHaveAttribute('content', description); | |
| 20 | + await expect(page.locator('meta[property="og:image"]')).toHaveAttribute('content', /\/og\/jotley-v2\.png$/); | |
| 21 | + await expect(page.locator('meta[name="robots"]')).not.toHaveAttribute('content', /noindex/); | |
| 22 | + }); | |
| 23 | + } | |
| 24 | + | |
| 25 | + test('sitemap matches canonical pages and robots allows crawling', async ({ request }) => { | |
| 26 | + const sitemap = await request.get('/sitemap.xml'); | |
| 27 | + expect(sitemap.status()).toBe(200); | |
| 28 | + const xml = await sitemap.text(); | |
| 29 | + const locations = Array.from(xml.matchAll(/<loc>(.*?)<\/loc>/g), match => match[1].replace(/\/$/, '')).sort(); | |
| 30 | + expect(locations).toEqual(Object.values(SITE_PAGES).map(({ path }) => new URL(path, SITE_URL).href.replace(/\/$/, '')).sort()); | |
| 31 | + expect(xml).not.toContain('<lastmod>'); | |
| 32 | + const robots = await request.get('/robots.txt'); | |
| 33 | + expect(robots.status()).toBe(200); | |
| 34 | + expect(await robots.text()).toContain('Allow: /'); | |
| 35 | + expect(await robots.text()).toContain(`Sitemap: ${SITE_URL}/sitemap.xml`); | |
| 36 | + }); | |
| 37 | + | |
| 38 | + test('home serves valid site name and publisher JSON-LD', async ({ page }) => { | |
| 39 | + await page.goto('/'); | |
| 40 | + const schema = JSON.parse(await page.locator('script[type="application/ld+json"]').innerText()); | |
| 41 | + expect(schema['@context']).toBe('https://schema.org'); | |
| 42 | + const website = schema['@graph'].find((item: { '@type': string }) => item['@type'] === 'WebSite'); | |
| 43 | + expect(website.name).toBe('Jotley'); | |
| 44 | + expect(website.url).toBe(SITE_URL); | |
| 45 | + expect(website.publisher['@id']).toBe('https://projectatom.ai/#org'); | |
| 46 | + expect(schema['@graph'].some((item: { '@id': string }) => item['@id'] === website.publisher['@id'])).toBe(true); | |
| 47 | + const app = schema['@graph'].find((item: { '@type': string }) => item['@type'] === 'SoftwareApplication'); | |
| 48 | + expect(app.name).toBe('Jotley'); | |
| 49 | + expect(app.offers).toBeUndefined(); | |
| 50 | + }); | |
| 51 | + | |
| 52 | + test('support serves FAQ JSON-LD that matches the visible questions', async ({ page }) => { | |
| 53 | + await page.goto('/help'); | |
| 54 | + const schema = JSON.parse(await page.locator('script[type="application/ld+json"]').innerText()); | |
| 55 | + const faq = schema['@graph'].find((item: { '@type': string }) => item['@type'] === 'FAQPage'); | |
| 56 | + expect(faq.mainEntity.length).toBeGreaterThan(0); | |
| 57 | + for (const question of faq.mainEntity) { | |
| 58 | + await expect(page.locator('.faq-q', { hasText: question.name })).toHaveCount(1); | |
| 59 | + } | |
| 60 | + }); | |
| 61 | + | |
| 62 | + test('llms.txt is served as plain text and names the app', async ({ request }) => { | |
| 63 | + const response = await request.get('/llms.txt'); | |
| 64 | + expect(response.status()).toBe(200); | |
| 65 | + expect(response.headers()['content-type']).toContain('text/plain'); | |
| 66 | + expect(await response.text()).toContain('# Jotley'); | |
| 67 | + }); | |
| 68 | + | |
| 69 | + test('utility pages stay out of search and missing pages return 404', async ({ page }) => { | |
| 70 | + for (const path of ['/maintenance', '/metadata-preview']) { | |
| 71 | + await page.goto(path); | |
| 72 | + await expect(page.locator('meta[name="robots"]')).toHaveAttribute('content', /noindex/); | |
| 73 | + await expect(page.locator('link[rel="canonical"]')).toHaveCount(0); | |
| 74 | + } | |
| 75 | + const response = await page.goto('/a-page-that-does-not-exist-seo-check'); | |
| 76 | + expect(response?.status()).toBe(404); | |
| 77 | + await expect(page.locator('meta[name="robots"][content*="noindex"]')).toHaveCount(1); | |
| 78 | + await expect(page.locator('link[rel="canonical"]')).toHaveCount(0); | |
| 79 | + }); | |
| 80 | + | |
| 81 | + test('OG endpoint serves the same PNG as the social card', async ({ request }) => { | |
| 82 | + const staticImage = await request.get(OG_IMAGE_PATH); | |
| 83 | + const endpoint = await request.get('/api/og'); | |
| 84 | + expect(staticImage.status()).toBe(200); | |
| 85 | + expect(endpoint.status()).toBe(200); | |
| 86 | + expect(endpoint.headers()['content-type']).toContain('image/png'); | |
| 87 | + expect(await endpoint.body()).toEqual(await staticImage.body()); | |
| 88 | + }); | |
| 89 | + | |
| 90 | + test('maintenance reports temporary downtime and keeps crawler files accessible', () => { | |
| 91 | + const previous = process.env.NEXT_PUBLIC_MAINTENANCE_MODE; | |
| 92 | + process.env.NEXT_PUBLIC_MAINTENANCE_MODE = 'true'; | |
| 93 | + try { | |
| 94 | + const response = middleware(new NextRequest(`${SITE_URL}/`)); | |
| 95 | + expect(response.status).toBe(503); | |
| 96 | + expect(response.headers.get('Retry-After')).toBe('3600'); | |
| 97 | + for (const path of ['/robots.txt', '/sitemap.xml', '/llms.txt', '/download']) { | |
| 98 | + expect(middleware(new NextRequest(`${SITE_URL}${path}`)).status).toBe(200); | |
| 99 | + } | |
| 100 | + } finally { | |
| 101 | + if (previous === undefined) delete process.env.NEXT_PUBLIC_MAINTENANCE_MODE; | |
| 102 | + else process.env.NEXT_PUBLIC_MAINTENANCE_MODE = previous; | |
| 103 | + } | |
| 104 | + }); |
e2e/smoke.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + | |
| 3 | + /** | |
| 4 | + * Smoke tests that work regardless of maintenance mode | |
| 5 | + */ | |
| 6 | + test.describe('Smoke Tests', () => { | |
| 7 | + test('site is reachable', async ({ page }) => { | |
| 8 | + const response = await page.goto('/'); | |
| 9 | + expect(response?.status()).toBeLessThan(500); | |
| 10 | + }); | |
| 11 | + | |
| 12 | + test('site returns HTML', async ({ page }) => { | |
| 13 | + await page.goto('/'); | |
| 14 | + const html = await page.content(); | |
| 15 | + expect(html).toContain('<!DOCTYPE html>'); | |
| 16 | + }); | |
| 17 | + | |
| 18 | + test('download page is reachable', async ({ page }) => { | |
| 19 | + const response = await page.goto('/download'); | |
| 20 | + expect(response?.status()).toBeLessThan(500); | |
| 21 | + }); | |
| 22 | + | |
| 23 | + test('privacy page is reachable', async ({ page }) => { | |
| 24 | + const response = await page.goto('/privacy'); | |
| 25 | + expect(response?.status()).toBeLessThan(500); | |
| 26 | + }); | |
| 27 | + | |
| 28 | + test('terms page is reachable', async ({ page }) => { | |
| 29 | + const response = await page.goto('/tos'); | |
| 30 | + expect(response?.status()).toBeLessThan(500); | |
| 31 | + }); | |
| 32 | + | |
| 33 | + test('home page shows native apps section when live', async ({ page }) => { | |
| 34 | + await page.goto('/'); | |
| 35 | + | |
| 36 | + const isMaintenanceMode = await page.getByText(/maintenance/i).isVisible() | |
| 37 | + .catch(() => false); | |
| 38 | + | |
| 39 | + if (isMaintenanceMode) { | |
| 40 | + test.skip(true, 'Site is in maintenance mode'); | |
| 41 | + } | |
| 42 | + | |
| 43 | + await expect( | |
| 44 | + page.getByRole('heading', { name: 'Built for Apple Intelligence.' }) | |
| 45 | + ).toBeVisible(); | |
| 46 | + await expect(page.getByRole('heading', { name: 'iPhone & iPad', exact: true }).first()).toBeVisible(); | |
| 47 | + }); | |
| 48 | + }); | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * Maintenance mode detection | |
| 52 | + */ | |
| 53 | + test.describe('Maintenance Mode Check', () => { | |
| 54 | + test('detects maintenance mode', async ({ page }) => { | |
| 55 | + await page.goto('/'); | |
| 56 | + | |
| 57 | + const isMaintenanceMode = await page.getByText(/maintenance/i).isVisible() | |
| 58 | + .catch(() => false); | |
| 59 | + | |
| 60 | + if (isMaintenanceMode) { | |
| 61 | + console.log('⚠️ Site is in maintenance mode - skipping content tests'); | |
| 62 | + // Just verify maintenance page shows correctly | |
| 63 | + await expect(page.getByText(/maintenance/i)).toBeVisible(); | |
| 64 | + } else { | |
| 65 | + // Site is live - verify basic content | |
| 66 | + await expect(page.getByRole('heading', { level: 1 }).first()).toBeVisible(); | |
| 67 | + } | |
| 68 | + }); | |
| 69 | + }); |
e2e/theme.spec.ts added
| 1 | + import { test, expect } from '@playwright/test'; | |
| 2 | + | |
| 3 | + test.describe('Theme toggle', () => { | |
| 4 | + test('switches theme and persists across navigation', async ({ page }) => { | |
| 5 | + await page.goto('/'); | |
| 6 | + | |
| 7 | + const html = page.locator('html'); | |
| 8 | + const surface = page.getByTestId('page-surface'); | |
| 9 | + const darkButton = page.getByRole('button', { name: 'Dark theme' }); | |
| 10 | + const lightButton = page.getByRole('button', { name: 'Light theme' }); | |
| 11 | + | |
| 12 | + await darkButton.click(); | |
| 13 | + await expect(html).toHaveClass(/dark/); | |
| 14 | + await expect | |
| 15 | + .poll(async () => page.evaluate(() => localStorage.getItem('theme'))) | |
| 16 | + .toBe('dark'); | |
| 17 | + const darkBackground = await surface.evaluate((element) => getComputedStyle(element).backgroundColor); | |
| 18 | + | |
| 19 | + await page.goto('/privacy'); | |
| 20 | + await expect(html).toHaveClass(/dark/); | |
| 21 | + | |
| 22 | + await lightButton.click(); | |
| 23 | + await expect(html).not.toHaveClass(/dark/); | |
| 24 | + await expect | |
| 25 | + .poll(async () => page.evaluate(() => localStorage.getItem('theme'))) | |
| 26 | + .toBe('light'); | |
| 27 | + await page.goto('/'); | |
| 28 | + const lightBackground = await surface.evaluate((element) => getComputedStyle(element).backgroundColor); | |
| 29 | + expect(lightBackground).not.toBe(darkBackground); | |
| 30 | + | |
| 31 | + await page.goto('/tos'); | |
| 32 | + await expect(html).not.toHaveClass(/dark/); | |
| 33 | + }); | |
| 34 | + }); | |
| 35 | + | |
| 36 | + test.describe('Light theme contrast', () => { | |
| 37 | + test.beforeEach(async ({ page }) => { | |
| 38 | + // Set light theme before each test | |
| 39 | + await page.goto('/'); | |
| 40 | + await page.getByRole('button', { name: 'Light theme' }).click(); | |
| 41 | + await expect(page.locator('html')).not.toHaveClass(/dark/); | |
| 42 | + }); | |
| 43 | + | |
| 44 | + test('homepage has readable text in light mode', async ({ page }) => { | |
| 45 | + await page.goto('/'); | |
| 46 | + | |
| 47 | + // Check that main heading is visible | |
| 48 | + const heading = page.getByRole('heading', { name: /every word/i }); | |
| 49 | + await expect(heading).toBeVisible(); | |
| 50 | + | |
| 51 | + // Check that heading text has good contrast (not white on white) | |
| 52 | + const headingColor = await heading.evaluate((el) => { | |
| 53 | + const style = getComputedStyle(el); | |
| 54 | + return style.color; | |
| 55 | + }); | |
| 56 | + // Should not be white (rgb(255, 255, 255)) | |
| 57 | + expect(headingColor).not.toBe('rgb(255, 255, 255)'); | |
| 58 | + | |
| 59 | + // Check free app section heading is visible | |
| 60 | + const freeAppHeading = page.getByRole('heading', { name: /completely free\. open source/i }); | |
| 61 | + await expect(freeAppHeading).toBeVisible(); | |
| 62 | + }); | |
| 63 | + | |
| 64 | + test('download page has readable text in light mode', async ({ page }) => { | |
| 65 | + await page.goto('/download'); | |
| 66 | + | |
| 67 | + // Check main heading | |
| 68 | + const heading = page.getByRole('heading', { name: /how to install jotley for mac/i }); | |
| 69 | + await expect(heading).toBeVisible(); | |
| 70 | + | |
| 71 | + // Verify step cards are visible | |
| 72 | + await expect(page.getByRole('heading', { name: 'Open DMG, Drag to Applications & Launch' })).toBeVisible(); | |
| 73 | + }); | |
| 74 | + | |
| 75 | + test('support page has readable text in light mode', async ({ page }) => { | |
| 76 | + await page.goto('/support'); | |
| 77 | + await expect(page.getByRole('heading', { name: 'Support', exact: true })).toBeVisible(); | |
| 78 | + await expect(page.getByRole('heading', { name: 'Send feedback or report a bug', exact: true })).toBeVisible(); | |
| 79 | + }); | |
| 80 | + }); |
next.config.js added
| 1 | + const vercel = require("./vercel.json"); | |
| 2 | + | |
| 3 | + /** @type {import('next').NextConfig} */ | |
| 4 | + const nextConfig = { | |
| 5 | + reactStrictMode: true, | |
| 6 | + ...(process.env.CLOUDFLARE_DEPLOYMENT_ENV && { | |
| 7 | + headers: async () => vercel.headers, | |
| 8 | + redirects: async () => vercel.redirects, | |
| 9 | + }), | |
| 10 | + }; | |
| 11 | + | |
| 12 | + module.exports = nextConfig; |
open-next.config.ts added
| 1 | + import { defineCloudflareConfig } from "@opennextjs/cloudflare"; | |
| 2 | + | |
| 3 | + export default defineCloudflareConfig(); |
package-lock.json added
Not a text file.
package.json added
| 1 | + { | |
| 2 | + "name": "jotley-site", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "main": "index.js", | |
| 5 | + "scripts": { | |
| 6 | + "dev": "next dev -p 3006", | |
| 7 | + "generate:og": "node scripts/generate-og.mjs", | |
| 8 | + "build": "node scripts/verify-mac-release.mjs && next build", | |
| 9 | + "postbuild": "node scripts/indexnow.mjs .next/server/app/sitemap.xml.body .next/server/app", | |
| 10 | + "start": "next start -p 3006", | |
| 11 | + "lint": "next lint", | |
| 12 | + "test": "playwright test", | |
| 13 | + "test:ui": "playwright test --ui", | |
| 14 | + "test:headed": "playwright test --headed", | |
| 15 | + "test:prod": "TEST_BASE_URL=https://jotley.ai playwright test", | |
| 16 | + "dev:preview": "next dev", | |
| 17 | + "build:cloudflare": "CLOUDFLARE_DEPLOYMENT_ENV=production opennextjs-cloudflare build", | |
| 18 | + "preview:cloudflare": "npm run build:cloudflare && opennextjs-cloudflare preview", | |
| 19 | + "deploy:cloudflare": "npm run build:cloudflare && wrangler deploy --keep-vars" | |
| 20 | + }, | |
| 21 | + "repository": { | |
| 22 | + "type": "git", | |
| 23 | + "url": "git+https://github.com/projectatomai/jotley-site.git" | |
| 24 | + }, | |
| 25 | + "keywords": [], | |
| 26 | + "author": "", | |
| 27 | + "license": "ISC", | |
| 28 | + "bugs": { | |
| 29 | + "url": "https://github.com/projectatomai/jotley-site/issues" | |
| 30 | + }, | |
| 31 | + "homepage": "https://github.com/projectatomai/jotley-site#readme", | |
| 32 | + "description": "", | |
| 33 | + "dependencies": { | |
| 34 | + "@fontsource-variable/comfortaa": "5.3.0", | |
| 35 | + "@fontsource-variable/inter": "5.3.0", | |
| 36 | + "@fontsource-variable/jetbrains-mono": "5.3.0", | |
| 37 | + "@next/third-parties": "^15.5.27", | |
| 38 | + "@sentry/nextjs": "^10.39.0", | |
| 39 | + "lucide-react": "^0.514.0", | |
| 40 | + "next": "15.5.29", | |
| 41 | + "react": "^19.1.0", | |
| 42 | + "react-dom": "^19.1.0", | |
| 43 | + "tailwindcss": "^3.4.17", | |
| 44 | + "three": "^0.186.1", | |
| 45 | + "xml2js": "^0.6.2" | |
| 46 | + }, | |
| 47 | + "devDependencies": { | |
| 48 | + "@opennextjs/cloudflare": "^1.20.18", | |
| 49 | + "@playwright/test": "^1.58.0", | |
| 50 | + "@types/node": "^22.15.21", | |
| 51 | + "@types/react": "^19.1.5", | |
| 52 | + "@types/react-dom": "^19.1.5", | |
| 53 | + "@types/three": "^0.186.0", | |
| 54 | + "@types/xml2js": "^0.4.14", | |
| 55 | + "autoprefixer": "^10.4.21", | |
| 56 | + "eslint": "^8.57.1", | |
| 57 | + "eslint-config-next": "^15.5.27", | |
| 58 | + "postcss": "8.5.32", | |
| 59 | + "typescript": "^5.8.3", | |
| 60 | + "wrangler": "^4.168.0" | |
| 61 | + }, | |
| 62 | + "overrides": { | |
| 63 | + "postcss": "$postcss", | |
| 64 | + "minimatch@9": "9.0.9" | |
| 65 | + } | |
| 66 | + } |
playwright.config.ts added
| 1 | + import { defineConfig, devices } from '@playwright/test'; | |
| 2 | + | |
| 3 | + export default defineConfig({ | |
| 4 | + testDir: './e2e', | |
| 5 | + fullyParallel: true, | |
| 6 | + forbidOnly: !!process.env.CI, | |
| 7 | + retries: process.env.CI ? 2 : 0, | |
| 8 | + workers: process.env.CI ? 1 : undefined, | |
| 9 | + reporter: 'html', | |
| 10 | + | |
| 11 | + use: { | |
| 12 | + // Base URL for tests - use local dev server or production | |
| 13 | + baseURL: process.env.TEST_BASE_URL || 'http://localhost:3006', | |
| 14 | + trace: 'on-first-retry', | |
| 15 | + screenshot: 'only-on-failure', | |
| 16 | + }, | |
| 17 | + | |
| 18 | + projects: [ | |
| 19 | + { | |
| 20 | + name: 'chromium', | |
| 21 | + use: { ...devices['Desktop Chrome'] }, | |
| 22 | + }, | |
| 23 | + // Uncomment to test on more browsers | |
| 24 | + // { | |
| 25 | + // name: 'firefox', | |
| 26 | + // use: { ...devices['Desktop Firefox'] }, | |
| 27 | + // }, | |
| 28 | + // { | |
| 29 | + // name: 'webkit', | |
| 30 | + // use: { ...devices['Desktop Safari'] }, | |
| 31 | + // }, | |
| 32 | + // { | |
| 33 | + // name: 'Mobile Chrome', | |
| 34 | + // use: { ...devices['Pixel 5'] }, | |
| 35 | + // }, | |
| 36 | + ], | |
| 37 | + | |
| 38 | + // Run local dev server before tests if not testing production | |
| 39 | + webServer: process.env.TEST_BASE_URL ? undefined : { | |
| 40 | + command: 'npm run dev', | |
| 41 | + url: 'http://localhost:3006', | |
| 42 | + reuseExistingServer: !process.env.CI, | |
| 43 | + timeout: 120 * 1000, | |
| 44 | + }, | |
| 45 | + }); |
postcss.config.js added
| 1 | + module.exports = { | |
| 2 | + plugins: { | |
| 3 | + tailwindcss: {}, | |
| 4 | + autoprefixer: {}, | |
| 5 | + }, | |
| 6 | + }; |
public/66365049776433ceca35572e03fca658.txt added
| 1 | + 66365049776433ceca35572e03fca658 |
public/appcast.xml added
| 1 | + <?xml version='1.0' encoding='utf-8'?> | |
| 2 | + <rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0"> | |
| 3 | + <channel> | |
| 4 | + <title>Notes</title> | |
| 5 | + <item> | |
| 6 | + <title>2.3.24</title> | |
| 7 | + <pubDate>Wed, 02 Dec 2026 15:18:04 GMT</pubDate> | |
| 8 | + <description>Removes automatic prompts and the support and feedback links.</description> | |
| 9 | + <sparkle:version>519</sparkle:version> | |
| 10 | + <sparkle:shortVersionString>2.3.24</sparkle:shortVersionString> | |
| 11 | + <sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion> | |
| 12 | + <enclosure url="https://jotley.ai/Jotley-2.3.24-519.dmg" length="13000260" type="application/octet-stream" sparkle:edSignature="aFrjMsCGVV6hUHQC50g8UJ4Uaate4rgIkV26Pcz3+b6r6IOV5lMOk61sQQ5BHwSZwtjZrtEHDAN8J00JoMdRDA==" /> | |
| 13 | + </item> | |
| 14 | + <item> | |
| 15 | + <title>2.3.23</title> | |
| 16 | + <pubDate>Mon, 30 Nov 2026 12:57:28 GMT</pubDate> | |
| 17 | + <description>Jotley is now Notes. Your library and update settings stay in place. In-app color and appearance options return.</description> | |
| 18 | + <sparkle:version>518</sparkle:version> | |
| 19 | + <sparkle:shortVersionString>2.3.23</sparkle:shortVersionString> | |
| 20 | + <sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion> | |
| 21 | + <enclosure url="https://jotley.ai/Jotley-2.3.23-518.dmg" length="13084414" type="application/octet-stream" sparkle:edSignature="hiOLHcjYeLoDcYLJi0863ip4BlN2njtUG6t94zwI/81y3oIx6T2EG5EXVTbZP0PgMmgRTCTBiur3+Z/2sm0pDw==" /> | |
| 22 | + </item> | |
| 23 | + <item> | |
| 24 | + <title>2.3.22</title> | |
| 25 | + <pubDate>Mon, 30 Nov 2026 07:14:14 GMT</pubDate> | |
| 26 | + <description>White-on-black appearance and updated Jotley icon.</description> | |
| 27 | + <sparkle:version>516</sparkle:version> | |
| 28 | + <sparkle:shortVersionString>2.3.22</sparkle:shortVersionString> | |
| 29 | + <sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion> | |
| 30 | + <enclosure url="https://jotley.ai/Jotley-2.3.22-516.dmg" length="13024831" type="application/octet-stream" sparkle:edSignature="AjBIB+Ya5DS424yWSQ06kOkUej9EyG9hrcQT5bz8Zy04pqk4FQXpN2u1Xyu0wgYLJ1795dH/IRKxhjT1FbfSCw==" /> | |
| 31 | + </item> | |
| 32 | + <item> | |
| 33 | + <title>2.3.21</title> | |
| 34 | + <pubDate>Sun, 29 Nov 2026 21:50:41 GMT</pubDate> | |
| 35 | + <description>Play the summary or transcript in a saved note using private on-device speech.</description> | |
| 36 | + <sparkle:version>514</sparkle:version> | |
| 37 | + <sparkle:shortVersionString>2.3.21</sparkle:shortVersionString> | |
| 38 | + <sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion> | |
| 39 | + <enclosure url="https://jotley.ai/Jotley-2.3.21-514.dmg" length="13550485" type="application/octet-stream" sparkle:edSignature="o7WyH4wuBsCsIs4FQgF4XAyX+UKQ39Nq0d4x1nts42xkBw8195rzJIVfA1i3fW+9hVy24XQE4Qy/rAXx1VtxAw==" /> | |
| 40 | + </item> | |
| 41 | + <item> | |
| 42 | + <title>2.3.20</title> | |
| 43 | + <pubDate>Sun, 29 Nov 2026 13:29:47 GMT</pubDate> | |
| 44 | + <description>Removed App Store rating prompts and links. Settings support keeps Feedback, Share, and Get support.</description> | |
| 45 | + <sparkle:version>512</sparkle:version> | |
| 46 | + <sparkle:shortVersionString>2.3.20</sparkle:shortVersionString> | |
| 47 | + <sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion> | |
| 48 | + <enclosure url="https://jotley.ai/Jotley-2.3.20-512.dmg" length="13849019" type="application/octet-stream" sparkle:edSignature="mLPe66uo1ACLj31dqTm8kMiYdku/rtSnd3TirPTiTf9EvHT+cMqDOOXCnNGjxinB09CD6jBpeCwSKRf3BOTnCA==" /> | |
| 49 | + </item> | |
| 50 | + <item> | |
| 51 | + <title>2.3.16</title> | |
| 52 | + <pubDate>Sat, 28 Nov 2026 15:40:26 GMT</pubDate> | |
| 53 | + <description>Bug fixes and improvements.</description> | |
| 54 | + <sparkle:version>504</sparkle:version> | |
| 55 | + <sparkle:shortVersionString>2.3.16</sparkle:shortVersionString> | |
| 56 | + <sparkle:minimumSystemVersion>27.0</sparkle:minimumSystemVersion> | |
| 57 | + <enclosure url="https://jotley.ai/Jotley-2.3.16-504.dmg" length="13932005" type="application/octet-stream" sparkle:edSignature="ppuNTKbh4z9V+CetRgcvFC2LetE01mb/CHkImbEpnixtuWDi8l8tGS5VBY3c7wI36BRvwtrOi8SKXs7luWVjDg==" /> | |
| 58 | + </item> | |
| 59 | + </channel> | |
| 60 | + </rss> |
public/apple-logo.png added
Not a text file.
public/assets/visitor-odometer.v1.css added
| 1 | + /* Self-host with visitor-odometer.v1.js. No fonts, images, or other requests. */ | |
| 2 | + .visitor-odometer { | |
| 3 | + --visitor-accent: #ffad64; | |
| 4 | + display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; | |
| 5 | + margin-block: 1rem; font: inherit; | |
| 6 | + } | |
| 7 | + .visitor-odometer-label { | |
| 8 | + font: 600 .72rem/1.25 ui-monospace, monospace; | |
| 9 | + letter-spacing: .16em; text-transform: uppercase; | |
| 10 | + } | |
| 11 | + .visitor-odometer-tiles { | |
| 12 | + display: inline-flex; gap: clamp(2px, 1vw, 4px); max-width: 100%; padding: 5px; | |
| 13 | + border: 1px solid #ffffff20; border-radius: 9px; background: linear-gradient(#18191c, #070708); | |
| 14 | + box-shadow: 0 8px 25px -12px #0009; | |
| 15 | + } | |
| 16 | + .visitor-odometer-tile { | |
| 17 | + position: relative; display: grid; overflow: hidden; place-items: center; | |
| 18 | + min-width: 0; width: clamp(13px, 7vw, 29px); height: clamp(26px, 9vw, 39px); | |
| 19 | + border-radius: 4px; background: linear-gradient(#24252a 0%, #17181b 49%, #0b0c0d 51%, #18191c); | |
| 20 | + box-shadow: inset 0 0 0 1px #ffffff12, inset 0 -6px 10px #0007; | |
| 21 | + } | |
| 22 | + .visitor-odometer-tile::after { | |
| 23 | + position: absolute; inset-inline: 0; top: 50%; height: 1px; content: ""; background: #0009; | |
| 24 | + } | |
| 25 | + .visitor-odometer-face { | |
| 26 | + color: var(--visitor-accent); font: 600 clamp(14px, 5vw, 24px)/1 ui-monospace, monospace; | |
| 27 | + font-variant-numeric: tabular-nums; text-shadow: 0 0 7px #f580256e; | |
| 28 | + animation: visitor-odometer-roll .6s cubic-bezier(.2, .8, .2, 1) both; | |
| 29 | + } | |
| 30 | + .visitor-odometer-note { font-size: .875rem; } | |
| 31 | + .visitor-odometer-number { font-weight: 650; } | |
| 32 | + .visitor-odometer-sr { | |
| 33 | + position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; | |
| 34 | + clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); | |
| 35 | + } | |
| 36 | + @keyframes visitor-odometer-roll { | |
| 37 | + from { transform: translateY(-90%); opacity: 0; } | |
| 38 | + to { transform: none; opacity: 1; } | |
| 39 | + } | |
| 40 | + @media (prefers-reduced-motion: reduce) { .visitor-odometer-face { animation: none; } } |
public/assets/visitor-odometer.v1.js added
| 1 | + // Aggregate-only visitor odometer: no cookies, referrer, identifiers or beacons. | |
| 2 | + (() => { | |
| 3 | + 'use strict'; | |
| 4 | + const endpoint = 'https://projectatom.ai/api/visits'; | |
| 5 | + const selector = '[data-visitor-odometer][data-visitor-site]'; | |
| 6 | + const siteIDs = new Set(['projectatom', 'protomota', 'airesourcepro', 'skillfarm', 'portfolio', 'opentalon', 'inkspring', 'jotley', | |
| 7 | + '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']); | |
| 11 | + const pending = new Map(); | |
| 12 | + const minimumDigits = 7; | |
| 13 | + const ordinal = n => Number.isSafeInteger(n) && n > 0; | |
| 14 | + const keyFor = site => site === 'projectatom' ? 'atom-visitor-no' : `visitor-odometer-v1:${site}`; | |
| 15 | + function element(tag, name, text = '') { | |
| 16 | + const node = document.createElement(tag); | |
| 17 | + node.className = name; | |
| 18 | + node.textContent = text; | |
| 19 | + return node; | |
| 20 | + } | |
| 21 | + function paint(node, count, mine, unavailable = false) { | |
| 22 | + const numeral = count == null ? (unavailable ? '–' : '·').repeat(minimumDigits) : String(count).padStart(minimumDigits, '0'); | |
| 23 | + const description = count == null ? (unavailable ? 'Visitor count unavailable' : 'Loading visitor count') : `${count.toLocaleString()} visitors`; | |
| 24 | + const accessibleTotal = element('span', 'visitor-odometer-sr', description); | |
| 25 | + accessibleTotal.setAttribute('role', 'status'); | |
| 26 | + const label = element('span', 'visitor-odometer-label', 'Visitors'); | |
| 27 | + label.setAttribute('aria-hidden', 'true'); | |
| 28 | + const digits = element('span', 'visitor-odometer-tiles'); | |
| 29 | + digits.setAttribute('aria-hidden', 'true'); | |
| 30 | + for (const character of numeral) { | |
| 31 | + const digit = element('span', 'visitor-odometer-tile'); | |
| 32 | + digit.append(element('span', 'visitor-odometer-face', character)); | |
| 33 | + digits.append(digit); | |
| 34 | + } | |
| 35 | + const note = element('span', 'visitor-odometer-note', ordinal(mine) ? 'You’re visitor ' : 'Thank you for being here.'); | |
| 36 | + if (ordinal(mine)) { | |
| 37 | + note.append(element('strong', 'visitor-odometer-number', `No. ${mine.toLocaleString()}`), '. Thank you for being here.'); | |
| 38 | + } | |
| 39 | + node.classList.add('visitor-odometer'); | |
| 40 | + node.setAttribute('role', 'group'); | |
| 41 | + node.setAttribute('aria-label', 'Visitor counter'); | |
| 42 | + node.replaceChildren(label, digits, accessibleTotal, note); | |
| 43 | + } | |
| 44 | + function browserNumber(site) { | |
| 45 | + try { | |
| 46 | + const n = Number(window.localStorage.getItem(keyFor(site))); | |
| 47 | + return ordinal(n) ? n : null; | |
| 48 | + } catch { return null; } | |
| 49 | + } | |
| 50 | + async function request(site, method) { | |
| 51 | + const response = await fetch(site === 'projectatom' ? '/api/visits' : `${endpoint}?site=${encodeURIComponent(site)}`, { | |
| 52 | + method, | |
| 53 | + signal: typeof AbortSignal.timeout === 'function' ? AbortSignal.timeout(4500) : undefined, | |
| 54 | + mode: 'cors', | |
| 55 | + credentials: 'omit', | |
| 56 | + referrerPolicy: 'no-referrer', | |
| 57 | + cache: 'no-store', | |
| 58 | + redirect: 'error', | |
| 59 | + }); | |
| 60 | + if (!response.ok) throw new Error('Counter unavailable'); | |
| 61 | + const result = await response.json(); | |
| 62 | + if (!Number.isSafeInteger(result?.count) || result.count < 0) throw new Error('Counter unavailable'); | |
| 63 | + return result; | |
| 64 | + } | |
| 65 | + async function load(site, mine) { | |
| 66 | + const read = () => request(site, 'GET').catch(async () => { | |
| 67 | + await new Promise(resolve => setTimeout(resolve, 400)); | |
| 68 | + return request(site, 'GET'); | |
| 69 | + }); | |
| 70 | + const run = async () => { | |
| 71 | + mine = browserNumber(site) ?? mine; | |
| 72 | + const data = await (mine ? read() : request(site, 'POST').catch(read)); | |
| 73 | + if (ordinal(data.you) && data.you <= data.count) { | |
| 74 | + try { window.localStorage.setItem(keyFor(site), String(data.you)); } catch { /* storage disabled */ } | |
| 75 | + } | |
| 76 | + return data; | |
| 77 | + }; | |
| 78 | + const locks = site === 'projectatom' ? window.navigator?.locks : null; | |
| 79 | + const result = await (locks ? locks.request(keyFor(site), run) : run()); | |
| 80 | + if (ordinal(result.you) && result.you <= result.count) { | |
| 81 | + mine = result.you; | |
| 82 | + // Keep the number only on this browser, for the current site. It is | |
| 83 | + // never placed in the URL or otherwise sent back to the counter. | |
| 84 | + try { window.localStorage.setItem(keyFor(site), String(mine)); } catch { /* storage disabled */ } | |
| 85 | + } | |
| 86 | + return { count: result.count, mine }; | |
| 87 | + } | |
| 88 | + function mount(widget) { | |
| 89 | + if (!widget.isConnected || widget.firstElementChild) return; | |
| 90 | + const site = widget.getAttribute('data-visitor-site'); | |
| 91 | + if (!siteIDs.has(site)) return; | |
| 92 | + const mine = browserNumber(site); | |
| 93 | + paint(widget, null, mine); | |
| 94 | + if (!pending.has(site)) pending.set(site, load(site, mine)); | |
| 95 | + pending.get(site).then(result => { if (widget.isConnected) paint(widget, result.count, result.mine); }) | |
| 96 | + .catch(() => { if (widget.isConnected) paint(widget, null, mine, true); }); | |
| 97 | + } | |
| 98 | + | |
| 99 | + // Hydrating or navigating an SPA can replace server-rendered placeholders. | |
| 100 | + // Reuse the previous request: remounting must not count a second visit. | |
| 101 | + document.querySelectorAll(selector).forEach(mount); | |
| 102 | + new MutationObserver(records => { | |
| 103 | + for (const record of records) { | |
| 104 | + if (record.target.matches?.(selector)) mount(record.target); | |
| 105 | + for (const node of record.addedNodes) { | |
| 106 | + if (node.matches?.(selector)) mount(node); | |
| 107 | + node.querySelectorAll?.(selector).forEach(mount); | |
| 108 | + } | |
| 109 | + } | |
| 110 | + }).observe(document.body, { childList: true, subtree: true }); | |
| 111 | + })(); |
public/favicon.ico added
Not a text file.
public/install-jotley-339.jpg added
Not a text file.
public/install-jotley.png added
Not a text file.
public/install-step-2a.png added
Not a text file.
public/install-step-2b.png added
Not a text file.
public/install-step-3.png added
Not a text file.
public/install-step-5.png added
Not a text file.
public/jotley-app-icon-256.png added
Not a text file.
public/jotley-app-icon.png added
Not a text file.
public/jotley-icon-new.png added
Not a text file.
public/jotley-icon.png added
Not a text file.
public/jotley-logo.png added
Not a text file.
public/llms.txt added
| 1 | + # Jotley | |
| 2 | + | |
| 3 | + > Jotley is a free voice notes app for Mac, iPhone and iPad. It transcribes as you speak, then summarizes and answers questions about your notes with Apple Intelligence on your device. Transcription and AI summaries are free and unlimited, and notes need no login. On Mac, Jotley also transcribes system and app audio. | |
| 4 | + | |
| 5 | + Key facts: | |
| 6 | + | |
| 7 | + - Source: open source (public domain) | |
| 8 | + - iPhone and iPad: a free public beta on TestFlight. https://testflight.apple.com/join/1y7UFzjK | |
| 9 | + - Mac: a free, signed and notarized installer from https://jotley.ai/download. | |
| 10 | + - Requirements: Apple Intelligence is required and must be enabled. Jotley 2.0 requires macOS, iOS or iPadOS 27 or later. Supported hardware: iPhone 15 Pro or iPhone 15 Pro Max, iPhone 16 models and later, and iPhone Air; iPad models with M1 or later and iPad mini with A17 Pro; Mac models with M1 or later and MacBook Neo with A18 Pro. | |
| 11 | + - Transcription: Jotley transcribes as you speak and keeps transcribing when your iPhone is locked. On Mac it transcribes system audio, browser audio, apps like Zoom or Teams, and your microphone at once, with no meeting bots. | |
| 12 | + - AI: built-in transcription, summaries and chat with your notes run on your device with Apple's on-device models. Summaries use built-in or custom templates. | |
| 13 | + - Languages: Apple Intelligence's 16 languages: English, Danish, Dutch, French, German, Italian, Norwegian, Portuguese, Spanish, Swedish, Turkish, Chinese (Simplified), Chinese (Traditional), Japanese, Korean and Vietnamese. | |
| 14 | + - Storage: transcripts, summaries and notes are stored on your device. Private iCloud sync is on by default and can be turned off in Settings. Jotley does not upload your content to its servers. | |
| 15 | + - Account: no account is required. | |
| 16 | + - Export: save a note as Markdown or plain text. | |
| 17 | + | |
| 18 | + ## Pages | |
| 19 | + | |
| 20 | + - [Jotley](https://jotley.ai/): what the app does, how it works, and frequently asked questions | |
| 21 | + - [Download for Mac](https://jotley.ai/download): the Mac app and its installation guide | |
| 22 | + - [Tutorials](https://jotley.ai/tutorials): narrated video tutorials for iPhone, iPad and Mac | |
| 23 | + - [Help](https://jotley.ai/help): FAQs, troubleshooting guides and bug reports | |
| 24 | + - [Compare](https://jotley.ai/compare): how Jotley differs from Otter and Whisper Notes, two other apps that turn speech into notes | |
| 25 | + - [Privacy Policy](https://jotley.ai/privacy): on-device AI, optional private iCloud sync, and privacy details | |
| 26 | + | |
| 27 | + ## Optional | |
| 28 | + | |
| 29 | + - [App notices](https://jotley.ai/app-notices) |
public/mac-release.json added
| 1 | + { | |
| 2 | + "version": "2.3.24", | |
| 3 | + "build": 519, | |
| 4 | + "file": "Jotley-2.3.24-519.dmg", | |
| 5 | + "bytes": 13000260, | |
| 6 | + "sha256": "f70b1519c6603e7078f4e35736cec6ae6f4c716f6e013e1e190d53b39e204235" | |
| 7 | + } |
public/media/clips/iphone-export-v3.webp added
Not a text file.
public/media/clips/iphone-live-v2.webp added
Not a text file.
public/media/clips/iphone-live.webp added
Not a text file.
public/media/clips/iphone-search-v2.webp added
Not a text file.
public/media/clips/iphone-search-v3.webp added
Not a text file.
public/media/clips/iphone-search.webp added
Not a text file.
public/media/clips/iphone-summary-v2.webp added
Not a text file.
public/media/clips/iphone-summary-v3.webp added
Not a text file.
156 more files changed.