From b8248b3b56665eccd9c370a7c684c308f1cd5435 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 22 Feb 2026 16:02:14 +0100 Subject: [PATCH 1/6] chore: add post-commit hook to auto-mirror to gh & sh --- .husky/post-commit | 3 +++ .husky/pre-commit | 1 + 2 files changed, 4 insertions(+) create mode 100644 .husky/post-commit diff --git a/.husky/post-commit b/.husky/post-commit new file mode 100644 index 0000000..013cec7 --- /dev/null +++ b/.husky/post-commit @@ -0,0 +1,3 @@ +echo "post-commit..." +git push gh --mirror +git push sh --mirror diff --git a/.husky/pre-commit b/.husky/pre-commit index 2312dc5..daf285b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ +echo "pre-commit..." npx lint-staged From bdf3deca199fb8b62c8139146e6a1e390d83bf06 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 22 Feb 2026 16:02:29 +0100 Subject: [PATCH 2/6] chore: remove sr.ht build.yml --- .build.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .build.yml diff --git a/.build.yml b/.build.yml deleted file mode 100644 index 1560306..0000000 --- a/.build.yml +++ /dev/null @@ -1,11 +0,0 @@ -image: alpine/edge -secrets: - - bbfcb6dc-7c4a-42ee-a11a-022f0339a133 -environment: - REPO: cozy - GH_USER: ayoayco -tasks: - - push-mirror: | - cd ~/"${REPO}" - git config --global credential.helper store - git push --mirror "https://github.com/${GH_USER}/${REPO}" From 08e8698b78ceadba537d6ba3b9d386f64355d3d6 Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 23 Feb 2026 22:53:05 +0100 Subject: [PATCH 3/6] chore: no mirror; just push --- .husky/post-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/post-commit b/.husky/post-commit index 013cec7..ab12c31 100644 --- a/.husky/post-commit +++ b/.husky/post-commit @@ -1,3 +1,3 @@ echo "post-commit..." -git push gh --mirror -git push sh --mirror +git push gh +git push sh From 554ecd282d0aa082e42733d2233b0c054313b893 Mon Sep 17 00:00:00 2001 From: Ayo Date: Wed, 18 Mar 2026 11:32:43 +0100 Subject: [PATCH 4/6] feat: use hi@ayo.run email --- README.md | 3 ++- SECURITY.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e6b959..bd3afa3 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,11 @@ Here's what this project is building: ## Report bugs or contribute Get in touch: + 1. Chat via Discord: [Ayo's Projects](https://discord.gg/kkvW7GYNAp) 1. Submit tickets via [SourceHut todo](https://todo.sr.ht/~ayoayco/astro-sw) 1. Start a [GitHub discussion](https://github.com/ayoayco/astro-sw/discussions) -1. Email me: [ayo@ayco.io](mailto:ayo@ayco.io) +1. Email me: [hi@ayo.run](mailto:hi@ayo.run) ## Roadmap diff --git a/SECURITY.md b/SECURITY.md index 7ac50f3..3385a76 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -16,4 +16,4 @@ currently being supported with security updates. ## Reporting a Vulnerability -Please send an email to the project owner: ayo@ayco.io +Please send an email to the project owner: hi@ayo.run From ff7b3a71b0c0f04dfe3ca5700725288b46a3e36b Mon Sep 17 00:00:00 2001 From: Ayo Date: Wed, 24 Jun 2026 10:43:34 +0200 Subject: [PATCH 5/6] chore: pnpm allowbuilds --- pnpm-workspace.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pnpm-workspace.yaml diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..9fffaa3 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,4 @@ +allowBuilds: + '@parcel/watcher': false + esbuild: false + sharp: false From 9b9f6242b39621fb9500438bffd6858a39ea3e8e Mon Sep 17 00:00:00 2001 From: Ayo Date: Wed, 24 Jun 2026 10:43:57 +0200 Subject: [PATCH 6/6] feat: remove redis caching --- src/pages/index.astro | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index d45f8a5..1ca9713 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,5 +1,4 @@ --- -import { createClient, type RedisJSON } from 'redis' import { type ArticleData, extract } from '@extractus/article-extractor' import AddressBar from '../components/AddressBar.astro' @@ -8,11 +7,6 @@ import App from '../layouts/App.astro' import Library from '../components/Library.astro' import Footer from '../components/Footer.astro' -// Initialize Redis client -const client = createClient() -client.on('error', (err) => console.error('Redis Client Error', err)) -await client.connect() - // Disable prerendering for dynamic content export const prerender = false @@ -35,27 +29,10 @@ while (url?.startsWith(Astro.url.origin)) { // Process article extraction only if a valid URL is provided if (url && url !== '/' && url !== '') { - const cacheKey = 'cozy:url:' + url - try { - // Check if article exists in Redis cache - const exists = await client.exists(cacheKey) - - if (exists) { - // Retrieve cached article data - article = (await client.json.get(cacheKey)) as ArticleData - console.log('>>> Using cached content', article.url) - } else { - // Fetch article from the web - article = await extract(url) - console.log('>>> Using fetched content', article?.url) - - if (article !== null && article.url) { - // Cache the fetched article in Redis - await client.json.set(cacheKey, '$', article as RedisJSON) - console.log('>>> Added to cache', article.url) - } - } + // Fetch article from the web + article = await extract(url) + console.log('>>> Using fetched content', article?.url) } catch (error) { // Log error and continue with null article console.error('Error processing article:', error)