TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Good resources to plan the right plugin architecture

3 点作者 devdiary超过 1 年前
I am seeking solution to plan architecture to support new addon that can enhance the value of an existing web app. In current form, the solution is npm packages. We build npm packages that use the product's SDK to interact with its api but when we also want to have a ui component, it becomes a circular dependency. Also there are multiple common components copied across various packages that are common among all. The goal is to decouple tiny functionalities from the main codebase while maintaining the common functionalities in the core project. Appreciate your suggestions and resources.

1 comment

devdiary超过 1 年前
And yes, specifically talking about plugin based architecture. Not just a code refactor. Decoupling is the first step and the plugins will be created by internal team initially, the next will be to ensure security when external users publish their own plugins. The tech stack is Node.js.