UI for dynamic AI Article Writer – AI Editor

On codecanyon there are projects such as MagicAI and DaVinci AI. They have dozens of functionalities. I’m interested in something like AI Editor which allows you to create articles.

I need to quickly create a module that will include basic functions such as:

  • possibility of basic editing of the article content (stored in database)
  • the ability to select a piece of text and generate new text for it/rewrite a piece of text (that is, it connects to openAI/other and generates new text for the selected piece)

Does anyone know of an open source project that allows for something like this?
Alternatively do you know place where can I buy not encrypted, open code to buy?