No description
  • TypeScript 99.6%
  • Dockerfile 0.4%
Find a file
2026-11-09 00:00:53 +13:00
public GoblinGram: Deno 2 + Hono Instagram embed rewrite 2026-10-30 18:38:41 +13:00
src Remove hardcoded site URL; derive URLs from request 2026-11-09 00:00:53 +13:00
tests Remove hardcoded site URL; derive URLs from request 2026-11-09 00:00:53 +13:00
.gitignore Migrate runtime from Deno to Node.js 2026-10-30 18:46:24 +13:00
docker-compose.yml Remove all donation functionality 2026-10-30 18:51:04 +13:00
Dockerfile Migrate runtime from Deno to Node.js 2026-10-30 18:46:24 +13:00
package-lock.json Migrate runtime from Deno to Node.js 2026-10-30 18:46:24 +13:00
package.json Migrate runtime from Deno to Node.js 2026-10-30 18:46:24 +13:00
README.md Remove hardcoded site URL; derive URLs from request 2026-11-09 00:00:53 +13:00
tsconfig.json Migrate runtime from Deno to Node.js 2026-10-30 18:46:24 +13:00

GoblinGram

Instagram embeds for Discord & Telegram. Paste a post, reel, story or album link with the domain swapped to your instance's domain and every Open Graph-aware platform shows the direct media instead of Instagram's login wall. The app has no hardcoded domain beside Instagram's — all self-referencing URLs (oEmbed provider, Activity payloads, favicon fallbacks) are derived from the incoming request.

Built on Node.js + Hono (hono/jsx views, TypeScript executed with tsx), calling snapsave-media-downloader in-process — no sidecar service.

What it supports

  • Posts instagram.com/p/…
  • Reels instagram.com/reel/…
  • Stories instagram.com/stories/user/…
  • Albums (multi-image / multi-video carousels)
  • User posts instagram.com/username/p/…
  • Share links instagram.com/share/…
  • Single album item via index instagram.com/p/HASH/2 (1-based) or ?img_index=N (0-based)

Endpoints

Route Purpose
/ Landing page
catch-all (e.g. /p/HASH/) Embed page with OG / Twitter tags
/offload/{id} /offload/{id}/{order} (+ .mp4 variants) Media proxy / redirect
/oembed oEmbed provider
/api/v1/statuses/{context}, /users/{u}/statuses/{context} Mastodon-style activity payloads (Discord album grids)

Build & run

Local (Node.js 22+):

npm ci
npm start       # runs tsx src/index.ts

Docker (build from source at repo root):

docker build .
docker compose up -d

Runtime environment variables:

Variable Default Meaning
PORT 8080 Listen port

Tests

npm test        # vitest
npm run typecheck