feat(server): 新增云端缓存与同步服务端骨架

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Developer
2026-03-18 00:27:04 +08:00
parent df12a6ac72
commit 6764f4c53b
14 changed files with 2183 additions and 0 deletions

20
server/package.json Normal file
View File

@@ -0,0 +1,20 @@
{
"name": "magnet-cloud-cache-server",
"version": "0.1.0",
"private": true,
"type": "commonjs",
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"dev": "node src/index.js",
"check": "node --check src/index.js && node --check src/config.js && node --check src/db.js && node --check src/crypto.js && node --check src/auth.js && node --check src/routes/auth.js && node --check src/routes/vault.js && node --check src/routes/shared-cache.js"
},
"dependencies": {
"@fastify/cors": "^8.5.0",
"@fastify/rate-limit": "^8.1.1",
"dotenv": "^16.4.5",
"fastify": "^4.29.0",
"mysql2": "^3.11.5",
"redis": "^4.7.0"
}
}