项目
在 GitHub 查看
metarhia/Example
关于
🟢 Metarhia application example for Node.js
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Metarhia application example for Node.js
🚀 Metarhia documentation and starter's guide
Concept
This is a logical continuation of Node.js Starter Kit moving all system code to dependencies, namely using Metarhia technology stack.
The purpose of this starter kit is to show best practices for Metarhia and Metaserverless, to give structure and architecture example, to illustrate simplicity and efficiency of mentioned technologies.
All parts of this implementation are optimized for reliability, scalability, performance and security. So if you need readability and want to study code, let's start with Node.js Starter Kit.
Feature list
- Serve API with auto routing, HTTP(S), WS(S)
- Server code live reload with file system watch
- Auto dependency loader and plugins
- Graceful shutdown and application reload
- Minimum code size and dependencies
- Code sandboxing for security and context isolation
- Multi-threading for CPU utilization and isolation
- Serve multiple ports in threads
- Serve static files with memory cache
- Application configuration
- Simple logger and redirection from console
- Database access layer (Postgresql)
- Client persistent sessions
- Unit-tests and API tests example
- Request queue timeout and size
- API parallel execution concurrency
- API method execution timeout
- Load balancing for scaling
- Prototype pollution prevention
- Better code isolation
Usage
- You need Node.js 18.x or higher (24.x preferred)
- Fork and clone this repository (optionally subscribe to repo changes)
- Run
npm ito install dependencies and generate RSA certificate - Remove unneeded dependencies if your project doesn't require them
- Add your license to
LICENSEfile but don't remove starter kit license - Start your project modifying this starter kit
Quick Start
node server
Access Points
- Main Application: http://localhost:8002/ (Metarhia Console)
- API Endpoints: http://localhost:8001/api/
- Load Balancer: http://localhost:8000/ (redirects to 8002)
License
Copyright (c) 2020-2026 Metarhia contributors. This starter kit is MIT licensed.
探索相关项目
加载中…