Highly optimized static website version
- Fill out your desired links in
data/config.json - Build with
pnpm run build - Upload
dist/clientto your desired hosting services (eg. Github Pages or Cloudflare Pages)
This project supports configurable config and public directories through VS Code launch configurations. You can use different configurations for different environments:
-
Dev - Uses root-level
data/andpublic/directories- Config dir:
${workspaceFolder}/data - Public dir:
${workspaceFolder}/public
- Config dir:
-
Dev (Custom Config) - Uses linktree-clone local directories
- Config dir:
${workspaceFolder}/linktree-clone/data - Public dir:
${workspaceFolder}/linktree-clone/public
- Config dir:
The following environment variables can be set in launch configurations:
CONFIG_DIR- Path to the configuration directory (default:./data)PUBLIC_DIR- Path to the public assets directory (default:./public)
You can create your own launch configurations by adding environment variables:
{
"name": "My Custom Dev",
"cwd": "${workspaceFolder}/linktree-clone",
"request": "launch",
"type": "node-terminal",
"command": "NO_COLOR=true pnpm run dev",
"env": {
"CONFIG_DIR": "/path/to/your/config",
"PUBLIC_DIR": "/path/to/your/public"
}
}- Place instagram photos in
public/media - Update photos in desired order in
data/converted_media.json
Example image entries:
[
{
"media_id": "0",
"timestamp": "2025-04-29T11:12:52-07:00",
"permalink": "https://example.com",
"versions": {
"large": {
"file_name": "0_1024w_large.webp",
"width": 1024,
"height": 683
},
"medium": {
"file_name": "0_768w_medium.webp",
"width": 768,
"height": 512
},
"small": {
"file_name": "0_384w_small.webp",
"width": 384,
"height": 256
},
"thumb": {
"file_name": "0_256w_thumb.webp",
"width": 256,
"height": 171
}
}
}
]- Create an app https://developers.facebook.com/
- Get an instagram token
- Use instagram-recents-go to fetch your recent media