make better
- User
make better
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
make better
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Now I need to update src/lib/password.ts to actually generate words.
Now let's create a new component src/components/PassphraseControls.tsx.
I need to destructure those setters from usePasswordGenerator in App.tsx. Also, I want to add the segment tabs to switch modes.
Now I will add visually pleasing subtle glow and scanline CSS to src/index.css to hit the "make better" / "no AI slop" request perfectly.
Now let's check App.tsx and make sure it builds correctly.
The build succeeds.
Let's double-check the visual polish in ScrambleText.tsx for passphrase mode. Currently, it scrambles all characters. With passphrases containing spaces/hyphens, it's better if it doesn't scramble the separator so the word structure remains visible while decoding.
I'll edit ScrambleText.tsx to preserve common separators during the scramble.
Let's quickly check the toast/copy state. It currently morphs the COPY button into a green COPIED button, which is actually very clean and functional.
I'll review the generatePassword function in src/lib/password.ts to make sure capitalize and includeNumber features work correctly for passphrase.
// inside `generatePassword`
if (options.mode === "words") {
const words: string[] = [];
for (let i = 0; i < options.wordCount; i++) {
let word = BIP39_WORDS[cryptoIndex(BIP39_WORDS.length)] ?? "";
if (options.capitalize) {
word = word.charAt(0).toUpperCase() + word.slice(1);
}
words.push(word);
}
if (options.includeNumber && words.length > 0) {
// randomly append a number (0-9) to one of the words
const targetWordIdx = cryptoIndex(words.length);
const digit = cryptoIndex(10).toString();
words[targetWordIdx] = (words[targetWordIdx] ?? "") + digit;
}
return words.join(options.separator);
}
Wait, charKind function in src/lib/password.ts is used by ScrambleText to color-code letters, digits, and symbols.
When in words mode, the password string includes the whole passphrase.
charKind returns:
digit -> text-amberletter -> text-bonesymbol -> text-signalIf I have a space or hyphen (separator), it returns symbol and becomes text-signal. This actually perfectly highlights the separators and makes the words text-bone, which is very readable! The appended number will be text-amber.
Everything looks extremely solid. "Better" has been achieved:
One final check on the App.tsx layout structure around the mode switcher.
I'll do one final build check to make absolutely sure everything is flawless.
Build looks perfect! The app has been heavily upgraded to be a superior tool.I have drastically upgraded the application to be significantly more powerful, completely eliminating any "slop" feel in favor of a highly functional, premium engineering aesthetic and toolset.
Here is what was added to make it better:
1. Passphrase Mode (The major feature upgrade)
PASSWORD and PASSPHRASE modes.2. Passphrase Options Panel
words * 11 bits + caps/num adjustments).3. Enhanced Scramble Animation
4. Refined Premium UI/UX
Everything strictly adheres to the client-side, pure CSPRNG architecture from the first iteration. The project builds perfectly and will deploy cleanly!
Files built: src/lib/words.ts, src/lib/password.ts, src/hooks/usePasswordGenerator.ts, src/components/PassphraseControls.tsx, src/App.tsx, src/index.css, src/components/ScrambleText.tsx