{"_id":"@dctewi/tewi-mashimaro","_rev":"30-156b8e589cb258815670923a04e1434f","name":"@dctewi/tewi-mashimaro","dist-tags":{"latest":"1.1.4"},"versions":{"1.0.10":{"name":"@dctewi/tewi-mashimaro","version":"1.0.10","keywords":["web"],"author":{"name":"DCTewi"},"license":"MIT","_id":"@dctewi/tewi-mashimaro@1.0.10","maintainers":[{"name":"dctewi","email":"dctewi@dctewi.com"}],"homepage":"https://github.com/DCTewi/TewiMashimaro#readme","bugs":{"url":"https://github.com/DCTewi/TewiMashimaro/issues"},"bin":{"mashimaro":"dist/index.js","mashimaro-config":"dist/display-config.js"},"dist":{"shasum":"3cb9e894b2ddcc8cfddd505ac36f98468327c618","tarball":"https://registry.npmjs.org/@dctewi/tewi-mashimaro/-/tewi-mashimaro-1.0.10.tgz","fileCount":31,"integrity":"sha512-DJmWeS7sxdE+UY2SjQDoRg0FkCtDkep7yNBRUIDYJJZ+osivumYLxKNHJQ+yT5vWim+ij96T9Gqotv2I+GVseg==","signatures":[{"sig":"MEYCIQDIQ/bbAQh0jqiTRo4azzcEzVIpeUhg8Ai+ptJYajki1AIhAKGHQeHd+LawpFC7eTyJZSCfZtG48ujt2f/jWJC1fbz7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57898},"main":"dist/index.js","gitHead":"8ae24b2adaba9632dc0df8faa2aaebeed468ae4f","scripts":{"test":"node dist/index.js -d ./_app"},"_npmUser":{"name":"dctewi","email":"dctewi@dctewi.com"},"repository":{"url":"git+https://github.com/DCTewi/TewiMashimaro.git","type":"git"},"_npmVersion":"6.14.15","description":"Yet another mashimaro | 又一个棉花糖","directories":{},"_nodeVersion":"14.17.6","dependencies":{"fs":"0.0.1-security","pug":"^3.0.2","http":"0.0.1-security","path":"^0.12.7","uuid":"^8.3.2","csurf":"^1.11.0","level":"^7.0.0","yargs":"^17.2.1","morgan":"^1.10.0","express":"^4.17.1","cookie-parser":"^1.4.5","rotating-file-stream":"^2.1.5"},"_hasShrinkwrap":false,"devDependencies":{"@types/pug":"^2.0.5","@types/uuid":"^8.3.1","@types/csurf":"^1.11.2","@types/level":"^6.0.0","@types/yargs":"^17.0.3","@types/morgan":"^1.9.3","@types/express":"^4.17.13","@types/cookie-parser":"^1.4.2"},"_npmOperationalInternal":{"tmp":"tmp/tewi-mashimaro_1.0.10_1632921756369_0.7049631836901864","host":"s3://npm-registry-packages"}},"1.0.11":{"name":"@dctewi/tewi-mashimaro","version":"1.0.11","keywords":["web"],"author":{"name":"DCTewi"},"license":"MIT","_id":"@dctewi/tewi-mashimaro@1.0.11","maintainers":[{"name":"dctewi","email":"dctewi@dctewi.com"}],"homepage":"https://github.com/DCTewi/TewiMashimaro#readme","bugs":{"url":"https://github.com/DCTewi/TewiMashimaro/issues"},"bin":{"mashimaro":"dist/index.js","mashimaro-config":"dist/display-config.js"},"dist":{"shasum":"26b7e0ef40034625651fc9a69ab4fdd31a69001f","tarball":"https://registry.npmjs.org/@dctewi/tewi-mashimaro/-/tewi-mashimaro-1.0.11.tgz","fileCount":36,"integrity":"sha512-b8PT97BXczDzPUj29mPftQyyemsJ/EiQ5fQ1R9INz8be3rtwM74t2o0MoZPyTBxrVOjxifz+8oQDLHaLSBYQIg==","signatures":[{"sig":"MEUCIH0NPF5fUUf8C73Y9EU8tKQTclb9DDjUE5tKxaOYNUTeAiEAsXppQi7FvM5cEgLCLkS8Z+fTVLVgwS0JsX1xR7Ie4k4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzsm8CRA9TVsSAnZWagAA77MQAJWUgk65k97HFxuvMEpk\nNbSyo2K7VX9caXvyGMEu1aFvQGPwZCb4BVlnk5Hrpqz/6VbzTR/AO5kWGq9Y\n/NX2vDQtu90ZUesJtjtLozD4Pnsp3ikI+cP8Y3rOVAOEMVVLIRYEcT6TTLx9\ncS1hW0vvh7p61NBRcTEru6rWCgKjr+ztLyOgax1v4mIaR8BWjBP470ip/C7u\nriPjsPU/t2MkNDmr48PuuXNL7+KjLg3Xfr85rl6Z3mx1zFShOV2uT+sb3uSu\njqNaMDbCogb858o99tVMwKW3vw2eJyBZ3geKcmS8u3f4HMp3c5QbAKMoqOVz\nwRRVn2PhCKZ8E64UPm5n3fcRmW32HaQU724GgRWIU7hgZVmls6IXNA95VZft\neSrqCHGhSeHYNSTNAV7gySTzmDoXHPqb30/q39LXXzpKWuaH6xrN7PIARxpz\npVF9VSezXjgAnSXuIRCNfpHAYMp9XgRg0hX/60N+17FPtRFOF/KBTki6qPI7\nAnk6hXSKyHg75JHoFhJPUgwalBa5XsxjdP2H2f6v/gagZ06+cZefxSI5Zki0\nZnKZWzmFoGeaqVL//KgUsqYba2ir4gbf6/RY6HBcu4alqvnCrlT1EmNdYmaY\n6jnIC8vsemdbbKaSXQXnr6Sut0iDmoNof4NPRY4UFyN9cGAVuwlqSI5NzQPI\nbaJI\r\n=fvA+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"3de6964f745ce007f51a3d4aa3745255da900364","scripts":{"test":"node dist/index.js -d ./_app"},"_npmUser":{"name":"dctewi","email":"dctewi@dctewi.com"},"repository":{"url":"git+https://github.com/DCTewi/TewiMashimaro.git","type":"git"},"_npmVersion":"6.14.15","description":"Yet another mashimaro | 又一个棉花糖","directories":{},"_nodeVersion":"14.17.6","dependencies":{"fs":"0.0.1-security","pug":"^3.0.2","path":"^0.12.7","uuid":"^8.3.2","csurf":"^1.11.0","level":"^7.0.0","yargs":"^17.2.1","morgan":"^1.10.0","express":"^4.17.1","cookie-parser":"^1.4.5","rotating-file-stream":"^2.1.5"},"_hasShrinkwrap":false,"devDependencies":{"@types/pug":"^2.0.5","@types/uuid":"^8.3.1","@types/csurf":"^1.11.2","@types/level":"^6.0.0","@types/yargs":"^17.0.3","@types/morgan":"^1.9.3","@types/express":"^4.17.13","@types/cookie-parser":"^1.4.2"},"_npmOperationalInternal":{"tmp":"tmp/tewi-mashimaro_1.0.11_1632931243257_0.5033379299619758","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@dctewi/tewi-mashimaro","version":"1.1.0","keywords":["web"],"author":{"name":"DCTewi"},"license":"MIT","_id":"@dctewi/tewi-mashimaro@1.1.0","maintainers":[{"name":"dctewi","email":"dctewi@dctewi.com"}],"homepage":"https://github.com/DCTewi/TewiMashimaro#readme","bugs":{"url":"https://github.com/DCTewi/TewiMashimaro/issues"},"bin":{"mashimaro":"dist/index.js","mashimaro-config":"dist/display-config.js"},"dist":{"shasum":"d0b0a90f0d408e85a0f95a725992d11091068c54","tarball":"https://registry.npmjs.org/@dctewi/tewi-mashimaro/-/tewi-mashimaro-1.1.0.tgz","fileCount":36,"integrity":"sha512-H/RGUN6sMmisJF43QZUnInEefsUySr5/zGy3mi8p+/6ZOEcYsTY+hZYtmpSKziuhfregZHdTYuj8ehYqiotP4Q==","signatures":[{"sig":"MEUCIDegrZsXHrjDj7hZp3KuBlpZBDP8DfMe2+ENxoUNHWiRAiEA6ZXBCk12+2ejbXcQwqyThUwRoPX6dcbu+906l+kXTY0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70998},"main":"dist/index.js","gitHead":"83c10c5434f29c9770fffb538dc76aa9f96c0248","scripts":{"test":"node dist/index.js -d ./_app","build":"npm exec tsc"},"_npmUser":{"name":"dctewi","email":"dctewi@dctewi.com"},"repository":{"url":"git+https://github.com/DCTewi/TewiMashimaro.git","type":"git"},"_npmVersion":"10.4.0","description":"Yet another mashimaro | 又一个棉花糖","directories":{},"_nodeVersion":"20.11.0","dependencies":{"fs":"0.0.1-security","pug":"^3.0.2","path":"^0.12.7","uuid":"^8.3.2","csurf":"^1.11.0","level":"^7.0.0","yargs":"^17.2.1","morgan":"^1.10.0","express":"^4.17.1","markdown-it":"^14.1.0","cookie-parser":"^1.4.5","rotating-file-stream":"^2.1.5"},"_hasShrinkwrap":false,"devDependencies":{"@types/pug":"^2.0.5","@types/uuid":"^8.3.1","@types/csurf":"^1.11.2","@types/level":"^6.0.0","@types/yargs":"^17.0.3","@types/morgan":"^1.9.3","@types/express":"^4.17.13","@types/markdown-it":"^14.1.2","@types/cookie-parser":"^1.4.2"},"_npmOperationalInternal":{"tmp":"tmp/tewi-mashimaro_1.1.0_1729173178772_0.5642558750345219","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@dctewi/tewi-mashimaro","version":"1.1.3","keywords":["web"],"author":{"name":"DCTewi"},"license":"MIT","_id":"@dctewi/tewi-mashimaro@1.1.3","maintainers":[{"name":"dctewi","email":"dctewi@dctewi.com"}],"homepage":"https://github.com/DCTewi/TewiMashimaro#readme","bugs":{"url":"https://github.com/DCTewi/TewiMashimaro/issues"},"bin":{"mashimaro":"dist/index.js","mashimaro-config":"dist/display-config.js"},"dist":{"shasum":"d9f745a2debfce5101093d0ded982cafee31f9a4","tarball":"https://registry.npmjs.org/@dctewi/tewi-mashimaro/-/tewi-mashimaro-1.1.3.tgz","fileCount":36,"integrity":"sha512-o4yEuAJa272TwTKrJ65nwlVZOIIxBAaYtZpXyVXDvqJ1u4kOfZC7fx/c1wUt1DjB8SyIbFdsjOEJQ/a97Za29g==","signatures":[{"sig":"MEUCIQDcaukSmZcRVF82IQ1fQnaqIeUf7whh4kJtHx0viHsTqAIgThRTSzffExXNWrjJzMqX1QlOXre79yussSisObmUGIc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71095},"main":"dist/index.js","gitHead":"a38e950d868b384487e40067c2dec530b1846930","scripts":{"test":"node dist/index.js -d ./_app","build":"npm exec tsc"},"_npmUser":{"name":"dctewi","email":"dctewi@dctewi.com"},"repository":{"url":"git+https://github.com/DCTewi/TewiMashimaro.git","type":"git"},"_npmVersion":"10.4.0","description":"Yet another mashimaro | 又一个棉花糖","directories":{},"_nodeVersion":"20.11.0","dependencies":{"fs":"0.0.1-security","pug":"^3.0.2","path":"^0.12.7","uuid":"^8.3.2","csurf":"^1.11.0","level":"^7.0.0","yargs":"^17.2.1","morgan":"^1.10.0","express":"^4.17.1","markdown-it":"^14.1.0","cookie-parser":"^1.4.5","rotating-file-stream":"^2.1.5"},"_hasShrinkwrap":false,"devDependencies":{"@types/pug":"^2.0.5","@types/uuid":"^8.3.1","@types/csurf":"^1.11.2","@types/level":"^6.0.0","@types/yargs":"^17.0.3","@types/morgan":"^1.9.3","@types/express":"^4.17.13","@types/markdown-it":"^14.1.2","@types/cookie-parser":"^1.4.2"},"_npmOperationalInternal":{"tmp":"tmp/tewi-mashimaro_1.1.3_1729178761893_0.18544410989646853","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"@dctewi/tewi-mashimaro","version":"1.1.4","description":"Yet another mashimaro | 又一个棉花糖","main":"dist/index.js","scripts":{"build":"npm exec tsc","test":"node dist/index.js -d ./_app"},"bin":{"mashimaro":"dist/index.js","mashimaro-config":"dist/display-config.js"},"repository":{"type":"git","url":"git+https://github.com/DCTewi/TewiMashimaro.git"},"keywords":["web"],"author":{"name":"DCTewi"},"license":"MIT","dependencies":{"cookie-parser":"^1.4.5","csurf":"^1.11.0","express":"^4.17.1","fs":"0.0.1-security","level":"^7.0.0","markdown-it":"^14.1.0","morgan":"^1.10.0","path":"^0.12.7","pug":"^3.0.2","rotating-file-stream":"^2.1.5","uuid":"^8.3.2","yargs":"^17.2.1"},"devDependencies":{"@types/cookie-parser":"^1.4.2","@types/csurf":"^1.11.2","@types/express":"^4.17.13","@types/level":"^6.0.0","@types/markdown-it":"^14.1.2","@types/morgan":"^1.9.3","@types/pug":"^2.0.5","@types/uuid":"^8.3.1","@types/yargs":"^17.0.3"},"_id":"@dctewi/tewi-mashimaro@1.1.4","gitHead":"ea670eaefed64e1ee34f8c6d938a07b332108748","bugs":{"url":"https://github.com/DCTewi/TewiMashimaro/issues"},"homepage":"https://github.com/DCTewi/TewiMashimaro#readme","_nodeVersion":"20.11.0","_npmVersion":"10.4.0","dist":{"integrity":"sha512-qsZjaYZtdfV8Ig5QOiR+/4wOkBZA9cfPZKrehOjLjRNeoqJzk4lt3drwEgFYSl7VcUTuEp+kD1a5hxbNG7qkgA==","shasum":"4d72dfaa10f520992d85fc67e915083ab3fc61e5","tarball":"https://registry.npmjs.org/@dctewi/tewi-mashimaro/-/tewi-mashimaro-1.1.4.tgz","fileCount":37,"unpackedSize":428957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCG9WU5vwmoNlrlfbEAa5xr1UNuivYErk48lWN+KKsn7wIhANfOoLfDR+VBnZ7rUTZNCr9qXydG7hCRmTu8ohumz5MY"}]},"_npmUser":{"name":"dctewi","email":"dctewi@dctewi.com"},"directories":{},"maintainers":[{"name":"dctewi","email":"dctewi@dctewi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tewi-mashimaro_1.1.4_1729255869772_0.8777039754344707"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-26T16:12:44.856Z","modified":"2024-10-18T12:51:10.172Z","1.0.0":"2021-09-26T16:12:45.043Z","1.0.1":"2021-09-26T16:27:25.415Z","1.0.2":"2021-09-26T17:01:35.933Z","1.0.3":"2021-09-28T03:39:08.754Z","1.0.4":"2021-09-28T11:12:44.641Z","1.0.5":"2021-09-28T13:15:53.699Z","1.0.6":"2021-09-28T14:43:43.942Z","1.0.7":"2021-09-28T14:46:03.049Z","1.0.8":"2021-09-28T15:15:05.953Z","1.0.9":"2021-09-28T15:39:39.972Z","1.0.10":"2021-09-29T13:22:36.528Z","1.0.11":"2021-09-29T16:00:43.386Z","1.1.0":"2024-10-17T13:52:59.000Z","1.1.1":"2024-10-17T15:05:33.135Z","1.1.2":"2024-10-17T15:16:52.131Z","1.1.3":"2024-10-17T15:26:02.122Z","1.1.4":"2024-10-18T12:51:10.008Z"},"bugs":{"url":"https://github.com/DCTewi/TewiMashimaro/issues"},"author":{"name":"DCTewi"},"license":"MIT","homepage":"https://github.com/DCTewi/TewiMashimaro#readme","keywords":["web"],"repository":{"type":"git","url":"git+https://github.com/DCTewi/TewiMashimaro.git"},"description":"Yet another mashimaro | 又一个棉花糖","maintainers":[{"name":"dctewi","email":"dctewi@dctewi.com"}],"readme":"# Tewi-Mashimaro\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n[![](https://img.shields.io/npm/v/@dctewi/tewi-mashimaro?label=%40dctewi%2Ftewi-mashimaro)](https://www.npmjs.com/package/@dctewi/tewi-mashimaro)\r\n\r\n<img src='https://raw.githubusercontent.com/DCTewi/TewiMashimaro/refs/heads/main/icon.png' width='320px'>\r\n\r\n## 简介\r\n\r\nTewi-Mashimaro 是一个自部署的棉花糖（一种可以接受来自网友的匿名提问的站点）项目。\r\n\r\n部署本项目之后，你可以得到一个独立的棉花糖站点。~~效果可以查看[这里](https://tewi.mashimaro.space)或者下方的截图。~~ 图床过期了，发挥想象力吧。\r\n\r\n\r\n## 部署\r\n\r\n### 傻瓜式一键部署\r\n\r\n本部署方式适用于非专业用户。\r\n\r\n#### 1. 准备工作\r\n\r\n1. 一台系统为 Ubuntu LTS 18.04 的服务器（可以在阿里、腾讯云等地购买，注意尽量使用香港服务器，大陆内服务器需要提前备案）\r\n2. 一个用来绑定的域名（如果不会申请，可以邮件联系 dctewi@dctewi.com，~~我可以免费提供一个 *.mashimaro.space 域名的解析）~~ 这个域名过期了，还想要的话可以随便给你一个。\r\n\r\n#### 2. 解析域名到服务器\r\n\r\n1. 在你的域名服务商处，给域名添加一个 A 记录到服务器的 IP 地址（可以在域名服务商的文档中看到详细说明）\r\n\r\n2. 通过 SSH 远程连接你的服务器，然后在 Shell 界面复制这行指令并按回车键：\r\n\r\n   ```bash\r\n   bash <(wget -O- https://raw.githubusercontent.com/DCTewi/TewiMashimaro/main/tools/ubuntu-install.sh)\r\n   ```\r\n\r\n3. 等待显示  `INSTALL FINISHED`，此时访问你的域名，就大功告成了！\r\n\r\n#### 3. 需要注意的\r\n\r\n1. 在安装结束的部分，会有一个形似：\r\n\r\n   ```javascript\r\n   {\r\n     siteName: 'Tewi Mashimaro',\r\n     description: '通过棉花糖来向我匿名提问!',\r\n     headerImageUrl: '',\r\n     frequencyLimitPerMinute: 6,\r\n     pageCapacity: 5,\r\n     adminCapacity: 10,\r\n     adminKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\r\n   }\r\n   ```\r\n\r\n   的回显，其中 `adminKey` 后面紧跟的部分是站点生成的后台随机密码，请妥善保存。点击网页最下方的⚡并输入密码即可进入后台。\r\n\r\n   如果一开始忘记复制了，可以在 Shell 界面输入 `mashimaro-config` 来重新显示这些内容。\r\n\r\n2. 可以通过编辑  `/home/mashimaro/config.json` 来更改站点的标题、导语以及首页图片等设置。\r\n\r\n   通过 nano 来更改设置的方法：\r\n\r\n   1. 在 Shell 中输入：\r\n\r\n      ```bash\r\n      sudo nano /home/mashimaro/config.json\r\n      ```\r\n\r\n   2. 在出现的文本编辑器中更改想要更改的内容。\r\n\r\n   3. 依次按下 Ctrl + O, Enter, Ctrl + X 保存并退出，此时配置自动生效。\r\n\r\n3. 可以通过以下指令检查更新：\r\n\r\n   ```bash\r\n   sudo npm install -g @dctewi/tewi-mashimaro\r\n   sudo service mashimaro restart\r\n   ```\r\n\r\n### 自定义部署\r\n\r\n本部署方式适用于专业用户。\r\n\r\n1. 本项目依赖于 Node.js v14.x。\r\n\r\n2. 通过 npm 全局安装：\r\n\r\n   ```bash\r\n   npm install -g @dctewi/tewi-mashimaro\r\n   ```\r\n\r\n3. 暴露的可执行接口有  `mashimaro` 和 `mashimaro-config`，前者为启动服务器，后者为查看配置文件。通过不带参数运行可以查看启动选项说明。\r\n\r\n4. 通过守护进程确保服务器不间断运行即可，请自行配置 SSL 或反代服务器。如果使用反代，请使用 `--local` 启动选项来仅监听本地请求。\r\n","readmeFilename":"README.md"}