Skip to content

armgit / bygga

Public Imported from GitHub
0

IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.

TypeScript

Share cards, SEO and an installable app

Yousseffc1463d3f51c
diff --git a/next.config.ts b/next.config.ts
index 6de66ce..ea43aae 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -3,6 +3,13 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
cacheComponents: true,
partialPrefetching: true,
+ // the share cards read their fonts and drawings from disk
+ outputFileTracingIncludes: {
+ "/opengraph-image": ["./src/lib/og/*.woff", "./public/og/step-hero.png", "./public/og/kallax-2x2.png"],
+ "/twitter-image": ["./src/lib/og/*.woff", "./public/og/step-hero.png", "./public/og/kallax-2x2.png"],
+ "/build/*/opengraph-image*": ["./src/lib/og/*.woff", "./public/og/*.png"],
+ "/build/*/twitter-image*": ["./src/lib/og/*.woff", "./public/og/*.png"],
+ },
async headers() {
return [
{
diff --git a/package-lock.json b/package-lock.json
index 06a2e6c..d0f711f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,7 @@
"name": "ikea-masta",
"version": "0.1.0",
"dependencies": {
+ "@vercel/analytics": "^1.6.1",
"motion": "^14.4.0",
"next": "16.4.2",
"react": "19.3.0",
@@ -2051,6 +2052,44 @@
"win32"
]
},
+ "node_modules/@vercel/analytics": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.6.1.tgz",
+ "integrity": "sha512-oH9He/bEM+6oKlv3chWuOOcp8Y6fo6/PSro8hEkgCW3pu9/OiCXiUpRUogDh3Fs3LH2sosDrx8CxeOLBEE+afg==",
+ "license": "MPL-2.0",
+ "peerDependencies": {
+ "@remix-run/react": "^2",
+ "@sveltejs/kit": "^1 || ^2",
+ "next": ">= 13",
+ "react": "^18 || ^19 || ^19.0.0-rc",
+ "svelte": ">= 4",
+ "vue": "^3",
+ "vue-router": "^4"
+ },
+ "peerDependenciesMeta": {
+ "@remix-run/react": {
+ "optional": true
+ },
+ "@sveltejs/kit": {
+ "optional": true
+ },
+ "next": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "svelte": {
+ "optional": true
+ },
+ "vue": {
+ "optional": true
+ },
+ "vue-router": {
+ "optional": true
+ }
+ }
+ },
"node_modules/acorn": {
"version": "8.19.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",
@@ -4704,6 +4743,7 @@
"resolved": "https://registry.npmjs.org/next/-/next-16.4.2.tgz",
"integrity": "sha512-r+oBJojfefUjOiWkBhXgLS+igxX/7BWyK59uHnyOyplMSLtBZ+QLP3okrdYTbrfrbrmNTVWLBPaHDX9KRaIt3w==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@next/env": "16.4.2",
"@swc/helpers": "0.5.23",
diff --git a/package.json b/package.json
index 2cf8a46..23f8b4a 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"voice": "node --experimental-transform-types --no-warnings --import ./scripts/voice/register.mjs scripts/voice/record.ts"
},
"dependencies": {
+ "@vercel/analytics": "^1.6.1",
"motion": "^14.4.0",
"next": "16.4.2",
"react": "19.3.0",
diff --git a/public/icon-192.png b/public/icon-192.png
new file mode 100644
index 0000000..b07cf8e
Binary files /dev/null and b/public/icon-192.png differ
diff --git a/public/icon-512.png b/public/icon-512.png
new file mode 100644
index 0000000..f288967
Binary files /dev/null and b/public/icon-512.png differ
diff --git a/public/icon-maskable-512.png b/public/icon-maskable-512.png
new file mode 100644
index 0000000..f8a3e08
Binary files /dev/null and b/public/icon-maskable-512.png differ
diff --git a/public/og/adde-chair.png b/public/og/adde-chair.png
new file mode 100644
index 0000000..d9bcff0
Binary files /dev/null and b/public/og/adde-chair.png differ
diff --git a/public/og/albert-shelving-unit-64-x-159.png b/public/og/albert-shelving-unit-64-x-159.png
new file mode 100644
index 0000000..a9dae28
Binary files /dev/null and b/public/og/albert-shelving-unit-64-x-159.png differ
diff --git a/public/og/alex-drawer-unit.png b/public/og/alex-drawer-unit.png
new file mode 100644
index 0000000..9ea639f
Binary files /dev/null and b/public/og/alex-drawer-unit.png differ
diff --git a/public/og/applaro-bench-outdoor.png b/public/og/applaro-bench-outdoor.png
new file mode 100644
index 0000000..72a4d72
Binary files /dev/null and b/public/og/applaro-bench-outdoor.png differ
diff --git a/public/og/baggebo-shelf-unit-50-x-160.png b/public/og/baggebo-shelf-unit-50-x-160.png
new file mode 100644
index 0000000..2d5ae24
Binary files /dev/null and b/public/og/baggebo-shelf-unit-50-x-160.png differ
diff --git a/public/og/bekant-desk-160-x-80.png b/public/og/bekant-desk-160-x-80.png
new file mode 100644
index 0000000..1849304
Binary files /dev/null and b/public/og/bekant-desk-160-x-80.png differ
diff --git a/public/og/bekvam-step-stool.png b/public/og/bekvam-step-stool.png
new file mode 100644
index 0000000..598ced1
Binary files /dev/null and b/public/og/bekvam-step-stool.png differ
diff --git a/public/og/bergmund-chair.png b/public/og/bergmund-chair.png
new file mode 100644
index 0000000..db972ac
Binary files /dev/null and b/public/og/bergmund-chair.png differ
diff --git a/public/og/besta-shelf-unit-doors-60-x-64.png b/public/og/besta-shelf-unit-doors-60-x-64.png
new file mode 100644
index 0000000..b8e3a4e
Binary files /dev/null and b/public/og/besta-shelf-unit-doors-60-x-64.png differ
diff --git a/public/og/besta-tv-bench-120-x-40.png b/public/og/besta-tv-bench-120-x-40.png
new file mode 100644
index 0000000..d85aca6
Binary files /dev/null and b/public/og/besta-tv-bench-120-x-40.png differ
diff --git a/public/og/besta-tv-bench-180-x-38.png b/public/og/besta-tv-bench-180-x-38.png
new file mode 100644
index 0000000..9692e18
Binary files /dev/null and b/public/og/besta-tv-bench-180-x-38.png differ
diff --git a/public/og/billy-40x202.png b/public/og/billy-40x202.png
new file mode 100644
index 0000000..a6e23c5
Binary files /dev/null and b/public/og/billy-40x202.png differ
diff --git a/public/og/billy-80x106.png b/public/og/billy-80x106.png
new file mode 100644
index 0000000..fdaa34f
Binary files /dev/null and b/public/og/billy-80x106.png differ
diff --git a/public/og/billy-80x202.png b/public/og/billy-80x202.png
new file mode 100644
index 0000000..cc519e9
Binary files /dev/null and b/public/og/billy-80x202.png differ
diff --git a/public/og/bissa-shoe-cabinet-2-compartments.png b/public/og/bissa-shoe-cabinet-2-compartments.png
new file mode 100644
index 0000000..76de3e5
Binary files /dev/null and b/public/og/bissa-shoe-cabinet-2-compartments.png differ
diff --git a/public/og/bissa-shoe-cabinet-3-compartments.png b/public/og/bissa-shoe-cabinet-3-compartments.png
new file mode 100644
index 0000000..1d4d90f
Binary files /dev/null and b/public/og/bissa-shoe-cabinet-3-compartments.png differ
diff --git a/public/og/brimnes-bed-frame-160-x-200.png b/public/og/brimnes-bed-frame-160-x-200.png
new file mode 100644
index 0000000..fcbc83c
Binary files /dev/null and b/public/og/brimnes-bed-frame-160-x-200.png differ
diff --git a/public/og/brimnes-bookcase-60-x-190.png b/public/og/brimnes-bookcase-60-x-190.png
new file mode 100644
index 0000000..c0f54de
Binary files /dev/null and b/public/og/brimnes-bookcase-60-x-190.png differ
diff --git a/public/og/brimnes-cabinet-doors-39-x-95.png b/public/og/brimnes-cabinet-doors-39-x-95.png
new file mode 100644
index 0000000..7cbe8d8
Binary files /dev/null and b/public/og/brimnes-cabinet-doors-39-x-95.png differ
diff --git a/public/og/brimnes-chest-3-drawers.png b/public/og/brimnes-chest-3-drawers.png
new file mode 100644
index 0000000..6a7c9f7
Binary files /dev/null and b/public/og/brimnes-chest-3-drawers.png differ
diff --git a/public/og/brimnes-nightstand.png b/public/og/brimnes-nightstand.png
new file mode 100644
index 0000000..af33da8
Binary files /dev/null and b/public/og/brimnes-nightstand.png differ
diff --git a/public/og/brimnes-tv-bench-120-x-53.png b/public/og/brimnes-tv-bench-120-x-53.png
new file mode 100644
index 0000000..e7453f1
Binary files /dev/null and b/public/og/brimnes-tv-bench-120-x-53.png differ
diff --git a/public/og/brimnes-wardrobe-3-doors-117-x-190.png b/public/og/brimnes-wardrobe-3-doors-117-x-190.png
new file mode 100644
index 0000000..f9822ef
Binary files /dev/null and b/public/og/brimnes-wardrobe-3-doors-117-x-190.png differ
diff --git a/public/og/brimnes-wardrobe.png b/public/og/brimnes-wardrobe.png
new file mode 100644
index 0000000..2b8b073
Binary files /dev/null and b/public/og/brimnes-wardrobe.png differ
diff --git a/public/og/bror-shelving-unit-85-x-190.png b/public/og/bror-shelving-unit-85-x-190.png
new file mode 100644
index 0000000..bcc278c
Binary files /dev/null and b/public/og/bror-shelving-unit-85-x-190.png differ
diff --git a/public/og/brusali-shoe-cabinet-3-compartments.png b/public/og/brusali-shoe-cabinet-3-compartments.png
new file mode 100644
index 0000000..1ba1da2
Binary files /dev/null and b/public/og/brusali-shoe-cabinet-3-compartments.png differ
diff --git a/public/og/dalfred-bar-stool.png b/public/og/dalfred-bar-stool.png
new file mode 100644
index 0000000..b7f39f4
Binary files /dev/null and b/public/og/dalfred-bar-stool.png differ
diff --git a/public/og/detolf-glass-door-cabinet-43-x-163.png b/public/og/detolf-glass-door-cabinet-43-x-163.png
new file mode 100644
index 0000000..0074a77
Binary files /dev/null and b/public/og/detolf-glass-door-cabinet-43-x-163.png differ
diff --git a/public/og/dombas-wardrobe-140-x-181.png b/public/og/dombas-wardrobe-140-x-181.png
new file mode 100644
index 0000000..5b08652
Binary files /dev/null and b/public/og/dombas-wardrobe-140-x-181.png differ
diff --git a/public/og/ekedalen-chair.png b/public/og/ekedalen-chair.png
new file mode 100644
index 0000000..6f48b30
Binary files /dev/null and b/public/og/ekedalen-chair.png differ
diff --git a/public/og/ekedalen-extendable-table-120-x-80.png b/public/og/ekedalen-extendable-table-120-x-80.png
new file mode 100644
index 0000000..7bc7e30
Binary files /dev/null and b/public/og/ekedalen-extendable-table-120-x-80.png differ
diff --git a/public/og/ekero-armchair.png b/public/og/ekero-armchair.png
new file mode 100644
index 0000000..acadd62
Binary files /dev/null and b/public/og/ekero-armchair.png differ
diff --git a/public/og/eket-cabinet-combination-70-x-70.png b/public/og/eket-cabinet-combination-70-x-70.png
new file mode 100644
index 0000000..3201285
Binary files /dev/null and b/public/og/eket-cabinet-combination-70-x-70.png differ
diff --git a/public/og/eket-cabinet.png b/public/og/eket-cabinet.png
new file mode 100644
index 0000000..c55155f
Binary files /dev/null and b/public/og/eket-cabinet.png differ
diff --git a/public/og/ektorp-3-seat-sofa.png b/public/og/ektorp-3-seat-sofa.png
new file mode 100644
index 0000000..20387ca
Binary files /dev/null and b/public/og/ektorp-3-seat-sofa.png differ
diff --git a/public/og/fabrikor-glass-door-cabinet-81-x-113.png b/public/og/fabrikor-glass-door-cabinet-81-x-113.png
new file mode 100644
index 0000000..00deae7
Binary files /dev/null and b/public/og/fabrikor-glass-door-cabinet-81-x-113.png differ
diff --git a/public/og/finnby-bookcase-60-x-180.png b/public/og/finnby-bookcase-60-x-180.png
new file mode 100644
index 0000000..6e75d50
Binary files /dev/null and b/public/og/finnby-bookcase-60-x-180.png differ
diff --git a/public/og/fjalkinge-shelving-unit-118-x-193.png b/public/og/fjalkinge-shelving-unit-118-x-193.png
new file mode 100644
index 0000000..ad354f8
Binary files /dev/null and b/public/og/fjalkinge-shelving-unit-118-x-193.png differ
diff --git a/public/og/friheten-corner-sofa-bed.png b/public/og/friheten-corner-sofa-bed.png
new file mode 100644
index 0000000..fdc5066
Binary files /dev/null and b/public/og/friheten-corner-sofa-bed.png differ
diff --git a/public/og/frosta-stool.png b/public/og/frosta-stool.png
new file mode 100644
index 0000000..fb03882
Binary files /dev/null and b/public/og/frosta-stool.png differ
diff --git a/public/og/gersby-bookcase-60-x-180.png b/public/og/gersby-bookcase-60-x-180.png
new file mode 100644
index 0000000..6e75d50
Binary files /dev/null and b/public/og/gersby-bookcase-60-x-180.png differ
diff --git a/public/og/glostad-2-seat-sofa.png b/public/og/glostad-2-seat-sofa.png
new file mode 100644
index 0000000..8058030
Binary files /dev/null and b/public/og/glostad-2-seat-sofa.png differ
diff --git a/public/og/gursken-bedside-table.png b/public/og/gursken-bedside-table.png
new file mode 100644
index 0000000..63a4d2b
Binary files /dev/null and b/public/og/gursken-bedside-table.png differ
diff --git a/public/og/gursken-chest-3-drawers.png b/public/og/gursken-chest-3-drawers.png
new file mode 100644
index 0000000..7220d36
Binary files /dev/null and b/public/og/gursken-chest-3-drawers.png differ
diff --git a/public/og/hauga-bookcase-80-x-199.png b/public/og/hauga-bookcase-80-x-199.png
new file mode 100644
index 0000000..01a177e
Binary files /dev/null and b/public/og/hauga-bookcase-80-x-199.png differ
diff --git a/public/og/hauga-chest-3-drawers.png b/public/og/hauga-chest-3-drawers.png
new file mode 100644
index 0000000..7248386
Binary files /dev/null and b/public/og/hauga-chest-3-drawers.png differ
diff --git a/public/og/hauga-chest-6-drawers.png b/public/og/hauga-chest-6-drawers.png
new file mode 100644
index 0000000..704765e
Binary files /dev/null and b/public/og/hauga-chest-6-drawers.png differ
diff --git a/public/og/hauga-tv-bench-138-x-54.png b/public/og/hauga-tv-bench-138-x-54.png
new file mode 100644
index 0000000..a9c03e1
Binary files /dev/null and b/public/og/hauga-tv-bench-138-x-54.png differ
diff --git a/public/og/hauga-wardrobe-70-x-199.png b/public/og/hauga-wardrobe-70-x-199.png
new file mode 100644
index 0000000..4f12d2c
Binary files /dev/null and b/public/og/hauga-wardrobe-70-x-199.png differ
diff --git a/public/og/havsta-cabinet-doors-81-x-123.png b/public/og/havsta-cabinet-doors-81-x-123.png
new file mode 100644
index 0000000..d9bf507
Binary files /dev/null and b/public/og/havsta-cabinet-doors-81-x-123.png differ
diff --git a/public/og/havsta-sideboard-100-x-89.png b/public/og/havsta-sideboard-100-x-89.png
new file mode 100644
index 0000000..30fb0d6
Binary files /dev/null and b/public/og/havsta-sideboard-100-x-89.png differ
diff --git a/public/og/helmer-drawer-unit-on-castors.png b/public/og/helmer-drawer-unit-on-castors.png
new file mode 100644
index 0000000..240af0d
Binary files /dev/null and b/public/og/helmer-drawer-unit-on-castors.png differ
diff --git a/public/og/hemlingby-2-seat-sofa.png b/public/og/hemlingby-2-seat-sofa.png
new file mode 100644
index 0000000..af39468
Binary files /dev/null and b/public/og/hemlingby-2-seat-sofa.png differ
diff --git a/public/og/hemnes-3-drawers.png b/public/og/hemnes-3-drawers.png
new file mode 100644
index 0000000..41b7049
Binary files /dev/null and b/public/og/hemnes-3-drawers.png differ
diff --git a/public/og/hemnes-bed-frame-160-x-200.png b/public/og/hemnes-bed-frame-160-x-200.png
new file mode 100644
index 0000000..caf1a58
Binary files /dev/null and b/public/og/hemnes-bed-frame-160-x-200.png differ
diff --git a/public/og/hemnes-bed-frame-90-x-200.png b/public/og/hemnes-bed-frame-90-x-200.png
new file mode 100644
index 0000000..30eada6
Binary files /dev/null and b/public/og/hemnes-bed-frame-90-x-200.png differ
diff --git a/public/og/hemnes-bench.png b/public/og/hemnes-bench.png
new file mode 100644
index 0000000..a4f0795
Binary files /dev/null and b/public/og/hemnes-bench.png differ
diff --git a/public/og/hemnes-bookcase-49-x-197.png b/public/og/hemnes-bookcase-49-x-197.png
new file mode 100644
index 0000000..0901e49
Binary files /dev/null and b/public/og/hemnes-bookcase-49-x-197.png differ
diff --git a/public/og/hemnes-bookcase-90-x-197.png b/public/og/hemnes-bookcase-90-x-197.png
new file mode 100644
index 0000000..acb474b
Binary files /dev/null and b/public/og/hemnes-bookcase-90-x-197.png differ
diff --git a/public/og/hemnes-chest-6-drawers.png b/public/og/hemnes-chest-6-drawers.png
new file mode 100644
index 0000000..cba3be0
Binary files /dev/null and b/public/og/hemnes-chest-6-drawers.png differ
diff --git a/public/og/hemnes-chest-8-drawers.png b/public/og/hemnes-chest-8-drawers.png
new file mode 100644
index 0000000..dd32a15
Binary files /dev/null and b/public/og/hemnes-chest-8-drawers.png differ
diff --git a/public/og/hemnes-coffee-table-118-x-75.png b/public/og/hemnes-coffee-table-118-x-75.png
new file mode 100644
index 0000000..5a04563
Binary files /dev/null and b/public/og/hemnes-coffee-table-118-x-75.png differ
diff --git a/public/og/hemnes-glass-door-cabinet-90-x-197.png b/public/og/hemnes-glass-door-cabinet-90-x-197.png
new file mode 100644
index 0000000..475b8f6
Binary files /dev/null and b/public/og/hemnes-glass-door-cabinet-90-x-197.png differ
diff --git a/public/og/hemnes-nightstand-2-drawers.png b/public/og/hemnes-nightstand-2-drawers.png
new file mode 100644
index 0000000..ecc3423
Binary files /dev/null and b/public/og/hemnes-nightstand-2-drawers.png differ
diff --git a/public/og/hemnes-shoe-cabinet-2-compartments.png b/public/og/hemnes-shoe-cabinet-2-compartments.png
new file mode 100644
index 0000000..c7d0142
Binary files /dev/null and b/public/og/hemnes-shoe-cabinet-2-compartments.png differ
diff --git a/public/og/hemnes-shoe-cabinet-4-compartments.png b/public/og/hemnes-shoe-cabinet-4-compartments.png
new file mode 100644
index 0000000..d2bb5ae
Binary files /dev/null and b/public/og/hemnes-shoe-cabinet-4-compartments.png differ
diff --git a/public/og/hemnes-side-table-55-x-55.png b/public/og/hemnes-side-table-55-x-55.png
new file mode 100644
index 0000000..480aede
Binary files /dev/null and b/public/og/hemnes-side-table-55-x-55.png differ
diff --git a/public/og/hemnes-sideboard-157-x-88.png b/public/og/hemnes-sideboard-157-x-88.png
new file mode 100644
index 0000000..2c9952c
Binary files /dev/null and b/public/og/hemnes-sideboard-157-x-88.png differ
diff --git a/public/og/hemnes-tv-bench-148-x-57.png b/public/og/hemnes-tv-bench-148-x-57.png
new file mode 100644
index 0000000..1bb15e4
Binary files /dev/null and b/public/og/hemnes-tv-bench-148-x-57.png differ
diff --git a/public/og/hemnes-wardrobe-2-doors-120-x-197.png b/public/og/hemnes-wardrobe-2-doors-120-x-197.png
new file mode 100644
index 0000000..5667ced
Binary files /dev/null and b/public/og/hemnes-wardrobe-2-doors-120-x-197.png differ
diff --git a/public/og/holmerud-coffee-table-90-x-55.png b/public/og/holmerud-coffee-table-90-x-55.png
new file mode 100644
index 0000000..63304dd
Binary files /dev/null and b/public/og/holmerud-coffee-table-90-x-55.png differ
diff --git a/public/og/hyllis-shelf-unit-60-x-140.png b/public/og/hyllis-shelf-unit-60-x-140.png
new file mode 100644
index 0000000..d3877f2
Binary files /dev/null and b/public/og/hyllis-shelf-unit-60-x-140.png differ
diff --git a/public/og/idanas-bed-frame-160-x-200.png b/public/og/idanas-bed-frame-160-x-200.png
new file mode 100644
index 0000000..db4e79f
Binary files /dev/null and b/public/og/idanas-bed-frame-160-x-200.png differ
diff --git a/public/og/idanas-bookcase-81-x-225.png b/public/og/idanas-bookcase-81-x-225.png
new file mode 100644
index 0000000..26688b4
Binary files /dev/null and b/public/og/idanas-bookcase-81-x-225.png differ
diff --git a/public/og/idanas-chest-6-drawers.png b/public/og/idanas-chest-6-drawers.png
new file mode 100644
index 0000000..aa96ccd
Binary files /dev/null and b/public/og/idanas-chest-6-drawers.png differ
diff --git a/public/og/idanas-sideboard-160-x-87.png b/public/og/idanas-sideboard-160-x-87.png
new file mode 100644
index 0000000..b001ed8
Binary files /dev/null and b/public/og/idanas-sideboard-160-x-87.png differ
diff --git a/public/og/idanas-wardrobe-121-x-211.png b/public/og/idanas-wardrobe-121-x-211.png
new file mode 100644
index 0000000..bab7ba3
Binary files /dev/null and b/public/og/idanas-wardrobe-121-x-211.png differ
diff --git a/public/og/idasen-desk-160-x-80.png b/public/og/idasen-desk-160-x-80.png
new file mode 100644
index 0000000..c5a4b34
Binary files /dev/null and b/public/og/idasen-desk-160-x-80.png differ
diff --git a/public/og/ingatorp-extendable-table-155-x-87.png b/public/og/ingatorp-extendable-table-155-x-87.png
new file mode 100644
index 0000000..3c5821a
Binary files /dev/null and b/public/og/ingatorp-extendable-table-155-x-87.png differ
diff --git a/public/og/ingo-table-120-x-75.png b/public/og/ingo-table-120-x-75.png
new file mode 100644
index 0000000..70615a5
Binary files /dev/null and b/public/og/ingo-table-120-x-75.png differ
diff --git a/public/og/ingolf-chair.png b/public/og/ingolf-chair.png
new file mode 100644
index 0000000..c989bdc
Binary files /dev/null and b/public/og/ingolf-chair.png differ
diff --git a/public/og/ivar-cabinet-doors-80-x-83.png b/public/og/ivar-cabinet-doors-80-x-83.png
new file mode 100644
index 0000000..4f35efb
Binary files /dev/null and b/public/og/ivar-cabinet-doors-80-x-83.png differ
diff --git a/public/og/ivar-shelving-unit-89-x-179.png b/public/og/ivar-shelving-unit-89-x-179.png
new file mode 100644
index 0000000..d7bf28b
Binary files /dev/null and b/public/og/ivar-shelving-unit-89-x-179.png differ
diff --git a/public/og/janinge-chair.png b/public/og/janinge-chair.png
new file mode 100644
index 0000000..b17f200
Binary files /dev/null and b/public/og/janinge-chair.png differ
diff --git a/public/og/kallax-1x4.png b/public/og/kallax-1x4.png
new file mode 100644
index 0000000..9107b09
Binary files /dev/null and b/public/og/kallax-1x4.png differ
diff --git a/public/og/kallax-2x2.png b/public/og/kallax-2x2.png
new file mode 100644
index 0000000..84f9aca
Binary files /dev/null and b/public/og/kallax-2x2.png differ
diff --git a/public/og/kallax-2x4.png b/public/og/kallax-2x4.png
new file mode 100644
index 0000000..9e1feee
Binary files /dev/null and b/public/og/kallax-2x4.png differ
diff --git a/public/og/kallax-4x4.png b/public/og/kallax-4x4.png
new file mode 100644
index 0000000..38ce747
Binary files /dev/null and b/public/og/kallax-4x4.png differ
diff --git a/public/og/kallax-shelving-unit-112-x-112.png b/public/og/kallax-shelving-unit-112-x-112.png
new file mode 100644
index 0000000..4489984
Binary files /dev/null and b/public/og/kallax-shelving-unit-112-x-112.png differ
diff --git a/public/og/kallax-shelving-unit-147-x-77.png b/public/og/kallax-shelving-unit-147-x-77.png
new file mode 100644
index 0000000..3e60839
Binary files /dev/null and b/public/og/kallax-shelving-unit-147-x-77.png differ
diff --git a/public/og/kind-bed.png b/public/og/kind-bed.png
new file mode 100644
index 0000000..bd9749e
Binary files /dev/null and b/public/og/kind-bed.png differ
diff --git a/public/og/kind-bench.png b/public/og/kind-bench.png
new file mode 100644
index 0000000..d9175a7
Binary files /dev/null and b/public/og/kind-bench.png differ
diff --git a/public/og/kind-bookcase.png b/public/og/kind-bookcase.png
new file mode 100644
index 0000000..c00e334
Binary files /dev/null and b/public/og/kind-bookcase.png differ
diff --git a/public/og/kind-cabinet.png b/public/og/kind-cabinet.png
new file mode 100644
index 0000000..ebb0099
Binary files /dev/null and b/public/og/kind-cabinet.png differ
diff --git a/public/og/kind-chair.png b/public/og/kind-chair.png
new file mode 100644
index 0000000..8102ca6
Binary files /dev/null and b/public/og/kind-chair.png differ
diff --git a/public/og/kind-chest.png b/public/og/kind-chest.png
new file mode 100644
index 0000000..2a6a37d
Binary files /dev/null and b/public/og/kind-chest.png differ
diff --git a/public/og/kind-coffee.png b/public/og/kind-coffee.png
new file mode 100644
index 0000000..059a896
Binary files /dev/null and b/public/og/kind-coffee.png differ
diff --git a/public/og/kind-cube.png b/public/og/kind-cube.png
new file mode 100644
index 0000000..84f9aca
Binary files /dev/null and b/public/og/kind-cube.png differ
diff --git a/public/og/kind-desk.png b/public/og/kind-desk.png
new file mode 100644
index 0000000..6a0d008
Binary files /dev/null and b/public/og/kind-desk.png differ
diff --git a/public/og/kind-dining.png b/public/og/kind-dining.png
new file mode 100644
index 0000000..724af3d
Binary files /dev/null and b/public/og/kind-dining.png differ
diff --git a/public/og/kind-nightstand.png b/public/og/kind-nightstand.png
new file mode 100644
index 0000000..6d5389f
Binary files /dev/null and b/public/og/kind-nightstand.png differ
diff --git a/public/og/kind-shoe.png b/public/og/kind-shoe.png
new file mode 100644
index 0000000..742a2ce
Binary files /dev/null and b/public/og/kind-shoe.png differ
diff --git a/public/og/kind-sofa.png b/public/og/kind-sofa.png
new file mode 100644
index 0000000..44297f4
Binary files /dev/null and b/public/og/kind-sofa.png differ
diff --git a/public/og/kind-stool.png b/public/og/kind-stool.png
new file mode 100644
index 0000000..fb03882
Binary files /dev/null and b/public/og/kind-stool.png differ
diff --git a/public/og/kind-tv.png b/public/og/kind-tv.png
new file mode 100644
index 0000000..255a2ce
Binary files /dev/null and b/public/og/kind-tv.png differ
diff --git a/public/og/kind-wardrobe.png b/public/og/kind-wardrobe.png
new file mode 100644
index 0000000..096b801
Binary files /dev/null and b/public/og/kind-wardrobe.png differ
diff --git a/public/og/kivik-3-seat-sofa.png b/public/og/kivik-3-seat-sofa.png
new file mode 100644
index 0000000..d3f7fa8
Binary files /dev/null and b/public/og/kivik-3-seat-sofa.png differ
diff --git a/public/og/kleppstad-bed-frame-160-x-200.png b/public/og/kleppstad-bed-frame-160-x-200.png
new file mode 100644
index 0000000..1f162d1
Binary files /dev/null and b/public/og/kleppstad-bed-frame-160-x-200.png differ
diff --git a/public/og/kleppstad-wardrobe-2-doors-79-x-176.png b/public/og/kleppstad-wardrobe-2-doors-79-x-176.png
new file mode 100644
index 0000000..f930893
Binary files /dev/null and b/public/og/kleppstad-wardrobe-2-doors-79-x-176.png differ
diff --git a/public/og/klimpen-table-120-x-60.png b/public/og/klimpen-table-120-x-60.png
new file mode 100644
index 0000000..dc870e2
Binary files /dev/null and b/public/og/klimpen-table-120-x-60.png differ
diff --git a/public/og/klippan-2-seat-sofa.png b/public/og/klippan-2-seat-sofa.png
new file mode 100644
index 0000000..6daae58
Binary files /dev/null and b/public/og/klippan-2-seat-sofa.png differ
diff --git a/public/og/kolbjorn-cabinet-80-x-81.png b/public/og/kolbjorn-cabinet-80-x-81.png
new file mode 100644
index 0000000..91c319c
Binary files /dev/null and b/public/og/kolbjorn-cabinet-80-x-81.png differ
diff --git a/public/og/kolbjorn-shelving-unit-80-x-81.png b/public/og/kolbjorn-shelving-unit-80-x-81.png
new file mode 100644
index 0000000..3416e8c
Binary files /dev/null and b/public/og/kolbjorn-shelving-unit-80-x-81.png differ
diff --git a/public/og/koppang-chest-3-drawers.png b/public/og/koppang-chest-3-drawers.png
new file mode 100644
index 0000000..961b1ae
Binary files /dev/null and b/public/og/koppang-chest-3-drawers.png differ
diff --git a/public/og/koppang-chest-6-drawers.png b/public/og/koppang-chest-6-drawers.png
new file mode 100644
index 0000000..3080cfc
Binary files /dev/null and b/public/og/koppang-chest-6-drawers.png differ
diff --git a/public/og/kritter-kids-bed-frame-70-x-160.png b/public/og/kritter-kids-bed-frame-70-x-160.png
new file mode 100644
index 0000000..0bd8906
Binary files /dev/null and b/public/og/kritter-kids-bed-frame-70-x-160.png differ
diff --git a/public/og/kullen-3-drawers.png b/public/og/kullen-3-drawers.png
new file mode 100644
index 0000000..bb2e343
Binary files /dev/null and b/public/og/kullen-3-drawers.png differ
diff --git a/public/og/kullen-chest-2-drawers.png b/public/og/kullen-chest-2-drawers.png
new file mode 100644
index 0000000..ee1df93
Binary files /dev/null and b/public/og/kullen-chest-2-drawers.png differ
diff --git a/public/og/kullen-chest-5-drawers.png b/public/og/kullen-chest-5-drawers.png
new file mode 100644
index 0000000..066b692
Binary files /dev/null and b/public/og/kullen-chest-5-drawers.png differ
diff --git a/public/og/kullen-chest-6-drawers.png b/public/og/kullen-chest-6-drawers.png
new file mode 100644
index 0000000..4bdd2a1
Binary files /dev/null and b/public/og/kullen-chest-6-drawers.png differ
diff --git a/public/og/kyrre-stool.png b/public/og/kyrre-stool.png
new file mode 100644
index 0000000..fb03882
Binary files /dev/null and b/public/og/kyrre-stool.png differ
diff --git a/public/og/lack-coffee-table-90-x-55.png b/public/og/lack-coffee-table-90-x-55.png
new file mode 100644
index 0000000..600e781
Binary files /dev/null and b/public/og/lack-coffee-table-90-x-55.png differ
diff --git a/public/og/lack-coffee-table.png b/public/og/lack-coffee-table.png
new file mode 100644
index 0000000..a7c18e1
Binary files /dev/null and b/public/og/lack-coffee-table.png differ
diff --git a/public/og/lack-side-table.png b/public/og/lack-side-table.png
new file mode 100644
index 0000000..e144bca
Binary files /dev/null and b/public/og/lack-side-table.png differ
diff --git a/public/og/lack-tv-bench.png b/public/og/lack-tv-bench.png
new file mode 100644
index 0000000..8838e32
Binary files /dev/null and b/public/og/lack-tv-bench.png differ
diff --git a/public/og/lagkapten-desk-120-x-60.png b/public/og/lagkapten-desk-120-x-60.png
new file mode 100644
index 0000000..6855cbb
Binary files /dev/null and b/public/og/lagkapten-desk-120-x-60.png differ
diff --git a/public/og/laiva-bookcase-62-x-165.png b/public/og/laiva-bookcase-62-x-165.png
new file mode 100644
index 0000000..70126dd
Binary files /dev/null and b/public/og/laiva-bookcase-62-x-165.png differ
diff --git a/public/og/landskrona-3-seat-sofa.png b/public/og/landskrona-3-seat-sofa.png
new file mode 100644
index 0000000..430bb4e
Binary files /dev/null and b/public/og/landskrona-3-seat-sofa.png differ
diff --git a/public/og/lerhamn-table-118-x-74.png b/public/og/lerhamn-table-118-x-74.png
new file mode 100644
index 0000000..aaf5db2
Binary files /dev/null and b/public/og/lerhamn-table-118-x-74.png differ
diff --git a/public/og/linnmon-adils-desk.png b/public/og/linnmon-adils-desk.png
new file mode 100644
index 0000000..13585ee
Binary files /dev/null and b/public/og/linnmon-adils-desk.png differ
diff --git a/public/og/linnmon-table-top-legs-120-x-60.png b/public/og/linnmon-table-top-legs-120-x-60.png
new file mode 100644
index 0000000..6a0d008
Binary files /dev/null and b/public/og/linnmon-table-top-legs-120-x-60.png differ
diff --git a/public/og/lisabo-chair.png b/public/og/lisabo-chair.png
new file mode 100644
index 0000000..cd6c9bd
Binary files /dev/null and b/public/og/lisabo-chair.png differ
diff --git a/public/og/lisabo-table-140-x-78.png b/public/og/lisabo-table-140-x-78.png
new file mode 100644
index 0000000..f6c0e33
Binary files /dev/null and b/public/og/lisabo-table-140-x-78.png differ
diff --git a/public/og/listerby-coffee-table-140-x-60.png b/public/og/listerby-coffee-table-140-x-60.png
new file mode 100644
index 0000000..2c7df9d
Binary files /dev/null and b/public/og/listerby-coffee-table-140-x-60.png differ
diff --git a/public/og/mackapar-shoe-cabinet-80-x-102.png b/public/og/mackapar-shoe-cabinet-80-x-102.png
new file mode 100644
index 0000000..fe13fd4
Binary files /dev/null and b/public/og/mackapar-shoe-cabinet-80-x-102.png differ
diff --git a/public/og/malm-2-drawers.png b/public/og/malm-2-drawers.png
new file mode 100644
index 0000000..a69b5f3
Binary files /dev/null and b/public/og/malm-2-drawers.png differ
diff --git a/public/og/malm-3-drawers.png b/public/og/malm-3-drawers.png
new file mode 100644
index 0000000..67cb2ae
Binary files /dev/null and b/public/og/malm-3-drawers.png differ
diff --git a/public/og/malm-4-drawers.png b/public/og/malm-4-drawers.png
new file mode 100644
index 0000000..40ac811
Binary files /dev/null and b/public/og/malm-4-drawers.png differ
diff --git a/public/og/malm-6-drawers.png b/public/og/malm-6-drawers.png
new file mode 100644
index 0000000..338e61d
Binary files /dev/null and b/public/og/malm-6-drawers.png differ
diff --git a/public/og/malm-bed-160.png b/public/og/malm-bed-160.png
new file mode 100644
index 0000000..3441971
Binary files /dev/null and b/public/og/malm-bed-160.png differ
diff --git a/public/og/malm-bed-frame-140-x-200.png b/public/og/malm-bed-frame-140-x-200.png
new file mode 100644
index 0000000..bd9749e
Binary files /dev/null and b/public/og/malm-bed-frame-140-x-200.png differ
diff --git a/public/og/malm-bed-frame-90-x-200.png b/public/og/malm-bed-frame-90-x-200.png
new file mode 100644
index 0000000..03fc60d
Binary files /dev/null and b/public/og/malm-bed-frame-90-x-200.png differ
diff --git a/public/og/malm-bedside-table-1-drawer.png b/public/og/malm-bedside-table-1-drawer.png
new file mode 100644
index 0000000..e2b49e8
Binary files /dev/null and b/public/og/malm-bedside-table-1-drawer.png differ
diff --git a/public/og/marius-stool.png b/public/og/marius-stool.png
new file mode 100644
index 0000000..e22453f
Binary files /dev/null and b/public/og/marius-stool.png differ
diff --git a/public/og/melltorp-table.png b/public/og/melltorp-table.png
new file mode 100644
index 0000000..28bc594
Binary files /dev/null and b/public/og/melltorp-table.png differ
diff --git a/public/og/micke-desk-105-x-50.png b/public/og/micke-desk-105-x-50.png
new file mode 100644
index 0000000..567ec0f
Binary files /dev/null and b/public/og/micke-desk-105-x-50.png differ
diff --git a/public/og/milsbo-glass-door-cabinet-101-x-186.png b/public/og/milsbo-glass-door-cabinet-101-x-186.png
new file mode 100644
index 0000000..c58be68
Binary files /dev/null and b/public/og/milsbo-glass-door-cabinet-101-x-186.png differ
diff --git a/public/og/morbylanga-table-220-x-100.png b/public/og/morbylanga-table-220-x-100.png
new file mode 100644
index 0000000..515f0c0
Binary files /dev/null and b/public/og/morbylanga-table-220-x-100.png differ
diff --git a/public/og/neiden-bed-frame-90-x-200.png b/public/og/neiden-bed-frame-90-x-200.png
new file mode 100644
index 0000000..f0baec8
Binary files /dev/null and b/public/og/neiden-bed-frame-90-x-200.png differ
diff --git a/public/og/nesna-bedside-table.png b/public/og/nesna-bedside-table.png
new file mode 100644
index 0000000..e992e85
Binary files /dev/null and b/public/og/nesna-bedside-table.png differ
diff --git a/public/og/nordli-bed-frame-storage-160-x-200.png b/public/og/nordli-bed-frame-storage-160-x-200.png
new file mode 100644
index 0000000..54bd619
Binary files /dev/null and b/public/og/nordli-bed-frame-storage-160-x-200.png differ
diff --git a/public/og/nordli-chest-4-drawers.png b/public/og/nordli-chest-4-drawers.png
new file mode 100644
index 0000000..fbbcdec
Binary files /dev/null and b/public/og/nordli-chest-4-drawers.png differ
diff --git a/public/og/nordli-chest-8-drawers.png b/public/og/nordli-chest-8-drawers.png
new file mode 100644
index 0000000..5cd3ea2
Binary files /dev/null and b/public/og/nordli-chest-8-drawers.png differ
diff --git a/public/og/norraker-chair.png b/public/og/norraker-chair.png
new file mode 100644
index 0000000..cfb91fc
Binary files /dev/null and b/public/og/norraker-chair.png differ
diff --git a/public/og/norraker-table-125-x-74.png b/public/og/norraker-table-125-x-74.png
new file mode 100644
index 0000000..480fa62
Binary files /dev/null and b/public/og/norraker-table-125-x-74.png differ
diff --git a/public/og/odger-chair.png b/public/og/odger-chair.png
new file mode 100644
index 0000000..915d555
Binary files /dev/null and b/public/og/odger-chair.png differ
diff --git a/public/og/omar-shelf-section-92-x-181.png b/public/og/omar-shelf-section-92-x-181.png
new file mode 100644
index 0000000..4ed62e3
Binary files /dev/null and b/public/og/omar-shelf-section-92-x-181.png differ
diff --git a/public/og/pax-frame.png b/public/og/pax-frame.png
new file mode 100644
index 0000000..83e4585
Binary files /dev/null and b/public/og/pax-frame.png differ
diff --git a/public/og/pax-wardrobe-frame-100-x-236.png b/public/og/pax-wardrobe-frame-100-x-236.png
new file mode 100644
index 0000000..72d67fa
Binary files /dev/null and b/public/og/pax-wardrobe-frame-100-x-236.png differ
diff --git a/public/og/pax-wardrobe-frame-50-x-236.png b/public/og/pax-wardrobe-frame-50-x-236.png
new file mode 100644
index 0000000..3b9043d
Binary files /dev/null and b/public/og/pax-wardrobe-frame-50-x-236.png differ
diff --git a/public/og/poang-armchair.png b/public/og/poang-armchair.png
new file mode 100644
index 0000000..71bb298
Binary files /dev/null and b/public/og/poang-armchair.png differ
diff --git a/public/og/rakkestad-wardrobe-2-doors-79-x-176.png b/public/og/rakkestad-wardrobe-2-doors-79-x-176.png
new file mode 100644
index 0000000..24fef28
Binary files /dev/null and b/public/og/rakkestad-wardrobe-2-doors-79-x-176.png differ
diff --git a/public/og/rast-3-drawers.png b/public/og/rast-3-drawers.png
new file mode 100644
index 0000000..55988c6
Binary files /dev/null and b/public/og/rast-3-drawers.png differ
diff --git a/public/og/rudsta-glass-door-cabinet-80-x-170.png b/public/og/rudsta-glass-door-cabinet-80-x-170.png
new file mode 100644
index 0000000..edbced1
Binary files /dev/null and b/public/og/rudsta-glass-door-cabinet-80-x-170.png differ
diff --git a/public/og/sagstua-bed-frame-160-x-200.png b/public/og/sagstua-bed-frame-160-x-200.png
new file mode 100644
index 0000000..531ec3a
Binary files /dev/null and b/public/og/sagstua-bed-frame-160-x-200.png differ
diff --git a/public/og/sandsberg-table-110-x-67.png b/public/og/sandsberg-table-110-x-67.png
new file mode 100644
index 0000000..762a917
Binary files /dev/null and b/public/og/sandsberg-table-110-x-67.png differ
diff --git a/public/og/skogsta-dining-table-235-x-100.png b/public/og/skogsta-dining-table-235-x-100.png
new file mode 100644
index 0000000..afa2f52
Binary files /dev/null and b/public/og/skogsta-dining-table-235-x-100.png differ
diff --git a/public/og/slattum-upholstered-bed-frame-160-x-200.png b/public/og/slattum-upholstered-bed-frame-160-x-200.png
new file mode 100644
index 0000000..8dbe0ca
Binary files /dev/null and b/public/og/slattum-upholstered-bed-frame-160-x-200.png differ
diff --git a/public/og/soderhamn-3-seat-sofa.png b/public/og/soderhamn-3-seat-sofa.png
new file mode 100644
index 0000000..067571e
Binary files /dev/null and b/public/og/soderhamn-3-seat-sofa.png differ
diff --git a/public/og/songesand-bed-frame-160-x-200.png b/public/og/songesand-bed-frame-160-x-200.png
new file mode 100644
index 0000000..1bb750f
Binary files /dev/null and b/public/og/songesand-bed-frame-160-x-200.png differ
diff --git a/public/og/songesand-chest-4-drawers.png b/public/og/songesand-chest-4-drawers.png
new file mode 100644
index 0000000..9b8fe21
Binary files /dev/null and b/public/og/songesand-chest-4-drawers.png differ
diff --git a/public/og/songesand-chest-6-drawers.png b/public/og/songesand-chest-6-drawers.png
new file mode 100644
index 0000000..fc72760
Binary files /dev/null and b/public/og/songesand-chest-6-drawers.png differ
diff --git a/public/og/songesand-nightstand.png b/public/og/songesand-nightstand.png
new file mode 100644
index 0000000..f3bb062
Binary files /dev/null and b/public/og/songesand-nightstand.png differ
diff --git a/public/og/songesand-wardrobe-120-x-191.png b/public/og/songesand-wardrobe-120-x-191.png
new file mode 100644
index 0000000..d5a5cb2
Binary files /dev/null and b/public/og/songesand-wardrobe-120-x-191.png differ
diff --git a/public/og/stall-shoe-cabinet-3-compartments.png b/public/og/stall-shoe-cabinet-3-compartments.png
new file mode 100644
index 0000000..0d2927d
Binary files /dev/null and b/public/og/stall-shoe-cabinet-3-compartments.png differ
diff --git a/public/og/stefan-chair.png b/public/og/stefan-chair.png
new file mode 100644
index 0000000..cc63f3d
Binary files /dev/null and b/public/og/stefan-chair.png differ
diff --git a/public/og/step-hero.png b/public/og/step-hero.png
new file mode 100644
index 0000000..1561796
Binary files /dev/null and b/public/og/step-hero.png differ
diff --git a/public/og/stig-bar-stool-74.png b/public/og/stig-bar-stool-74.png
new file mode 100644
index 0000000..6175875
Binary files /dev/null and b/public/og/stig-bar-stool-74.png differ
diff --git a/public/og/strandmon-wing-chair.png b/public/og/strandmon-wing-chair.png
new file mode 100644
index 0000000..282679b
Binary files /dev/null and b/public/og/strandmon-wing-chair.png differ
diff --git a/public/og/sundvik-extendable-bed-80-x-200.png b/public/og/sundvik-extendable-bed-80-x-200.png
new file mode 100644
index 0000000..85418d2
Binary files /dev/null and b/public/og/sundvik-extendable-bed-80-x-200.png differ
diff --git a/public/og/tarva-bed-frame-140-x-200.png b/public/og/tarva-bed-frame-140-x-200.png
new file mode 100644
index 0000000..73a3c12
Binary files /dev/null and b/public/og/tarva-bed-frame-140-x-200.png differ
diff --git a/public/og/tarva-bed-frame-90-x-200.png b/public/og/tarva-bed-frame-90-x-200.png
new file mode 100644
index 0000000..3f91160
Binary files /dev/null and b/public/og/tarva-bed-frame-90-x-200.png differ
diff --git a/public/og/tarva-chest-5-drawers.png b/public/og/tarva-chest-5-drawers.png
new file mode 100644
index 0000000..bd3dbea
Binary files /dev/null and b/public/og/tarva-chest-5-drawers.png differ
diff --git a/public/og/tarva-chest-6-drawers.png b/public/og/tarva-chest-6-drawers.png
new file mode 100644
index 0000000..58145e2
Binary files /dev/null and b/public/og/tarva-chest-6-drawers.png differ
diff --git a/public/og/tarva-nightstand.png b/public/og/tarva-nightstand.png
new file mode 100644
index 0000000..3ca3809
Binary files /dev/null and b/public/og/tarva-nightstand.png differ
diff --git a/public/og/teodores-chair.png b/public/og/teodores-chair.png
new file mode 100644
index 0000000..83c8da2
Binary files /dev/null and b/public/og/teodores-chair.png differ
diff --git a/public/og/terje-folding-chair.png b/public/og/terje-folding-chair.png
new file mode 100644
index 0000000..604c1f9
Binary files /dev/null and b/public/og/terje-folding-chair.png differ
diff --git a/public/og/tommaryd-table-130-x-70.png b/public/og/tommaryd-table-130-x-70.png
new file mode 100644
index 0000000..18daf5d
Binary files /dev/null and b/public/og/tommaryd-table-130-x-70.png differ
diff --git a/public/og/tonstad-sideboard-121-x-81.png b/public/og/tonstad-sideboard-121-x-81.png
new file mode 100644
index 0000000..e9ff630
Binary files /dev/null and b/public/og/tonstad-sideboard-121-x-81.png differ
diff --git a/public/og/trofast-storage-frame-99-x-94.png b/public/og/trofast-storage-frame-99-x-94.png
new file mode 100644
index 0000000..6d28508
Binary files /dev/null and b/public/og/trofast-storage-frame-99-x-94.png differ
diff --git a/public/og/trones-shoe-cabinet-52-x-39.png b/public/og/trones-shoe-cabinet-52-x-39.png
new file mode 100644
index 0000000..76fe806
Binary files /dev/null and b/public/og/trones-shoe-cabinet-52-x-39.png differ
diff --git a/public/og/trotten-desk-120-x-70.png b/public/og/trotten-desk-120-x-70.png
new file mode 100644
index 0000000..c260948
Binary files /dev/null and b/public/og/trotten-desk-120-x-70.png differ
diff --git a/public/og/uppland-3-seat-sofa.png b/public/og/uppland-3-seat-sofa.png
new file mode 100644
index 0000000..17d0b8b
Binary files /dev/null and b/public/og/uppland-3-seat-sofa.png differ
diff --git a/public/og/vangsta-extendable-table-120-x-75.png b/public/og/vangsta-extendable-table-120-x-75.png
new file mode 100644
index 0000000..70615a5
Binary files /dev/null and b/public/og/vangsta-extendable-table-120-x-75.png differ
diff --git a/public/og/vihals-chest-6-drawers.png b/public/og/vihals-chest-6-drawers.png
new file mode 100644
index 0000000..edb65a0
Binary files /dev/null and b/public/og/vihals-chest-6-drawers.png differ
diff --git a/public/og/vimle-3-seat-sofa.png b/public/og/vimle-3-seat-sofa.png
new file mode 100644
index 0000000..b67b2a0
Binary files /dev/null and b/public/og/vimle-3-seat-sofa.png differ
diff --git a/public/og/visthus-wardrobe-122-x-216.png b/public/og/visthus-wardrobe-122-x-216.png
new file mode 100644
index 0000000..2bb68f5
Binary files /dev/null and b/public/og/visthus-wardrobe-122-x-216.png differ
diff --git a/public/og/vittsjo-coffee-table-90-x-50.png b/public/og/vittsjo-coffee-table-90-x-50.png
new file mode 100644
index 0000000..225cb31
Binary files /dev/null and b/public/og/vittsjo-coffee-table-90-x-50.png differ
diff --git a/public/og/vittsjo-shelving-unit-51-x-175.png b/public/og/vittsjo-shelving-unit-51-x-175.png
new file mode 100644
index 0000000..a5dfdba
Binary files /dev/null and b/public/og/vittsjo-shelving-unit-51-x-175.png differ
diff --git a/scripts/og/render.mjs b/scripts/og/render.mjs
new file mode 100644
index 0000000..9e5384d
--- /dev/null
+++ b/scripts/og/render.mjs
@@ -0,0 +1,50 @@
+/**
+ * Draws the pictures the share cards use, with the app's own engine:
+ *
+ * npm run dev, then: node scripts/og/render.mjs [--base http://localhost:3000] [--only kallax-2x2]
+ *
+ * Needs Playwright from any project that has it: PLAYWRIGHT_FROM=/path/to/project.
+ * Writes public/og/{slug}.png for the hand-picked catalog and public/og/kind-{kind}.png
+ * for every furniture kind (the fallback for everything else).
+ */
+import { createRequire } from "node:module";
+import { execFileSync } from "node:child_process";
+import { mkdirSync, renameSync, writeFileSync } from "node:fs";
+import path from "node:path";
+
+const args = process.argv.slice(2);
+const arg = (k, d) => (args.includes(k) ? args[args.indexOf(k) + 1] : d);
+const base = arg("--base", "http://localhost:3000");
+const only = arg("--only");
+const from = process.env.PLAYWRIGHT_FROM;
+if (!from) throw new Error("set PLAYWRIGHT_FROM to a folder whose node_modules has playwright");
+const { chromium } = createRequire(path.join(from, "package.json"))("playwright");
+
+const OUT = path.resolve(import.meta.dirname, "../../public/og");
+mkdirSync(OUT, { recursive: true });
+
+const browser = await chromium.launch({ args: ["--use-angle=swiftshader", "--enable-unsafe-swiftshader"] });
+const page = await browser.newPage();
+await page.goto(`${base}/dev/og`);
+await page.waitForFunction(() => document.body.dataset.ready === "1", null, { timeout: 60_000 });
+
+// --step malm-3-drawers:6:step-hero draws one step of a product instead of the whole list
+const step = arg("--step");
+const jobs = step
+ ? [{ slug: step.split(":")[0], mode: { kind: "step", index: Number(step.split(":")[1]) }, out: step.split(":")[2] }]
+ : await page.evaluate(() => fetch("/dev/og/list").then((r) => r.json()));
+const list = only ? jobs.filter((j) => j.slug === only || j.kind === only) : jobs;
+let n = 0;
+for (const j of list) {
+ const url = await page.evaluate((o) => window.__draw(o), { ...j, w: 640, h: 560 });
+ if (!url) continue;
+ const file = path.join(OUT, `${j.out ?? j.slug ?? "kind-" + j.kind}.png`);
+ writeFileSync(file, Buffer.from(url.split(",")[1], "base64"));
+ // flatten onto pure white and keep 48 colours: line art stays crisp at a sixth of the size
+ const tmp = file + ".tmp.png";
+ execFileSync("ffmpeg", ["-v", "error", "-y", "-i", file, "-filter_complex", "color=white:s=1280x1120,format=rgba[bg];[bg][0:v]overlay=shortest=1,scale=720:-1:flags=lanczos,format=rgb24,lutrgb=r='if(gt(val\\,246)\\,255\\,val)':g='if(gt(val\\,246)\\,255\\,val)':b='if(gt(val\\,246)\\,255\\,val)',split[a][b];[a]palettegen=max_colors=48[p];[b][p]paletteuse=dither=none", "-frames:v", "1", tmp]);
+ renameSync(tmp, file);
+ if (++n % 20 === 0) console.log(`${n}/${list.length}`);
+}
+console.log(`drew ${n} pictures into public/og`);
+await browser.close();
diff --git a/src/app/api/guide/route.ts b/src/app/api/guide/route.ts
index 4a71780..5003190 100644
--- a/src/app/api/guide/route.ts
+++ b/src/app/api/guide/route.ts
@@ -1,6 +1,7 @@
import { PRODUCTS, toSpec } from "@/lib/catalog";
import { categoryOf, fold, guessSpec, matchCatalog, searchCatalog } from "@/lib/search";
import { parseSpec, SPEC_PROMPT } from "@/lib/spec";
+import { draft, type Draft } from "@/lib/draft";
import { chatText, extractJson, hasKey, ipOf, MODELS, rateLimited, TogetherError, userKey } from "@/lib/together";
import type { ProductSpec } from "@/lib/types";
@@ -24,29 +25,18 @@ export async function POST(req: Request) {
if (hasKey() || own) {
if (rateLimited(ipOf(req) + ":guide", 12)) return Response.json({ error: "slow down" }, { status: 429 });
try {
- const { text, model } = await chatText({
- key: own,
- models: MODELS.text,
- json: true,
- maxTokens: 1800,
- temperature: 0.2,
- messages: [
- { role: "system", content: SPEC_PROMPT },
- { role: "user", content: q },
- ],
- });
- const raw = extractJson(text) as { found?: boolean; suggestions?: string[] } | null;
- if (raw && raw.found === false) {
- return Response.json({ found: false, suggestions: (raw.suggestions ?? []).slice(0, 3).concat(suggestions()).slice(0, 4), via: "ai" });
+ const d = await draftWith(own, key, q);
+ if (d && "found" in d) {
+ return Response.json({ found: false, suggestions: d.suggestions.concat(suggestions()).slice(0, 4), via: "ai" });
}
- const spec = parseSpec(raw);
- if (spec) {
+ if (d) {
+ const { spec, model } = d;
// prefer our checked catalog when the model lands on a product we know
const known = PRODUCTS.find((c) => fold(c.name) === fold(spec.name) && c.archetype === spec.archetype && Math.abs(c.size.w - spec.size.w) < 6 && Math.abs(c.size.h - spec.size.h) < 6);
if (known) return Response.json({ spec: { ...toSpec(known), slug: known.slug }, via: "catalog" });
- spec.slug = key.replace(/\s+/g, "-");
- cache.set(key, { spec, model });
- return Response.json({ spec, via: "ai", model });
+ const out = { ...spec, slug: key.replace(/\s+/g, "-") };
+ cache.set(key, { spec: out, model });
+ return Response.json({ spec: out, via: "ai", model });
}
} catch (e) {
const err = e as TogetherError;
@@ -58,3 +48,23 @@ export async function POST(req: Request) {
if (g && categoryOf(q)) return Response.json({ spec: g, via: "guess" });
return Response.json({ found: false, suggestions: suggestions(), via: hasKey() || own ? "ai" : "offline" });
}
+
+/** The shared, cached draft on the server key; a visitor's own key is never cached under someone else's name. */
+async function draftWith(own: string | undefined, key: string, q: string): Promise<Draft | null> {
+ if (!own && hasKey()) return draft(key);
+ const { text, model } = await chatText({
+ key: own,
+ models: MODELS.text,
+ json: true,
+ maxTokens: 1800,
+ temperature: 0.2,
+ messages: [
+ { role: "system", content: SPEC_PROMPT },
+ { role: "user", content: q },
+ ],
+ });
+ const raw = extractJson(text) as { found?: boolean; suggestions?: string[] } | null;
+ if (raw && raw.found === false) return { found: false, suggestions: (raw.suggestions ?? []).slice(0, 3) };
+ const spec = parseSpec(raw);
+ return spec ? { spec, model } : null;
+}
diff --git a/src/app/apple-icon.png b/src/app/apple-icon.png
new file mode 100644
index 0000000..f87b302
Binary files /dev/null and b/src/app/apple-icon.png differ
diff --git a/src/app/build/[slug]/opengraph-image.tsx b/src/app/build/[slug]/opengraph-image.tsx
new file mode 100644
index 0000000..d2e9e26
--- /dev/null
+++ b/src/app/build/[slug]/opengraph-image.tsx
@@ -0,0 +1,29 @@
+import { catalogSpec } from "@/lib/catalog";
+import { buildPlan } from "@/lib/plan";
+import { KIND_LABELS } from "@/lib/products";
+import { kindOf } from "@/lib/search";
+import { OG_SIZE, drawing, guideCard } from "@/lib/og/card";
+
+export const alt = "An IKEA assembly guide on Bygga, step by step in 3D";
+export const size = OG_SIZE;
+export const contentType = "image/png";
+
+export default async function Image({ params }: { params: Promise<{ slug: string }> }) {
+ const slug = decodeURIComponent((await params).slug);
+ const spec = catalogSpec(slug);
+ if (!spec) {
+ // a product we draft on the fly: its name, and the drawing of the kind its slug names, if any
+ const name = slug.split("-")[0].toUpperCase().slice(0, 18);
+ const kind = kindOf(slug.replace(/-/g, " "));
+ return guideCard({ name, variant: "Assembly, step by step", steps: null, art: await drawing(kind ? `kind-${kind}` : "kind-bookcase") });
+ }
+ const kind = kindOf(`${spec.category} ${spec.variant}`) ?? KIND_LABELS[0].kind;
+ const art = (await drawing(slug)) ?? (await drawing(`kind-${kind}`));
+ let steps: number | null = null;
+ try {
+ steps = buildPlan(spec).steps.length;
+ } catch {
+ /* the card still works without a count */
+ }
+ return guideCard({ name: spec.name, variant: spec.variant, steps, art });
+}
diff --git a/src/app/build/[slug]/page.tsx b/src/app/build/[slug]/page.tsx
index 4d5afc6..2fb4b06 100644
--- a/src/app/build/[slug]/page.tsx
+++ b/src/app/build/[slug]/page.tsx
@@ -7,10 +7,23 @@ type Props = { params: Promise<{ slug: string }>; searchParams: Promise<Record<s
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = await params;
- if (slug.startsWith("scan-")) return { title: "Scanned guide | Bygga" };
+ if (slug.startsWith("scan-")) return { title: "Scanned guide | Bygga", robots: { index: false } };
const s = catalogSpec(decodeURIComponent(slug));
const name = s ? `${s.name} ${s.variant.toLowerCase()}` : decodeURIComponent(slug).replace(/-/g, " ").toUpperCase();
- return { title: `${name}: assembly step by step | Bygga` };
+ const title = `${name}: assembly step by step | Bygga`;
+ const description = s
+ ? `How to assemble the IKEA ${s.name} ${s.variant.toLowerCase()}, one step at a time in 3D: every panel, screw and tool, about ${s.minutes} minutes${s.people === 2 ? " with two people" : ""}.`
+ : `Assemble ${name} step by step in 3D, with the parts, screws and tools for each step.`;
+ const url = `/build/${slug}`;
+ return {
+ title,
+ description,
+ alternates: { canonical: url },
+ openGraph: { type: "article", siteName: "Bygga", title, description, url },
+ twitter: { card: "summary_large_image", title, description },
+ // drafts for names we don't know shouldn't fill search results
+ robots: s ? undefined : { index: false },
+ };
}
export default function Page(props: Props) {
diff --git a/src/app/build/[slug]/twitter-image.tsx b/src/app/build/[slug]/twitter-image.tsx
new file mode 100644
index 0000000..d2e9e26
--- /dev/null
+++ b/src/app/build/[slug]/twitter-image.tsx
@@ -0,0 +1,29 @@
+import { catalogSpec } from "@/lib/catalog";
+import { buildPlan } from "@/lib/plan";
+import { KIND_LABELS } from "@/lib/products";
+import { kindOf } from "@/lib/search";
+import { OG_SIZE, drawing, guideCard } from "@/lib/og/card";
+
+export const alt = "An IKEA assembly guide on Bygga, step by step in 3D";
+export const size = OG_SIZE;
+export const contentType = "image/png";
+
+export default async function Image({ params }: { params: Promise<{ slug: string }> }) {
+ const slug = decodeURIComponent((await params).slug);
+ const spec = catalogSpec(slug);
+ if (!spec) {
+ // a product we draft on the fly: its name, and the drawing of the kind its slug names, if any
+ const name = slug.split("-")[0].toUpperCase().slice(0, 18);
+ const kind = kindOf(slug.replace(/-/g, " "));
+ return guideCard({ name, variant: "Assembly, step by step", steps: null, art: await drawing(kind ? `kind-${kind}` : "kind-bookcase") });
+ }
+ const kind = kindOf(`${spec.category} ${spec.variant}`) ?? KIND_LABELS[0].kind;
+ const art = (await drawing(slug)) ?? (await drawing(`kind-${kind}`));
+ let steps: number | null = null;
+ try {
+ steps = buildPlan(spec).steps.length;
+ } catch {
+ /* the card still works without a count */
+ }
+ return guideCard({ name: spec.name, variant: spec.variant, steps, art });
+}
diff --git a/src/app/dev/og/Renderer.tsx b/src/app/dev/og/Renderer.tsx
new file mode 100644
index 0000000..db2098e
--- /dev/null
+++ b/src/app/dev/og/Renderer.tsx
@@ -0,0 +1,29 @@
+"use client";
+
+import { useEffect } from "react";
+import { catalogSpec } from "@/lib/catalog";
+import { buildPlan } from "@/lib/plan";
+import { specForKind } from "@/lib/search";
+import type { Kind } from "@/lib/products";
+import type { StageMode } from "@/engine/stage";
+import { shot } from "@/engine/thumbs";
+
+declare global {
+ interface Window {
+ __draw?: (o: { slug?: string; kind?: Kind; mode?: StageMode; w: number; h: number }) => Promise<string | null>;
+ }
+}
+
+export default function Renderer() {
+ useEffect(() => {
+ window.__draw = async ({ slug, kind, mode, w, h }) => {
+ const spec = slug ? catalogSpec(slug) : kind ? { ...specForKind(kind, "X"), slug: "kind-" + kind } : null;
+ if (!spec) return null;
+ const plan = buildPlan(spec);
+ const s = await shot(`og:${slug ?? kind}:${JSON.stringify(mode)}`, plan, mode ?? { kind: "assembled" }, w, h);
+ return s.url;
+ };
+ document.body.dataset.ready = "1";
+ }, []);
+ return null;
+}
diff --git a/src/app/dev/og/list/route.ts b/src/app/dev/og/list/route.ts
new file mode 100644
index 0000000..6bda01a
--- /dev/null
+++ b/src/app/dev/og/list/route.ts
@@ -0,0 +1,9 @@
+import { PRODUCTS } from "@/lib/catalog";
+import { KIND_LABELS } from "@/lib/products";
+
+/** Dev only: what scripts/og/render.mjs should draw: every kind, then every catalog product. */
+export async function GET() {
+ if (process.env.NODE_ENV === "production") return new Response(null, { status: 404 });
+ const picks = PRODUCTS.map((p) => ({ slug: p.slug }));
+ return Response.json([...KIND_LABELS.map((k) => ({ kind: k.kind })), ...picks]);
+}
diff --git a/src/app/dev/og/page.tsx b/src/app/dev/og/page.tsx
new file mode 100644
index 0000000..9cab88d
--- /dev/null
+++ b/src/app/dev/og/page.tsx
@@ -0,0 +1,8 @@
+import { notFound } from "next/navigation";
+import Renderer from "./Renderer";
+
+/** Dev only: lets scripts/og/render.mjs draw product pictures with the real engine. */
+export default function Page() {
+ if (process.env.NODE_ENV === "production") notFound();
+ return <Renderer />;
+}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index d5f0301..306d80d 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -4,6 +4,8 @@ import "./globals.css";
import "./guide.css";
import "./home.css";
import "./scan.css";
+import { Analytics } from "@vercel/analytics/next";
+import { SITE_URL } from "@/lib/site";
const noto = Noto_Sans({
subsets: ["latin", "latin-ext"],
@@ -19,9 +21,17 @@ const display = Noto_Sans_Display({
display: "swap",
});
+const description = "Type the product name from the box. Bygga shows every assembly step in 3D, with the exact parts, screws and tools, and reads each one out loud.";
+
export const metadata: Metadata = {
+ metadataBase: new URL(SITE_URL),
title: "Bygga: IKEA assembly, step by step",
- description: "Type the product name from the box. Bygga shows every assembly step in 3D, with the exact parts, screws and tools.",
+ description,
+ applicationName: "Bygga",
+ appleWebApp: { capable: true, title: "Bygga", statusBarStyle: "default" },
+ openGraph: { type: "website", siteName: "Bygga", title: "Bygga: IKEA assembly, step by step", description, url: "/" },
+ twitter: { card: "summary_large_image", title: "Bygga: IKEA assembly, step by step", description },
+ alternates: { canonical: "/" },
};
export const viewport: Viewport = {
@@ -33,7 +43,10 @@ export const viewport: Viewport = {
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
return (
<html lang="en" className={`${noto.variable} ${display.variable}`}>
- <body>{children}</body>
+ <body>
+ {children}
+ <Analytics />
+ </body>
</html>
);
}
diff --git a/src/app/manifest.ts b/src/app/manifest.ts
new file mode 100644
index 0000000..182285f
--- /dev/null
+++ b/src/app/manifest.ts
@@ -0,0 +1,20 @@
+import type { MetadataRoute } from "next";
+
+/** Add to home screen: opens straight into the search, full screen, in the page's own colours. */
+export default function manifest(): MetadataRoute.Manifest {
+ return {
+ name: "Bygga: IKEA assembly, step by step",
+ short_name: "Bygga",
+ description: "Every IKEA assembly step in 3D, read out loud.",
+ start_url: "/",
+ display: "standalone",
+ background_color: "#f5f4f0",
+ theme_color: "#f5f4f0",
+ icons: [
+ { src: "/icon.svg", sizes: "any", type: "image/svg+xml" },
+ { src: "/icon-192.png", sizes: "192x192", type: "image/png" },
+ { src: "/icon-512.png", sizes: "512x512", type: "image/png" },
+ { src: "/icon-maskable-512.png", sizes: "512x512", type: "image/png", purpose: "maskable" },
+ ],
+ };
+}
diff --git a/src/app/opengraph-image.tsx b/src/app/opengraph-image.tsx
new file mode 100644
index 0000000..a419ccd
--- /dev/null
+++ b/src/app/opengraph-image.tsx
@@ -0,0 +1,9 @@
+import { OG_SIZE, siteCard } from "@/lib/og/card";
+
+export const alt = "Bygga: IKEA assembly, step by step, in 3D. Powered by Together AI";
+export const size = OG_SIZE;
+export const contentType = "image/png";
+
+export default function Image() {
+ return siteCard();
+}
diff --git a/src/app/robots.ts b/src/app/robots.ts
new file mode 100644
index 0000000..75fe898
--- /dev/null
+++ b/src/app/robots.ts
@@ -0,0 +1,9 @@
+import type { MetadataRoute } from "next";
+import { SITE_URL } from "@/lib/site";
+
+export default function robots(): MetadataRoute.Robots {
+ return {
+ rules: [{ userAgent: "*", allow: "/", disallow: ["/api/", "/dev/", "/builds"] }],
+ sitemap: `${SITE_URL}/sitemap.xml`,
+ };
+}
diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts
new file mode 100644
index 0000000..92315cf
--- /dev/null
+++ b/src/app/sitemap.ts
@@ -0,0 +1,11 @@
+import type { MetadataRoute } from "next";
+import { PRODUCTS } from "@/lib/catalog";
+import { SITE_URL } from "@/lib/site";
+
+export default function sitemap(): MetadataRoute.Sitemap {
+ return [
+ { url: SITE_URL, changeFrequency: "weekly", priority: 1 },
+ { url: `${SITE_URL}/browse`, changeFrequency: "weekly", priority: 0.8 },
+ ...PRODUCTS.map((p) => ({ url: `${SITE_URL}/build/${p.slug}`, changeFrequency: "monthly" as const, priority: p.featured ? 0.9 : p.checked ? 0.7 : 0.5 })),
+ ];
+}
diff --git a/src/app/twitter-image.tsx b/src/app/twitter-image.tsx
new file mode 100644
index 0000000..a419ccd
--- /dev/null
+++ b/src/app/twitter-image.tsx
@@ -0,0 +1,9 @@
+import { OG_SIZE, siteCard } from "@/lib/og/card";
+
+export const alt = "Bygga: IKEA assembly, step by step, in 3D. Powered by Together AI";
+export const size = OG_SIZE;
+export const contentType = "image/png";
+
+export default function Image() {
+ return siteCard();
+}
diff --git a/src/components/guide/DonePanel.tsx b/src/components/guide/DonePanel.tsx
index c20d561..2ba6ff2 100644
--- a/src/components/guide/DonePanel.tsx
+++ b/src/components/guide/DonePanel.tsx
@@ -15,6 +15,7 @@ import Thumb from "../Thumb";
import { fmtMin } from "./CoverPanel";
import { buildCard } from "./shareCard";
import { encodeSpec } from "@/lib/scan/share";
+import { track } from "@vercel/analytics";
export default function DonePanel({ plan, slug, finish, onReview }: { plan: Plan; slug: string; finish: { ms: number; full: boolean } | null; onReview: () => void }) {
const t = totals(plan);
@@ -130,6 +131,7 @@ function ShareCard({ plan, slug, stat, spent }: { plan: Plan; slug: string; stat
const url = `${location.origin}/build/${slug}` + (plan.spec.source === "scan" ? `#g=${await encodeSpec(plan.spec)}` : "");
const text = spent ? `I just built ${plan.spec.name} in ${fmtMin(spent)}, one step at a time.` : `I just built ${plan.spec.name}, one step at a time.`;
const file = card ? new File([card.blob], `${plan.spec.name.toLowerCase()}-built.png`, { type: "image/png" }) : null;
+ track("share", { product: plan.spec.name, image: !!file });
try {
if (file && navigator.canShare?.({ files: [file] })) await navigator.share({ files: [file], text: `${text} ${url}` });
else if (navigator.share) await navigator.share({ title: "Bygga", text, url });
diff --git a/src/components/guide/GuideApp.tsx b/src/components/guide/GuideApp.tsx
index d0be072..6d123a3 100644
--- a/src/components/guide/GuideApp.tsx
+++ b/src/components/guide/GuideApp.tsx
@@ -34,6 +34,7 @@ import { heardWords, parse, type Intent } from "@/lib/voice/commands";
import { useMounted } from "@/lib/useMounted";
import { getUserKey, keyHeaders } from "@/lib/userKey";
import { decodeSpec } from "@/lib/scan/share";
+import { track } from "@vercel/analytics";
import { SCAN_ENABLED } from "@/lib/site";
type Via = "catalog" | "ai" | "guess" | "scan";
@@ -368,10 +369,11 @@ function Guide({ plan, slug, via, ai, startStep }: { plan: Plan; slug: string; v
// skipping through doesn't earn a time: most of the steps have to have been on screen
const full = new Set([...seen, step]).size >= Math.ceil(steps.length * 0.8);
setFinish({ ms, full });
+ track("built", { product: plan.spec.name, slug, full, minutes: Math.round(ms / 60000) });
setBuilt((b) => (!b ? { at: Date.now(), ms, full } : full && (!b.full || !b.ms || ms < b.ms) ? { ...b, ms, full } : b));
}
}
- }, [phase, step, steps.length, go, showToast, seen]);
+ }, [phase, step, steps.length, go, showToast, seen, plan.spec.name, slug]);
const back = useCallback(() => {
if (phase === "tools") go("cover", undefined, -1);
@@ -447,6 +449,7 @@ function Guide({ plan, slug, via, ai, startStep }: { plan: Plan; slug: string; v
// runs inside the tap or key press, so the browser lets it play sound
const startVoice = useCallback(() => {
voice.unlock();
+ track("voice_on", { product: plan.spec.name });
setVoiceOn(true);
setOffer(false);
setPref("voice", true);
diff --git a/src/lib/draft.ts b/src/lib/draft.ts
new file mode 100644
index 0000000..cf24e1f
--- /dev/null
+++ b/src/lib/draft.ts
@@ -0,0 +1,32 @@
+import "server-only";
+import { cacheLife } from "next/cache";
+import { parseSpec, SPEC_PROMPT } from "./spec";
+import { chatText, extractJson, MODELS } from "./together";
+import type { ProductSpec } from "./types";
+
+export type Draft = { spec: ProductSpec; model: string } | { found: false; suggestions: string[] };
+
+/**
+ * Asks the model what a product name is, on the server key. Shared by every
+ * server instance and kept for good, so each name is only paid for once and
+ * the second person to ask gets it instantly. Failures throw and aren't kept.
+ */
+/** `q` is the folded name (lower case, no accents), so every spelling of a name shares one entry. */
+export async function draft(q: string): Promise<Draft | null> {
+ "use cache: remote";
+ cacheLife("max");
+ const { text, model } = await chatText({
+ models: MODELS.text,
+ json: true,
+ maxTokens: 1800,
+ temperature: 0.2,
+ messages: [
+ { role: "system", content: SPEC_PROMPT },
+ { role: "user", content: q },
+ ],
+ });
+ const raw = extractJson(text) as { found?: boolean; suggestions?: string[] } | null;
+ if (raw && raw.found === false) return { found: false, suggestions: (raw.suggestions ?? []).slice(0, 3) };
+ const spec = parseSpec(raw);
+ return spec ? { spec, model } : null;
+}
diff --git a/src/lib/og/card.tsx b/src/lib/og/card.tsx
new file mode 100644
index 0000000..b8eb271
--- /dev/null
+++ b/src/lib/og/card.tsx
@@ -0,0 +1,137 @@
+import { ImageResponse } from "next/og";
+import { existsSync } from "node:fs";
+import { readFile } from "node:fs/promises";
+import { join } from "node:path";
+import { TogetherStamp } from "./factory";
+
+/**
+ * The share cards, drawn like a page of the guide: warm paper, the product
+ * on a white sheet in the app's own line art, the name in its display face.
+ * Drawings come from public/og (scripts/og/render.mjs renders them with the
+ * real engine); products without one use the drawing of their kind.
+ */
+
+export const OG_SIZE = { width: 1200, height: 630 };
+
+const PAGE = "#f5f4f0";
+const INK = "#121212";
+const INK_2 = "#4a4945";
+const LINE = "#e8e6e0";
+const ACCENT = "#ffd21f";
+
+const here = join(process.cwd(), "src/lib/og");
+let fonts: Promise<{ name: string; data: Buffer; weight: 500 | 700 | 800; style: "normal" }[]> | null = null;
+function loadFonts() {
+ fonts ??= Promise.all([
+ readFile(join(here, "display-800.woff")).then((data) => ({ name: "Display", data, weight: 800 as const, style: "normal" as const })),
+ readFile(join(here, "sans-500.woff")).then((data) => ({ name: "Sans", data, weight: 500 as const, style: "normal" as const })),
+ readFile(join(here, "sans-700.woff")).then((data) => ({ name: "Sans", data, weight: 700 as const, style: "normal" as const })),
+ ]);
+ return fonts;
+}
+
+/** A drawing from public/og as a data URI, or null. */
+export async function drawing(name: string) {
+ const file = join(process.cwd(), "public/og", `${name}.png`);
+ if (!existsSync(file)) return null;
+ return `data:image/png;base64,${(await readFile(file)).toString("base64")}`;
+}
+
+/** The logo mark: an Allen bolt head seen from above. */
+function Mark({ size }: { size: number }) {
+ return (
+ <svg viewBox="0 0 32 32" width={size} height={size}>
+ <circle cx="16" cy="16" r="15.5" fill={INK} />
+ <path d="M16 6.2 L24.5 11.1 L24.5 20.9 L16 25.8 L7.5 20.9 L7.5 11.1 Z" fill={ACCENT} stroke={ACCENT} strokeWidth="2.2" strokeLinejoin="round" />
+ <path d="M16 11.2 L20.2 13.6 L20.2 18.4 L16 20.8 L11.8 18.4 L11.8 13.6 Z" fill={INK} stroke={INK} strokeWidth="1.4" strokeLinejoin="round" />
+ </svg>
+ );
+}
+
+function Frame({ left, art, corner }: { left: React.ReactNode; art: string | null; corner?: string }) {
+ return (
+ <div style={{ width: "100%", height: "100%", display: "flex", background: PAGE, padding: 40, fontFamily: "Sans", color: INK }}>
+ <div style={{ display: "flex", flexDirection: "column", width: 560, padding: "18px 36px 14px 24px" }}>
+ <div style={{ display: "flex", alignItems: "center", gap: 12 }}>
+ <Mark size={40} />
+ <span style={{ fontFamily: "Display", fontSize: 32, fontWeight: 800, letterSpacing: "-0.02em" }}>bygga</span>
+ </div>
+ <div style={{ display: "flex", flexDirection: "column", flex: 1, justifyContent: "center" }}>{left}</div>
+ <div style={{ display: "flex", alignItems: "center", gap: 10, fontSize: 19, color: INK_2 }}>
+ <span>Powered by</span>
+ <TogetherStamp height={24} color={INK} />
+ </div>
+ </div>
+ <div
+ style={{
+ display: "flex",
+ flex: 1,
+ position: "relative",
+ alignItems: "center",
+ justifyContent: "center",
+ background: "#ffffff",
+ borderRadius: 36,
+ border: `2px solid ${LINE}`,
+ }}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ {art && <img src={art} alt="" width={520} height={455} style={{ objectFit: "contain" }} />}
+ {corner && (
+ <span style={{ position: "absolute", top: 18, left: 30, fontFamily: "Display", fontSize: 96, fontWeight: 800, letterSpacing: "-0.05em" }}>{corner}</span>
+ )}
+ </div>
+ </div>
+ );
+}
+
+/** Words on a yellow marker, like a highlighted line in the margin. */
+function Marked({ children, size }: { children: string; size: number }) {
+ return (
+ <span style={{ display: "flex", background: ACCENT, borderRadius: size * 0.16, padding: `0 ${size * 0.14}px`, marginLeft: -size * 0.1 }}>{children}</span>
+ );
+}
+
+export async function siteCard() {
+ const art = (await drawing("step-hero")) ?? (await drawing("kallax-2x2"));
+ return new ImageResponse(
+ (
+ <Frame
+ art={art}
+ corner="4"
+ left={
+ <div style={{ display: "flex", flexDirection: "column", fontFamily: "Display", fontWeight: 800, fontSize: 66, lineHeight: 1.04, letterSpacing: "-0.035em" }}>
+ <span>IKEA assembly,</span>
+ <div style={{ display: "flex", marginTop: 6 }}>
+ <Marked size={66}>step by step.</Marked>
+ </div>
+ </div>
+ }
+ />
+ ),
+ { ...OG_SIZE, fonts: await loadFonts() },
+ );
+}
+
+export async function guideCard(o: { name: string; variant: string; steps: number | null; art: string | null }) {
+ const long = o.name.length > 9;
+ return new ImageResponse(
+ (
+ <Frame
+ art={o.art}
+ left={
+ <div style={{ display: "flex", flexDirection: "column" }}>
+ <span style={{ fontSize: 24, fontWeight: 700, color: INK_2, letterSpacing: "0.08em" }}>ASSEMBLY GUIDE</span>
+ <span style={{ fontFamily: "Display", fontWeight: 800, fontSize: long ? 76 : 104, lineHeight: 1, letterSpacing: "-0.04em", marginTop: 10 }}>{o.name}</span>
+ <span style={{ fontSize: 32, fontWeight: 500, color: INK_2, marginTop: 14, lineHeight: 1.25 }}>{o.variant}</span>
+ <div style={{ display: "flex", marginTop: 28 }}>
+ <span style={{ display: "flex", background: ACCENT, borderRadius: 999, padding: "10px 22px", fontSize: 26, fontWeight: 700 }}>
+ {o.steps ? `${o.steps} steps, in 3D` : "Every step, in 3D"}
+ </span>
+ </div>
+ </div>
+ }
+ />
+ ),
+ { ...OG_SIZE, fonts: await loadFonts() },
+ );
+}
diff --git a/src/lib/og/display-800.woff b/src/lib/og/display-800.woff
new file mode 100644
index 0000000..2420922
Binary files /dev/null and b/src/lib/og/display-800.woff differ
diff --git a/src/lib/og/factory.tsx b/src/lib/og/factory.tsx
new file mode 100644
index 0000000..0267f6b
--- /dev/null
+++ b/src/lib/og/factory.tsx
@@ -0,0 +1,62 @@
+/**
+ * From the tg-og card kit: the real together.ai wordmark, vector for vector.
+ * Never re-set it in a font.
+ */
+const INK = "#0a0a0c";
+
+/**
+ * The real together.ai wordmark, the same vector paths the product ships.
+ * Letterforms take `color`; the pinwheel and the i-dot keep brand colors.
+ * This is the dev rel stamp. Never rebuild it out of type.
+ */
+export function TogetherStamp({ height = 30, color = INK }: { height?: number; color?: string }) {
+ return (
+ <svg viewBox="0 0 119 26" width={(119 / 26) * height} height={height} fill="none">
+ <path
+ d="M26.0946 3.36759C24.2311 0.14917 20.1033 -0.95347 16.8756 0.904425C14.799 2.09984 13.6008 4.21357 13.5065 6.43765L20.2512 6.44623L20.2504 7.02289H13.5061C13.5496 8.07403 13.841 9.1215 14.405 10.0958C16.2685 13.3142 20.3963 14.4169 23.6244 12.5586C26.8525 10.7007 27.9584 6.58518 26.0946 3.36677V3.36759Z"
+ fill="#EF2CC1"
+ />
+ <path
+ d="M0.905194 3.36551C-0.958275 6.58393 0.147673 10.699 3.37534 12.5573C5.45196 13.7527 7.88726 13.7302 9.86632 12.6999L6.50175 6.87205L7.00308 6.58434L10.375 12.4073C11.2662 11.8441 12.0307 11.0689 12.5947 10.0946C14.4582 6.87614 13.3522 2.76106 10.1246 0.902757C6.89609 -0.955546 2.76866 0.147094 0.905194 3.36551Z"
+ fill="#CAAEF5"
+ />
+ <path
+ d="M13.4985 25.1174C17.2258 25.1174 20.2473 22.105 20.2473 18.3888C20.2473 15.998 19.0102 13.9067 17.1258 12.7129L13.7457 18.5322L13.2452 18.2433L16.6171 12.4203C15.6825 11.9323 14.6266 11.6602 13.4981 11.6602C9.77074 11.6602 6.74927 14.6726 6.74927 18.3888C6.74927 22.105 9.77074 25.1174 13.4981 25.1174H13.4985Z"
+ fill="#FC4C02"
+ />
+ <path d="M32 9.63382H33.2836V5.19141H35.0534V9.62984H37.0744V11.1863H35.0534V19.5178H33.2836V11.1903H32V9.63382Z" fill={color} />
+ <path
+ d="M41.9655 9.37891C44.7877 9.37891 47.1077 11.7156 47.1077 14.5776C47.1077 17.4397 44.7917 19.7764 41.9655 19.7764C39.1392 19.7764 36.8232 17.4397 36.8232 14.5776C36.8232 11.7156 39.1392 9.37891 41.9655 9.37891ZM41.9655 18.1324C43.8828 18.1324 45.3776 16.6157 45.3776 14.5776C45.3776 12.5395 43.8828 11.0229 41.9655 11.0229C40.0481 11.0229 38.5533 12.5395 38.5533 14.5776C38.5533 16.6157 40.0481 18.1324 41.9655 18.1324Z"
+ fill={color}
+ />
+ <path
+ d="M52.8952 25.0349C50.4517 25.0349 48.0679 23.3312 48.0679 20.5527H49.7939C49.9414 22.4276 51.2688 23.4148 52.8912 23.4148C54.7647 23.4148 56.1998 22.1091 56.1998 19.9198V17.814C55.5261 19.0361 54.0512 19.7725 52.7238 19.7725C49.9016 19.7725 47.749 17.4597 47.749 14.5737C47.749 11.6878 49.8976 9.375 52.7238 9.375C54.0512 9.375 55.5261 10.1114 56.1998 11.3335V9.62976H57.9697V19.9198C57.9697 22.8853 55.6935 25.0349 52.8912 25.0349H52.8952ZM52.9191 18.1324C54.8365 18.1324 56.3313 16.6158 56.3313 14.5777C56.3313 12.5396 54.8365 11.023 52.9191 11.023C51.0018 11.023 49.5069 12.5396 49.5069 14.5777C49.5069 16.6158 51.0018 18.1324 52.9191 18.1324Z"
+ fill={color}
+ />
+ <path
+ d="M67.5413 16.0904L68.9724 16.8905C67.9838 18.7415 66.2976 19.7725 64.3564 19.7725C61.574 19.7725 59.2979 17.4358 59.2979 14.5737C59.2979 11.7116 61.574 9.375 64.3564 9.375C67.1387 9.375 69.1837 11.3932 69.1837 14.932H61.0079C61.1754 16.8268 62.6303 18.1324 64.3603 18.1324C66.0904 18.1324 66.8477 17.396 67.5413 16.0904ZM61.1116 13.5228H67.3061C67.0949 12.1137 66.0425 10.9752 64.3564 10.9752C62.7977 10.9752 61.5341 12.0062 61.1116 13.5228Z"
+ fill={color}
+ />
+ <path d="M69.375 9.63382H70.6586V5.19141H72.4284V9.62984H74.4494V11.1863H72.4284V19.5178H70.6586V11.1903H69.375V9.63382Z" fill={color} />
+ <path
+ d="M79.5038 10.9594C77.9452 10.9594 76.849 12.1576 76.849 14.116V19.5258H75.0791V5.19141H76.849V11.1664C77.5226 10.0916 78.6189 9.37906 80.0938 9.37906C82.3699 9.37906 83.5936 10.9992 83.5936 12.9139V19.5218H81.8238V13.3557C81.8238 11.8391 80.9588 10.9554 79.5078 10.9554L79.5038 10.9594Z"
+ fill={color}
+ />
+ <path
+ d="M93.1009 16.0904L94.5319 16.8905C93.5434 18.7415 91.8572 19.7725 89.9159 19.7725C87.1335 19.7725 84.8574 17.4358 84.8574 14.5737C84.8574 11.7116 87.1335 9.375 89.9159 9.375C92.6983 9.375 94.7432 11.3932 94.7432 14.932H86.5675C86.7349 16.8268 88.1899 18.1324 89.9199 18.1324C91.6499 18.1324 92.4073 17.396 93.1009 16.0904ZM86.6711 13.5228H92.8657C92.6544 12.1137 91.6021 10.9752 89.9159 10.9752C88.3573 10.9752 87.0937 12.0062 86.6711 13.5228Z"
+ fill={color}
+ />
+ <path
+ d="M101.456 11.5674C101.117 11.2729 100.615 11.1256 100.108 11.1256C98.6334 11.1256 97.7923 12.4074 97.7923 14.135V19.5208H96.0225V9.63285H97.7923V11.3167C98.2787 10.2419 99.2473 9.42188 100.531 9.42188C101.165 9.42188 101.731 9.63285 102.089 9.90751L101.456 11.5714V11.5674Z"
+ fill={color}
+ />
+ <path
+ d="M114.124 9.63359V19.5255H112.354V17.8218C111.681 19.0439 110.206 19.7803 108.878 19.7803C106.056 19.7803 103.904 17.4675 103.904 14.5815C103.904 11.6956 106.052 9.38281 108.878 9.38281C110.206 9.38281 111.681 10.1192 112.354 11.3413V9.63757H114.124V9.63359ZM109.066 18.1323C110.983 18.1323 112.478 16.6157 112.478 14.5776C112.478 12.5395 110.983 11.0228 109.066 11.0228C107.148 11.0228 105.654 12.5395 105.654 14.5776C105.654 16.6157 107.148 18.1323 109.066 18.1323Z"
+ fill={color}
+ />
+ <path d="M117.895 9.63281V19.5247H116.125V9.63281H117.895Z" fill={color} />
+ <path d="M115.83 6.17827C115.83 5.54535 116.376 5 117.01 5C117.644 5 118.19 5.54933 118.19 6.17827C118.19 6.80722 117.664 7.35655 117.01 7.35655C116.356 7.35655 115.83 6.8311 115.83 6.17827Z" fill={color} />
+ <path d="M100.527 18.4712C100.527 17.8383 101.073 17.293 101.707 17.293C102.341 17.293 102.887 17.8423 102.887 18.4712C102.887 19.1002 102.361 19.6495 101.707 19.6495C101.054 19.6495 100.527 19.1241 100.527 18.4712Z" fill="#FC4C02" />
+ </svg>
+ );
+}
diff --git a/src/lib/og/sans-500.woff b/src/lib/og/sans-500.woff
new file mode 100644
index 0000000..507d5dc
Binary files /dev/null and b/src/lib/og/sans-500.woff differ
diff --git a/src/lib/og/sans-700.woff b/src/lib/og/sans-700.woff
new file mode 100644
index 0000000..922bb29
Binary files /dev/null and b/src/lib/og/sans-700.woff differ
diff --git a/src/lib/site.ts b/src/lib/site.ts
index 028fec4..3ca6e82 100644
--- a/src/lib/site.ts
+++ b/src/lib/site.ts
@@ -1,5 +1,8 @@
export const GITHUB_REPO = process.env.NEXT_PUBLIC_GITHUB_REPO ?? "Luffixos/bygga";
export const GITHUB_URL = `https://github.com/${GITHUB_REPO}`;
+/** Where the site lives, for share cards, the sitemap and absolute links. */
+export const SITE_URL = (process.env.NEXT_PUBLIC_SITE_URL || "https://bygga-eta.vercel.app").replace(/\/$/, "");
+
/** The manual scanner (/scan) is parked for a later version: hidden everywhere unless NEXT_PUBLIC_SCAN=1. */
export const SCAN_ENABLED = process.env.NEXT_PUBLIC_SCAN === "1";