Repository navigation
Try Godmode free for 7 days without a key or card - #228
Merged
Merged
Conversation
Official builds gave 7 days only to installs that were used before licences; a new install was refused until it had a key. Now every install without a key gets 7 free days from its first start. They are stored once, so restarts never extend them. Installs with a key, installs that already have their days and builds from source behave as before.
Banner, onboarding, Settings → License and the gate now speak to a new user in the free week: free until a date, then add a key or start the 14-day trial. The banner gets a trial button and stays off the licence page. The trial line under the trial button said 7 days; it is 14.
/download shows the Mac, Windows and Linux downloads to everyone: free for 7 days, no card. A key from the link or cookie is still shown, to copy into the app. The download endpoints keep their rate limit and only serve the release files; install.sh no longer needs GODMODE_LICENSE. The homepage gets the no-card path next to the trial, and Linux in the hero.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Reddit launch on Tuesday, October 27: people should be able to download Godmode and use it without a key or a card. Until now an official build refused a new install without a key, and usegodmode.com/download asked for a key before it handed out a file.
What changed
Core
initLicense, packages/core/src/license/license.ts). The end date is written once tolicense.grace_ends_at, so a restart never extends it. Installs with a key, installs that already have their days and builds from source behave as before (builds from source don't start the clock at all).usedBefore()is gone. It decided who got the 7 days, and now every install without a key does.App
Website
/download?key=…or the cookie still shows up with a copy button, which the welcome page and the lifecycle emails rely on.entitled()had no callers left, so it's removed.noindex.Release notes: the download block gets "Official builds run free for 7 days, then need a Pro key. Your own build from source never asks for one." and the server one-liner without GODMODE_LICENSE.
Edge cases
grace_ends_at.Download endpoints and GITHUB_TOKEN
An anonymous caller can reach only files of codextde/godmode-bot releases: through the PLATFORMS map, or the server-binary regex for /download/file. The repo is fixed, the version is URL-encoded, the asset URLs come from GitHub's API answer, and the token never leaves the worker (the browser gets a short-lived signed URL).
/download/constructorused to resolve toObjectand answer 502. It's a 404 now.Tests
bun test test/license.test.ts: 26 pass. New: a new install gets 7 days from its first start and restarts don't extend them, the exact message texts, existing days are kept, an older install that was refused, a build from source doesn't start the clock, a key at the first start gets no days, a key that ends inside the week. The 3 tests for new behaviour fail on main.astro checkhas 0 errors andSITE_URL=https://usegodmode.com pnpm buildworks. Locally, /download/mac, /windows, /linux, /server-* and /download/file/godmode-linux-x64(.sha256) redirect to the v0.2.23 GitHub assets without a key.?version=latestand stores nothing. With a key it stores the key once.Screenshots
In
/Users/danielehrhardt/.godmode/agents/godmode/workspace/godmode-bot/keyless-trial/:desktop-onboarding-free-week.png: Activate step in the free weekdesktop-banner-free-week.png: banner in the appdesktop-settings-license-free-week.png: Settings → License in the free weekdesktop-gate-free-week-ended.png: gate after the weeksite-download-desktop.png,site-download-phone.png,site-download-with-key.png: /downloadsite-home-hero.png,site-home-hero-phone.png,site-home-pricing.png,site-home-final-cta.png: homepage paths (the sticky bar shows at the bottom of the last one)For the reviewer
/api/update/assetwas already open, with no rate limit) could hit that, and downloads then fail with 502. The repo is public now, soassetRedirectcould send browsers straight tobrowser_download_urland skip the API. I didn't change it here becauselib/releases.tsis being edited in fix/site-launch.runnerUpdates.ts), although the file endpoint no longer needs one. I left that as is.