My game (demo release estimated for late 2023) will allow players to add characters and custom storylines. I'm currently working on the framework (modding tools, editors).
I don't know of any existing HTML game that provides this feature, but I'd also be curious about it if such a game exists.