No description
- TypeScript 99.6%
- Dockerfile 0.4%
| public | ||
| src | ||
| tests | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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