diff --git a/frontend/custom-anap-config.json b/frontend/custom-anap-config.json
new file mode 100644
index 000000000..84f619aae
--- /dev/null
+++ b/frontend/custom-anap-config.json
@@ -0,0 +1,48 @@
+{
+ "theme": "wiz",
+ "enterprise": "anap",
+ "branding": {
+ "name": "anap",
+ "title": "ANAP",
+ "site_id": 23,
+ "header_img": "/resources/anap/anaplogo.png",
+ "footer_img": "/resources/anap/anaplogo.png"
+ },
+ "dashboard": {
+ "widgets": [
+ {
+ "component": "fees",
+ "mobileOrder": 4
+ },
+ {
+ "component": "walletBalance",
+ "mobileOrder": 1,
+ "props": {
+ "wallet": "ANAP"
+ }
+ },
+ {
+ "component": "goggles",
+ "mobileOrder": 5
+ },
+ {
+ "component": "wallet",
+ "mobileOrder": 2,
+ "props": {
+ "wallet": "ANAP",
+ "period": "all"
+ }
+ },
+ {
+ "component": "blocks"
+ },
+ {
+ "component": "walletTransactions",
+ "mobileOrder": 3,
+ "props": {
+ "wallet": "ANAP"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/index.mempool.anap.html b/frontend/src/index.mempool.anap.html
new file mode 100644
index 000000000..33928254b
--- /dev/null
+++ b/frontend/src/index.mempool.anap.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+ ANAP
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/resources/anap/anap-preview.jpg b/frontend/src/resources/anap/anap-preview.jpg
new file mode 100644
index 000000000..da39b4934
Binary files /dev/null and b/frontend/src/resources/anap/anap-preview.jpg differ
diff --git a/frontend/src/resources/anap/anaplogo.png b/frontend/src/resources/anap/anaplogo.png
new file mode 100644
index 000000000..0a81b8075
Binary files /dev/null and b/frontend/src/resources/anap/anaplogo.png differ
diff --git a/frontend/src/resources/anap/favicons/android-chrome-192x192.png b/frontend/src/resources/anap/favicons/android-chrome-192x192.png
new file mode 100644
index 000000000..9c42157b1
Binary files /dev/null and b/frontend/src/resources/anap/favicons/android-chrome-192x192.png differ
diff --git a/frontend/src/resources/anap/favicons/android-chrome-512x512.png b/frontend/src/resources/anap/favicons/android-chrome-512x512.png
new file mode 100644
index 000000000..e85082a82
Binary files /dev/null and b/frontend/src/resources/anap/favicons/android-chrome-512x512.png differ
diff --git a/frontend/src/resources/anap/favicons/apple-touch-icon.png b/frontend/src/resources/anap/favicons/apple-touch-icon.png
new file mode 100644
index 000000000..bdd7633ff
Binary files /dev/null and b/frontend/src/resources/anap/favicons/apple-touch-icon.png differ
diff --git a/frontend/src/resources/anap/favicons/favicon-16x16.png b/frontend/src/resources/anap/favicons/favicon-16x16.png
new file mode 100644
index 000000000..a74328fd0
Binary files /dev/null and b/frontend/src/resources/anap/favicons/favicon-16x16.png differ
diff --git a/frontend/src/resources/anap/favicons/favicon-32x32.png b/frontend/src/resources/anap/favicons/favicon-32x32.png
new file mode 100644
index 000000000..e7176f3f3
Binary files /dev/null and b/frontend/src/resources/anap/favicons/favicon-32x32.png differ
diff --git a/frontend/src/resources/anap/favicons/favicon.ico b/frontend/src/resources/anap/favicons/favicon.ico
new file mode 100644
index 000000000..fbdb882af
Binary files /dev/null and b/frontend/src/resources/anap/favicons/favicon.ico differ
diff --git a/frontend/src/resources/anap/favicons/site.webmanifest b/frontend/src/resources/anap/favicons/site.webmanifest
new file mode 100644
index 000000000..f4e12c04c
--- /dev/null
+++ b/frontend/src/resources/anap/favicons/site.webmanifest
@@ -0,0 +1,19 @@
+{
+ "name": "ANAP",
+ "short_name": "ANAP",
+ "icons": [
+ {
+ "src": "/resources/anap/favicons/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/resources/anap/favicons/android-chrome-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#ffffff",
+ "background_color": "#ffffff",
+ "display": "standalone"
+}
\ No newline at end of file
diff --git a/production/mempool-build-all b/production/mempool-build-all
index 35bff9a81..dd4486d04 100755
--- a/production/mempool-build-all
+++ b/production/mempool-build-all
@@ -129,7 +129,7 @@ export NVM_DIR="${HOME}/.nvm"
source "${NVM_DIR}/nvm.sh"
# what to look for
-frontends=(mainnet liquid onbtc bitb meta river strategy xxi)
+frontends=(mainnet liquid onbtc bitb meta river strategy xxi anap)
backends=(mainnet testnet testnet4 signet liquid liquidtestnet onbtc bitb)
frontend_repos=()
backend_repos=()
diff --git a/production/mempool-frontend-config.anap.json b/production/mempool-frontend-config.anap.json
new file mode 100644
index 000000000..4903d727e
--- /dev/null
+++ b/production/mempool-frontend-config.anap.json
@@ -0,0 +1,16 @@
+{
+ "OFFICIAL_MEMPOOL_SPACE": true,
+ "TESTNET_ENABLED": true,
+ "TESTNET4_ENABLED": true,
+ "LIQUID_ENABLED": true,
+ "LIQUID_TESTNET_ENABLED": true,
+ "SIGNET_ENABLED": true,
+ "MEMPOOL_WEBSITE_URL": "https://mempool.space",
+ "LIQUID_WEBSITE_URL": "https://liquid.network",
+ "ITEMS_PER_PAGE": 25,
+ "LIGHTNING": true,
+ "ACCELERATOR": true,
+ "PUBLIC_ACCELERATIONS": true,
+ "AUDIT": true,
+ "CUSTOMIZATION": "custom-anap-config.json"
+}
diff --git a/production/mempool-start-all b/production/mempool-start-all
index a108c783c..e1d6ab6dc 100755
--- a/production/mempool-start-all
+++ b/production/mempool-start-all
@@ -16,7 +16,7 @@ screen -dmS x startx
sleep 3
# start unfurlers for each frontend
-for site in mainnet liquid onbtc bitb meta river strategy xxi;do
+for site in mainnet liquid onbtc bitb meta river strategy xxi anap;do
cd "$HOME/${site}/unfurler" && \
echo "starting mempool unfurler: ${site}" && \
screen -dmS "unfurler-${site}" sh -c 'while true;do npm run unfurler;sleep 2;done'
diff --git a/production/unfurler-config.anap.json b/production/unfurler-config.anap.json
new file mode 100644
index 000000000..c469284a1
--- /dev/null
+++ b/production/unfurler-config.anap.json
@@ -0,0 +1,17 @@
+{
+ "SERVER": {
+ "HOST": "https://anap.tk7.mempool.space",
+ "HTTP_PORT": 8010
+ },
+ "MEMPOOL": {
+ "HTTP_HOST": "http://127.0.0.1",
+ "HTTP_PORT": 90,
+ "NETWORK": "anap"
+ },
+ "PUPPETEER": {
+ "CLUSTER_SIZE": 2,
+ "EXEC_PATH": "/usr/local/bin/chrome",
+ "MAX_PAGE_AGE": 86400,
+ "RENDER_TIMEOUT": 3000
+ }
+}
diff --git a/unfurler/src/routes.ts b/unfurler/src/routes.ts
index 3e10bf954..9baa2d336 100644
--- a/unfurler/src/routes.ts
+++ b/unfurler/src/routes.ts
@@ -399,6 +399,28 @@ export const networks = {
routes: routes.lightning.routes,
}
}
+ },
+ anap: {
+ networkName: 'anap',
+ title: 'ANAP | Make Japan Great Bitcoin Nation Again',
+ description: 'Make Japan Great Bitcoin Nation Again',
+ fallbackImg: '/resources/anap/anap-preview.jpg',
+ routes: { // only dynamic routes supported
+ block: routes.block,
+ address: routes.address,
+ wallet: routes.wallet,
+ tx: routes.tx,
+ mining: {
+ title: "Mining",
+ routes: {
+ pool: routes.mining.routes.pool,
+ }
+ },
+ lightning: {
+ title: "Lightning",
+ routes: routes.lightning.routes,
+ }
+ }
}
};