Does Safari only allow native apps to communicate with extensions? Can I create webpages to do the same just like in chrome ?
Are you asking about the externally_connectable API? Safari doesn't currently support it. Please file some feedback at https://feedbackassistant.apple.com with why you would like it. That helps us a bunch.