hannesrudolph / llm-code-helper

31 stars 2 forks source link

Pure HTML/JS implement of this tool #2

Open ChrisTorng opened 2 months ago

ChrisTorng commented 2 months ago

I convert this tool by the help of Claude 3.5 Sonnet, with only one prompt. From Python to pure html/css/js, for easy using.

Then I added auto focus, auto Format code/Process Changes after pasting, and auto clear. Fit whole page without scroll bar. Make the whole process even easier.

It's on ChrisTorng/LLMCoder. Just clone this repo, and open the index.html file from your browser, you don't need Python or any installation.

Or you can open my page online: LLM Coder. It runs purely on your browser, no data is sent to any server.

ChrisTorng commented 1 month ago

ChrisTorng\LLMCoder is now converted into Markdown based, this approach:

Additional

Read the markdown.instruction.en.md to understand the detail of Markdown diff.

Markdown diff sample

file1.css 2024-08-14 08:20:42

InsertBetween

  • From: 13. h1 {
  • To: 14. }
    color: var(--primary-color);
    font-size: 1.5rem;

Remove

  • From: 26. display: flex;
  • To: 26. display: flex;

file2.js 2024-08-15 18:04:05

Replace

  • From: 12. function old_function() {
  • To: 14. return value;

    function new_function() {
      var result = 'New function'
    
      return result;
hannesrudolph commented 1 month ago

I’ve sent you a DM on Facebook to discuss privately.