[wp-trac] [WordPress Trac] #59335: Explore Integration of Node.js into WordPress Core

WordPress Trac noreply at wordpress.org
Wed Sep 13 11:02:30 UTC 2023


#59335: Explore Integration of Node.js into WordPress Core
-------------------------------------------------+-------------------------
 Reporter:  harshgajipara                        |      Owner:  (none)
     Type:  feature request                      |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  General                              |    Version:
 Severity:  normal                               |   Keywords:
  Focuses:  performance, sustainability,         |
  coding-standards, php-compatibility            |
-------------------------------------------------+-------------------------
 I recently came across the topic on wordpress support forum mentioning
 about exploring integration of node.js into wordpress. As the topic seems
 interesting, I am creating a ticket here to make it more accessible to the
 team. Below is the detailed description.

 Original topic: https://wordpress.org/support/topic/wordpress-for-node-js/

 Now I know this may have been discussed before, but considering I couldn’t
 find anything on the topic, I thought I should bring it up just in case,
 to create healthy debate on the topic.

 WordPress for a long time has relied on PHP as its only platform, which
 has been fine since PHP is nearly universally adopted by all hosts big and
 small. However, PHP has been declining in usage. According to github’s
 octoverse, it went from 4th most used programming language to 7nth in just
 3 years, with tendency to continue going down.

 On the opposite hand, javascript and its twin typescript have been on the
 rise since 2009 thanks to Node.js. Many hosts nowadays offer node.js as an
 option to create projects, and it tends to be even cheaper than normal php
 hosting.

 So my idea here is to create a side version of wordpress, like tensorflow
 did with tensorflow.js. Something that internally works exactly the same,
 and can be connected to the same kinds of databases and whatnot, but use
 separate plugins and themes(ones made for node.js) in a separate
 repository. This way, wordpress as a project would be better future
 proofed and, considering that node.js is faster and provides things that
 PHP doesn’t such as asynchronous programming, could also allow for better
 performance(which would be a massive plus, incentivizing early adoption
 and getting the project a jumpstart). Not to mention that javascript in
 general has far better backwards compatibility than PHP, which means
 easier backend updates to newer versions of node.js.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59335>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list