mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 04:27:02 +01:00
place_photo_bytes held 4,234 Wikimedia Commons thumbnails (1.7 GB of a 4.3 GB database), copied into every nightly backup until the off-site store filled (2026-11-16). Photographs are files: they belong in object storage. - photo-keep-r2.ts: an S3/R2 keep, and a layered keep (R2 first; a photograph found only in Postgres is copied to R2 on first read; new ones go to R2). - The place-photo and og routes use placePhotoKeep(): R2 when the four PHOTOS_S3_* settings exist, Postgres exactly as before otherwise. - scripts/places-photos-to-r2.ts (places:photos:to-r2): one-off resumable copy. - Same S3 client as evig (@aws-sdk/client-s3). Expand first: the table stays until R2 is verified serving; dropping it is a later change (a drop in the same deploy blocks later deploys). Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
131 lines
4.9 KiB
JSON
131 lines
4.9 KiB
JSON
{
|
|
"name": "solon",
|
|
"version": "0.1.0",
|
|
"packageManager": "pnpm@11.25.0",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"private": true,
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit",
|
|
"design:check": "node scripts/design-system-check.js",
|
|
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run design:check && pnpm run check:places-literals && pnpm run places:world-countries --check && pnpm run check:cycles && pnpm run test:coverage",
|
|
"test": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"test:puppeteer": "BASE_URL=${BASE_URL:-http://localhost:3000} node tests/puppeteer/smoke.mjs",
|
|
"test:puppeteer:mega": "BASE_URL=${BASE_URL:-http://localhost:3000} node tests/puppeteer/mega-menu.mjs",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:push": "drizzle-kit push",
|
|
"check:vendored-drift": "node scripts/check-vendored-drift.mjs",
|
|
"places:sync-config": "tsx scripts/places-sync-config.ts",
|
|
"places:import": "tsx scripts/places-import.ts",
|
|
"snapshots:compress": "tsx scripts/snapshots-compress.ts",
|
|
"places:import-files": "tsx scripts/places-import-files.ts",
|
|
"places:fetch": "tsx scripts/places-fetch.ts",
|
|
"places:queue": "tsx scripts/places-queue.ts",
|
|
"data:refresh": "tsx scripts/data-refresh.ts",
|
|
"statistics:sync": "tsx scripts/statistics-sync.ts",
|
|
"statistics:quality": "tsx scripts/statistics-quality.ts",
|
|
"geography:world": "tsx scripts/build-world-geography.ts",
|
|
"check:cycles": "madge --circular --extensions ts,tsx --ts-config tsconfig.json src",
|
|
"places:world-countries": "tsx scripts/places-world-countries.ts",
|
|
"places:world-subdivisions": "tsx scripts/places-world-subdivisions.ts",
|
|
"statistics:verify": "tsx scripts/statistics-verify.ts",
|
|
"law:register": "tsx scripts/law-register.ts",
|
|
"law:text": "tsx scripts/law-text.ts",
|
|
"check:places-literals": "node --import tsx scripts/check-places-no-literals.ts",
|
|
"check:law-search": "tsx scripts/check-law-search.ts",
|
|
"brand": "tsx scripts/brand.mts",
|
|
"money:rates": "tsx scripts/money-rates.ts",
|
|
"law:translate": "tsx scripts/law-translate.ts",
|
|
"i18n:config": "tsx scripts/i18n-config.ts",
|
|
"law:plan": "tsx scripts/law-plan.ts",
|
|
"world:profiles": "tsx scripts/world-profiles.ts",
|
|
"places:photos": "tsx scripts/places-photos.ts",
|
|
"places:photos:warm": "tsx scripts/places-photos-warm.ts",
|
|
"places:photos:to-r2": "tsx scripts/places-photos-to-r2.ts"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.1172.0",
|
|
"@better-auth/passkey": "^1.7.14",
|
|
"@bitbaum/accountkit": "^0.32.1",
|
|
"@bitbaum/ai-kit": "^1.31.0",
|
|
"@bitbaum/chartkit": "^0.8.0",
|
|
"@bitbaum/chatkit": "^0.45.0",
|
|
"@bitbaum/geo-kit": "^0.8.0",
|
|
"@bitbaum/limitkit": "^0.2.1",
|
|
"@bitbaum/mail-kit": "0.4.0",
|
|
"@bitbaum/searchkit": "^0.2.3",
|
|
"@fleet/design-tokens": "npm:@bitbaum/design-tokens@^1.7.1",
|
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
"@napi-rs/canvas": "^1.1.0",
|
|
"@noble/hashes": "2.4.0",
|
|
"@noble/secp256k1": "3.2.0",
|
|
"@scure/base": "^2.4.0",
|
|
"better-auth": "^1.7.14",
|
|
"bip-kit": "npm:@bitbaum/bip-kit@^0.10.0",
|
|
"bs58check": "^4.0.0",
|
|
"clsx": "2.1.1",
|
|
"d3-geo": "3.1.1",
|
|
"diff": "^8.0.4",
|
|
"drizzle-orm": "^0.45.4",
|
|
"fflate": "^0.8.3",
|
|
"lucide-react": "1.65.0",
|
|
"next": "16.4.6",
|
|
"next-intl": "^4.14.9",
|
|
"pdfjs-dist": "6.4.299",
|
|
"pg": "^8.23.1",
|
|
"proj4": "2.22.0",
|
|
"react": "19.3.1",
|
|
"react-dom": "19.3.1",
|
|
"tailwindcss": "4.3.3",
|
|
"tesseract.js": "^7.0.0",
|
|
"topojson-client": "3.1.0",
|
|
"topojson-server": "3.0.1",
|
|
"topojson-simplify": "3.0.3",
|
|
"unpdf": "^1.9.1",
|
|
"us-atlas": "^3.0.1",
|
|
"word-extractor": "^1.0.4",
|
|
"world-atlas": "^2.0.2",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@electric-sql/pglite": "^0.5.13",
|
|
"@playwright/test": "1.64.1",
|
|
"@tailwindcss/postcss": "4.3.3",
|
|
"@types/d3-geo": "^3.1.1",
|
|
"@types/geojson": "^7946.0.16",
|
|
"@types/node": "26.6.6",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/proj4": "^2.19.0",
|
|
"@types/react": "19.3.0",
|
|
"@types/react-dom": "19.3.0",
|
|
"@types/topojson-client": "^3.1.5",
|
|
"@types/topojson-server": "^3.0.4",
|
|
"@types/topojson-simplify": "^3.0.3",
|
|
"@types/topojson-specification": "^1.0.5",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"drizzle-kit": "^0.31.11",
|
|
"eslint": "10.14.0",
|
|
"eslint-config-next": "16.4.6",
|
|
"espree": "^11.2.0",
|
|
"madge": "^8.0.0",
|
|
"postcss": "8.5.32",
|
|
"prettier": "3.9.10",
|
|
"puppeteer": "25.16.0",
|
|
"ts-node": "10.9.2",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^5.0.5"
|
|
}
|
|
}
|