Skip to content

Commit 3452c05

Browse files
committed
Add SearXNG search provider app
SearXNG is a privacy-respecting, self-hosted metasearch engine and an actively maintained fork of Searx. This implements the SearchInterface to allow users to use their SearXNG instance as a search provider.
1 parent d3ab2ff commit 3452c05

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

SearXNG/SearXNG.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace App\SupportedApps\SearXNG;
4+
5+
class SearXNG extends \App\SupportedApps implements \App\SearchInterface
6+
{
7+
public $type = "external";
8+
9+
public function getResults($query, $provider)
10+
{
11+
$url = rtrim($provider->url, "/");
12+
$q = urlencode($query);
13+
return redirect($url . "/search?q=" . $q);
14+
}
15+
}

SearXNG/app.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"appid": "7e356dd50dd3723072ce97822610c792f30c8d00",
3+
"name": "SearXNG",
4+
"website": "https://docs.searxng.org",
5+
"license": "AGPL-3.0",
6+
"description": "A free internet metasearch engine which aggregates results from more than 70 search services. SearXNG is a fork of Searx with continued active development.",
7+
"enhanced": false,
8+
"tile_background": "dark",
9+
"icon": "searxng.png"
10+
}

SearXNG/searxng.png

4.92 KB
Loading

0 commit comments

Comments
 (0)