Skip to content
Open source

Open-source projects around InsightFlare

ASN classification, map relaying, browser compatibility data, the place-name dictionary and page metadata live in separate projects. Each one works on its own, and when you self-host InsightFlare you can point it at your own deployment.

01insightflare/asn-blocklist

asn-blocklist

ASN classification from PeeringDB

Sorts every ASN into hosting and cloud, network services (VPN, proxy, DDoS protection and similar), transit and carriers, or access networks. The data is pulled from PeeringDB and rebuilt every week. Besides plain text it ships Golomb-Rice and Elias-Fano compressed formats; Elias-Fano can be queried without decompressing.

In InsightFlare
The collector uses it to tell what kind of network a request comes from. Requests from hosting and network-service ASNs are tagged with that reason and shown in request observation. Whether they are blocked is a site setting, off by default.
Self-hosting
Bundled with InsightFlare. Nothing to deploy separately.
# Install$ npm install asn-blocklist
GitHubnpmTypeScript · MIT
import { classifyASN } from "asn-blocklist"
ASNNetworkClass
AS14061DigitalOceanHosting & cloud
AS16509AmazonHosting & cloud
AS9009M247Network service
AS3356LumenTransit & carrier
AS174CogentTransit & carrier
AS7922ComcastAccess network
AS4766Korea TelecomAccess network
Actual classifyASN() output · rebuilt weekly from PeeringDB
02InsightFlare/map-relay

map-relay

Basemap relay

A stateless Cloudflare Worker that proxies CARTO vector basemap styles, tiles and fonts, and rewrites the label layers of the style for the requested language. The CARTO key is stored only as a Worker secret and never appears in source code, logs or responses.

In InsightFlare
Dashboard maps load their basemap from the InsightFlare backend, which in turn requests map-relay. Browsers never call it directly.
Self-hosting
Deploy to Cloudflare Workers and set CARTO_BASEMAP_KEY with wrangler secret.
# Environment variable · DefaultMAP_RELAY_BASE_URL=https://maprelay.ravelloh.com
GitHubTypeScript · MIT
GET /v1/styles/light/style.json?if_locale=zh
  1. 01 →BrowserOnly talks to InsightFlare
  2. 02 →InsightFlare/api/public/resources/map/…
  3. 03 →map-relayCloudflare Worker
  4. 04CARTOVector basemap
Subrequest cache
  • Styles & TileJSON1 hour
  • Vector tiles7 days
  • Fonts & sprites30 days
The CARTO key lives only here
03RavelloH/can-i-use-api

can-i-use-api

Static JSON API for Can I Use

Generates static JSON from the caniuse repository: a search index, support details for every feature, recent changes and a popularity ranking.

In InsightFlare
Feature compatibility on the Browsers page looks up how a feature is supported across browser versions, then estimates support from the versions your visitors actually use.
Self-hosting
The output is static files, so any static host works.
# Environment variable · DefaultCANIUSE_API_BASE_URL=https://caniuse.ravelloh.com
GitHubJavaScript · MIT
GET caniuse.ravelloh.com/feature/css-has/
css-has

:has() CSS relational pseudo-class

96.09%Full support worldwide
  • ChromeSince 105
  • EdgeSince 105
  • FirefoxSince 121
  • Safari on iOSSince 15.4
  • Samsung InternetSince 20
  • Internet ExplorerNot supported
Sample response · follows the caniuse repository
04RavelloH/iso-3166-2-locale

iso-3166-2-locale

Multilingual ISO 3166-2 place names

Country, state and city names in 19 languages, synced automatically from countries-states-cities-database.

In InsightFlare
State and city names on the Location page follow the interface language. Country names use the browser's built-in Intl.DisplayNames, and Traditional Chinese is converted from Simplified.
Self-hosting
The output is static JSON, so any static host works.
# Environment variable · DefaultGEO_LOCALE_API_BASE_URL=https://locale.ravelloh.com
GitHubJavaScript · MIT
GET locale.ravelloh.com/zh-CN/US/CA/
iso3166_2 · US-CA
加利福尼亚州name_default · California
  • zh-CN加利福尼亚州
  • jaカリフォルニア
  • ko캘리포니아
  • frCalifornie
  • deKalifornien
  • ruКалифорния
Sample response · 19 languages
05gist · RavelloH/meta.js

meta

Web page metadata

A single Cloudflare Worker script. It fetches the target page and returns its title, description, icon, share image, site name, language, author, publish time and similar fields as JSON. Pass the target as a url parameter or append it to the path.

In InsightFlare
In referrer details on the Sources page, the site title, icon and description come from it. The browser makes the request and the result is cached.
Self-hosting
One file, no dependencies. Paste it into a new Cloudflare Worker.
# Environment variable · DefaultSITE_META_API_BASE_URL=https://meta.ravelloh.com
GistJavaScript · Gist
GET meta.ravelloh.com/?url=https://developers.cloudflare.com
CCloudflare DocsConnect, protect, and build everywhere.
{"statusCode": 200,"siteName": "Cloudflare Docs","title": "Cloudflare Developer Docs | Cloudflare Docs","description": "Connect, protect, and build everywhere.","icon": "https://developers.cloudflare.com/favicon.ico","language": "en","type": "article"}
Sample response (excerpt)
Default instances

asn-blocklist is bundled with the code. The others have public instances, and InsightFlare uses them by default. Every address must start with https://; invalid values fall back to the default.

Deploy your own InsightFlare

All you need is a Cloudflare account. The free plan is enough to start.