Developing and testing an OpenSearch description file

Re: https://developer.mozilla.org/docs/Web/OpenSearch

I’m attempting to create an .xml file for Infinity Search.

How can I test the file’s validity and effectiveness without hosting the file on a web server?

Related

https://developer.mozilla.org/en-US/docs/Web/OpenSearch#OpenSearch_description_file describes a searchplugins/ folder however there’s no such folder in a profile after adding (for example) the searx.rocks plug-in.

This one generates them on the fly using their server, but I don’t know whether it retains your data between requests (having to re-enter data over and over while experimenting would be a drag):

1 Like

Thanks

I tried:

https://infinitysearch.co/?q="%s"

The other two fields were auto-populated.

Result of the attempt to add:

Invalid Format

Firefox could not install the search engine from: https://file.io/Y64NBJ

Success, thanks to @jscher2000:

XML

Here’s my (much) earlier non-working file:

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>Infinity Search</ShortName>
  <Description>Open source multi-engine search with no cookies and respect for privacy</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image width="16" height="16" type="image/x-icon">https://s.put.re/jxJgiocV.png</Image>
  <Url type="text/html" template="https://infinitysearch.co/">
    <Param name="q" value="{searchTerms}"/>
  </Url>
  <moz:SearchForm>https://infinitysearch.co/</moz:SearchForm>
</OpenSearchDescription>