mirror of
https://github.com/tcsenpai/keyfleur.git
synced 2025-06-06 10:35:23 +00:00
![google-labs-jules[bot]](/assets/img/avatar_default.png)
This commit completes the full rewrite of the Keyfleur application from Python to TypeScript. Key changes include: - Core logic (themes, syllable generation, key generation modes) ported to TypeScript. - CLI interface implemented using yargs. - Comprehensive unit tests added using Jest, covering core functions and basic CLI operations. - README.md updated with new installation (npm), usage instructions, and development guide. - package.json configured for npm publishing, including: - Package name: "keyfleur" - Version: "1.0.0" - CLI command: "keyfleur" - Build and test scripts, including "prepublishOnly". - Essential metadata for npm. The application is now structured as a modern TypeScript package, ready for building, testing, and publishing to npm.
71 lines
3.8 KiB
TypeScript
71 lines
3.8 KiB
TypeScript
export const THEMES: Record<string, string[]> = {
|
|
'haiku': [
|
|
'nyrae','soliv','virel','ethae','omura','lyr','aeli','sirune','nuvia','evara',
|
|
'halen','ilari','tyrel','elune','kairi','syrel','narun','velia','orune','faeli'
|
|
],
|
|
'nocturnal': [
|
|
'luna','night','star','owl','dusk','twilight','midnight','shade','echo','eclipse',
|
|
'gloom','moth','raven','void','mist','sleep','howl','nova','quiet','shiver',
|
|
'dark','silence','phantom','crescent','hollow','dream','veil','crypt','umbra','noir'
|
|
],
|
|
'sunny': [
|
|
'sol','sun','ray','bright','day','dawn','shine','gold','beam','sky',
|
|
'flare','light','summer','glow','warmth','clear','zenith','haze','amber','bliss',
|
|
'gleam','glint','sunrise','radiant','beam','halo','lucid','fire','flare','glory'
|
|
],
|
|
'floreal': [
|
|
'rose','lily','petal','bloom','ivy','orchid','daisy','violet','primrose','stem',
|
|
'pollen','sprout','bud','blossom','flora','camellia','garden','leaf','nectar','thistle',
|
|
'lavender','tulip','clover','hyacinth','marigold','chrysant','wisteria','magnolia','peony','fern'
|
|
],
|
|
'oceanic': [
|
|
'wave','coral','foam','drift','deep','pearl','tide','gull','salt','whale',
|
|
'kelp','abyss','current','surf','ocean','marina','shoal','siren','lagoon','shell',
|
|
'reef','seastar','nautilus','spray','undertow','isle','brine','anchor','swell','ripple'
|
|
],
|
|
'crystalline': [
|
|
'crystal','gem','shard','opal','quartz','glint','ice','snow','frost','facet',
|
|
'prism','glass','clear','gleam','diamond','shine','mirror','spark','flake','glow',
|
|
'glacier','amethyst','glisten','translucent','silica','bismuth','halo','chime','lucent','citrine'
|
|
],
|
|
'mythic': [
|
|
'aether','wyrm','oracle','sigil','blade','fable','mythos','grimoire','phoenix','echo',
|
|
'titan','nymph','elysium','lore','rune','arcane','wyrd','hero','legend','shade',
|
|
'sphinx','hydra','oblivion','divine','hex','omen','ritual','saga','daemon','prophecy'
|
|
],
|
|
'forest': [
|
|
'moss','bark','deer','grove','tree','fern','owl','leaf','fox','thicket',
|
|
'pine','birch','root','sap','fungus','log','trail','wild','branch','meadow',
|
|
'cedar','acorn','willow','glade','lichen','bluff','elm','spruce','hedge','nest'
|
|
],
|
|
'desert': [
|
|
'sand','dune','mirage','sun','dry','camel','cactus','arid','scorch','salt',
|
|
'wind','dust','stone','haze','burn','sol','flame','crack','barren','sizzle',
|
|
'ember','serpent','blister','parch','ash','glare','mesa','quartz','sirocco','ridge'
|
|
],
|
|
'celestial': [
|
|
'nova','orbit','comet','moon','star','sol','galaxy','void','pulse','flare',
|
|
'venus','eclipse','plasma','space','light','sphere','sky','drift','saturn','zero',
|
|
'nebula','equinox','zenith','meteor','lunar','solstice','mercury','aster','axis','horizon'
|
|
],
|
|
'library': [
|
|
'scroll','ink','book','page','shelf','quiet','dust','study','read','verse',
|
|
'prose','codex','folio','scribe','script','glyph','letter','note','pen','volume',
|
|
'archive','index','library','margin','annotation','spine','binding','tome','quill','text'
|
|
],
|
|
'decay': [
|
|
'rot','rust','moss','mold','crack','fade','peel','dust','crumble','ash',
|
|
'time','void','wilt','droop','filth','wear','flaw','scratch','stain','dull',
|
|
'brittle','smudge','erode','fracture','debris','decay','fester','grime','soot','relic'
|
|
],
|
|
'steampunk': [
|
|
'gear','steam','cog','brass','pipe','gauge','valve','weld','bolt','clock',
|
|
'spark','smoke','engine','vane','dial','joint','helm','rivets','boiler','coil',
|
|
'piston','frame','rotor','socket','vent','torque','copper','chrono','lever','mech'
|
|
]
|
|
};
|
|
|
|
export const SOFT_CONS = 'flmnrschv';
|
|
export const VOWELS = 'aeiouy';
|
|
export const RUNES = ['now+1d','now-2h','dawn','midnight','solstice','infinite','epoch'];
|