狀態:線上運行中 ── AI 創業家實況 (LINLINK.COM) STATUS: ONLINE ── AI ENTREPRENEUR (LINLINK.COM) 線上運行中 ONLINE
← 返回文章列表 ← Back to Articles
架構設計筆記 Architecture Notes
MOD #06 · 2026-11-10 · 3 分鐘3 min

【模塊 #06】為什麼我用「積木模組+雲端資料庫」蓋網站,而不是每次重頭寫? [Module #06] Why I Build Sites With Reusable Modules & Edge Database Instead of Starting From Scratch

從個人主站到新加坡跨境規劃站,我把文章排版、事業體卡片、GSC 追蹤跟獲客工具做成積木。資料全部進資料庫,連改網站介紹都不用再動程式碼。

From my personal hub to my Singapore planning site, I treat calculators, SEO pipelines, and venture cards as plug-and-play modules backed by a cloud database.

📑 顯示/隱藏文章目錄 📑 Show / Hide Table of Contents
  1. 01 // 創業 17 年的體悟:程式碼是負債,系統架構才是資產 01 // 17 Years of Insight: Code is a Liability, Architecture is an Asset
  2. 02 // 核心技術選型:為何放棄 WordPress 與傳統 React? 02 // Tech Stack Deep Dive: Why Move Beyond WordPress & Traditional React?
  3. 03 // 實戰細節:如何把「事業體」變成可插拔的積木? 03 // Implementation: Turning Ventures into Pluggable Blocks
  4. 04 // 讓網站自己長大:Telegram 驅動的自動化工作流 04 // A Self-Growing Site: Telegram-Driven Automation
  5. 05 // 總結:為什麼你應該停止「寫網站」,開始「蓋系統」? 05 // Conclusion: Why Stop 'Building Websites' and Start 'Building Systems'?

01 // 創業 17 年的體悟:程式碼是負債,系統架構才是資產

在過去 17 年的連續創業過程中,我寫過無數個網站。早年我追求每一行程式碼都要親手刻畫,覺得那樣才叫專業。但隨著事業體擴張到跨境電商與量化交易,我發現「重複造輪子」是工程師最大的陷阱。當你需要同時維護個人品牌、新加坡業務站、AI 工具實驗室時,如果每個站點都要重新設定資料庫連接、重新寫文章排版邏輯,你的時間會被瑣碎的維護工作吞噬。因此,我開發了一套基於「積木模組」的開發哲學:將 UI 組件與資料邏輯徹底解耦。網站的前端只是「殼」,真正的靈魂在於後端那套可以被多個站點共用的雲端資料庫。這讓我能從繁瑣的 CSS 調整中抽身,專注於商業邏輯的迭代。

02 // 核心技術選型:為何放棄 WordPress 與傳統 React?

在選擇技術棧時,我考慮的不是「流行什麼」,而是「什麼能讓我用最少的人力維護最久」。WordPress 太重且安全性堪憂,傳統的單頁應用(SPA)則對自動化爬蟲不夠友善。我最終選擇了 Astro 搭配 Cloudflare 生態系,這是一套兼具極速載入與極低運維成本的組合。

全站核心技術選型與深度工程判斷
技術名稱核心功能與場景商業與工程決策依據
Astro (前端框架)負責靜態與動態畫面的混合渲染採用「群島架構」,預設不載入任何 JavaScript,讓網頁載入速度達到毫秒級。這對全球化部署至關重要,且其產出的乾淨 HTML 讓機器人能無障礙讀取內容。
Cloudflare Pages & Workers全球邊緣運算與靜態託管利用全球 300 多個節點進行加速。無論用戶在台北還是新加坡,都能就近讀取緩存。Workers 則負責處理動態邏輯(如表單提交、AI 介接),免除管理伺服器的煩惱。
Cloudflare D1 (SQLite)邊緣關係型資料庫存放事業體卡片、多國語言翻譯與自動化腳本狀態。D1 的優勢在於它就在網路邊緣,查詢延遲極低,且支援標準 SQL,方便未來進行複雜的數據分析。
機器友善數據結構讓內容結構化、語義化我不只是在寫文章,我是在建立「知識庫」。透過結構化的標籤與描述,讓 ChatGPT、Perplexity 等 AI 搜尋引擎能精準抓取我的觀點,提升品牌在 AI 時代的曝光度。

03 // 實戰細節:如何把「事業體」變成可插拔的積木?

我的網站核心是一個被稱為「Venture Engine」的模組。過去,如果我要在網站上新增一個事業體(例如:新加坡量化研究站),我得手寫 HTML、調整 CSS、上傳圖片。現在,我只需要在 Cloudflare D1 資料庫中插入一行 JSON 資料:

  • 定義標準化欄位:包含標題、描述、標籤、跳轉連結與視覺主題色。
  • 建立共用 UI 組件:Astro 組件會自動讀取資料庫,根據標籤決定渲染樣式(例如:AI 類顯示藍色,交易類顯示綠色)。
  • 一鍵同步:當我在 D1 修改了某個事業體的狀態(如:從「開發中」改為「已上線」),所有引用該資料庫的站點(主站、子站、監控面板)會同步更新。
  • 自動化追蹤:每個積木內建了點擊追蹤邏輯,數據直接回傳至後端,我不需要額外安裝繁重的分析工具就能知道哪個事業體最受關注。

04 // 讓網站自己長大:Telegram 驅動的自動化工作流

這套系統最強大的地方在於它與 Telegram 的深度整合。身為創業者,我不可能整天盯著電腦改代碼。我建立了一個自動化流水線:當我在 Telegram 的特定頻道發布一段想法或連結時,Cloudflare Workers 會捕捉這個事件,利用 AI 進行初步摘要與分類,並將草稿存入 D1 資料庫。隨後,機器人會發送一則訊息問我:「這篇文章準備好發布了嗎?」。我只需點擊 Telegram 上的「確認」按鈕,網站就會自動重新構建並上線。這種「手機即後台」的模式,讓我能在通勤或開會空檔完成內容產出與站點維護,真正實現了高效獲客。

05 // 總結:為什麼你應該停止「寫網站」,開始「蓋系統」?

總結來說,這套「積木模組+雲端資料庫」的架構為我帶來了三個核心商業價值:第一,極速上線。我可以在 30 分鐘內為一個新想法建立落地頁。第二,極低成本。Cloudflare 的免費額度足以支撐每日數萬次的訪問,我幾乎不需要支付主機費用。第三,數據資產化。所有的內容與互動數據都掌握在自己的 SQL 資料庫中,而不是散落在各個 SaaS 平台。在 AI 時代,擁有結構化且可隨時調用的數據,才是創業者最深的護城河。如果你還在為改一個網頁文字而翻找程式碼,現在就是升級架構的最佳時機。

01 // 17 Years of Insight: Code is a Liability, Architecture is an Asset

Over 17 years of serial entrepreneurship, I've built countless sites. I used to hand-code every line, thinking it was professional. But as my ventures expanded into cross-border e-commerce and quant trading, I realized 'reinventing the wheel' is a trap. Managing a personal brand, a Singapore business site, and an AI lab simultaneously means your time gets swallowed by maintenance if you rewrite DB connections and layout logic every time. Thus, I developed a 'Building Block' philosophy: decoupling UI components from data logic. The frontend is just a shell; the soul lies in a cloud database shared across sites, allowing me to focus on business iteration rather than CSS tweaks.

02 // Tech Stack Deep Dive: Why Move Beyond WordPress & Traditional React?

When choosing a tech stack, I don't look at trends; I look at what requires the least manpower for the longest maintenance. WordPress is too heavy and insecure; traditional SPAs are unfriendly to automated crawlers. I settled on Astro paired with the Cloudflare ecosystem—a combination of blazing speed and near-zero operational costs.

Core Tech Choices & Engineering Rationale
TechnologyCore FunctionBusiness & Engineering Rationale
AstroHybrid static/dynamic renderingUses 'Islands Architecture' to ship zero JS by default, achieving millisecond load times. This is vital for global deployment and ensures clean HTML for seamless robot indexing.
Cloudflare Pages & WorkersEdge computing & hostingLeverages 300+ global nodes. Users in Taipei or Singapore get cached content locally. Workers handle dynamic logic (forms, AI APIs) without server management overhead.
Cloudflare D1Serverless Edge SQLiteStores venture cards, translations, and automation states. D1 resides at the edge for ultra-low latency and supports standard SQL for future complex data analysis.
Machine-Friendly DataStructured & semantic contentI'm building a 'Knowledge Base,' not just writing posts. Structured tags and descriptions help AI engines like ChatGPT and Perplexity accurately parse and cite my insights.

03 // Implementation: Turning Ventures into Pluggable Blocks

The core of my site is a module called the 'Venture Engine.' Previously, adding a new venture (e.g., Singapore Quant Research) required manual HTML, CSS tweaks, and image uploads. Now, I simply insert a JSON row into the Cloudflare D1 database:

  • Define standardized fields: Title, description, tags, links, and theme colors.
  • Create shared UI components: Astro components fetch DB data and render styles based on tags (e.g., Blue for AI, Green for Trading).
  • One-click sync: Updating a venture status in D1 (e.g., 'In Dev' to 'Live') instantly updates all connected sites and dashboards.
  • Automated tracking: Each block has built-in click tracking, sending data directly to the backend without heavy third-party analytics.

04 // A Self-Growing Site: Telegram-Driven Automation

The system's true power lies in its Telegram integration. As an entrepreneur, I can't stay glued to a code editor. I built an automated pipeline: when I post a thought or link in a specific Telegram channel, Cloudflare Workers capture the event, use AI for summarization/categorization, and save a draft to D1. A bot then asks, 'Ready to publish?'. One tap on the 'Confirm' button triggers a site rebuild. This 'Mobile-as-Backend' model allows me to produce content and maintain sites during commutes or meetings, truly optimizing lead generation.

05 // Conclusion: Why Stop 'Building Websites' and Start 'Building Systems'?

In summary, this 'Blocks + Cloud DB' architecture delivers three core business values: First, speed—I can launch a landing page for a new idea in 30 minutes. Second, cost—Cloudflare's free tier handles tens of thousands of visits, making hosting costs negligible. Third, data ownership—all content and interaction data reside in my SQL database, not scattered across SaaS platforms. In the AI era, owning structured, callable data is an entrepreneur's deepest moat. If you're still digging through code just to change website text, it's time to upgrade your architecture.

>_ 快速導航指令台 >_ QUICK COMMAND PALETTE