mojolicious/mojo.js
mojolicious/mojo.js has 509 GitHub stars and 34 forks. GitHot measured -1 stars in 24 hours, 0 in 7 days, and -1 in 15 days. Last checked 2026-11-12 14:08 UTC. Last push 2026-10-24.
:unicorn: The Mojolicious real-time web framework for Node.js
What you can do
- 3x faster than Express.js and 15x faster than Mojolicious.
- Powerful out of the box with RESTful routes, WebSockets, plugins, commands, logging, templates, content negotiation, session management, form and JSON validation, testing framework, static file server, cluster mode, CGI detection, first class Unicode support and much more for you to discover.
- High performance HTTP and WebSocket client/server implementation with support for HTTPS/WSS, cookies, redirects, urlencoded/multi-part forms, file uploads, JSON/YAML, HTML/XML, mocking, API testing, HTTP/SOCKS proxies, UNIX domain sockets and gzip compression.
- HTML/XML parser with CSS selector support.
측정된 스타 증가
- in 24h
- -1
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThe Mojolicious real-time web framework for Node.js. Written in TypeScript. Meticulously designed for hypermedia-driven backend web services using all the latest JavaScript features.
If you want to stay up to date on the latest developments join us on IRC.
Features
- 3x faster than Express.js and 15x faster than Mojolicious.
- A real-time web framework, allowing you to easily grow single file prototypes into well-structured MVC web
applications.
- Powerful out of the box with RESTful routes, WebSockets, plugins, commands, logging, templates, content negotiation, session management, form and JSON validation, testing framework, static file server, cluster mode, CGI detection, first class Unicode support and much more for you to discover.
- A powerful web development toolkit, that you can use for all kinds of applications, independently of the web
framework.
- High performance HTTP and WebSocket client/server implementation with support for HTTPS/WSS, cookies, redirects, urlencoded/multi-part forms, file uploads, JSON/YAML, HTML/XML, mocking, API testing, HTTP/SOCKS proxies, UNIX domain sockets and gzip compression.
- HTML/XML parser with CSS selector support.
- No frontend framework, mojo.js is for the backend.
- Written in TypeScript, with very clean
classandasync/awaitbased APIs. - Very few dependencies, to avoid supply chain attacks and allow for "Perl-grade" long term support and backwards compatibility.
- Fresh code based upon decades of experience developing Mojolicious and Catalyst, free and open source.
Installation
All you need is Node.js 22.18.0 (or newer).
$ npm install @mojojs/core
Maybe take a look at our high quality spin-off projects @mojojs/dom, @mojojs/path, @mojojs/pg and @mojojs/template.
Getting Started
These four lines are a whole web application.
import mojo from '@mojojs/core';
const app = mojo();
app.get('/', ctx => ctx.render({text: 'I ♥ Mojo!'}));
app.start();
Use the built-in command system to start your web server.
$ node index.mjs server
[77264] Web application available at http://127.0.0.1:3000/
Test it with any HTTP client you prefer.
$ curl http://127.0.0.1:3000/
I ♥ Mojo!
Duct Tape for the Web
Use all the latest Node.js and HTML features in convenient single file prototypes like this one, and grow them easily into well-structured Model-View-Controller web applications.
import mojo from '@mojojs/core';
const app = mojo();
app.get('/', async ctx => {
await ctx.render({inline: inlineTemplate});
});
app.websocket('/title', ctx => {
ctx.plain(async ws => {
for await (const url of ws) {
const res = await ctx.ua.get(url);
const html = await res.html();
const title = html.at('title').text();
await ws.send(title);
}
});
});
app.start();
const inlineTemplate = `
<script>
const ws = new WebSocket('<%= ctx.urlFor('title') %>');
ws.onmessage = event => { document.body.innerHTML += event.data };
ws.onopen = event => { ws.send('https://mojolicious.org') };
</script>
`;
Want to know more?
Take a look at our excellent documentation!
관련 프로젝트 살펴보기
freeCodeCamp/freeCodeCamp
freeCodeCamp.org의 오픈 소스 코드베이스와 커리큘럼입니다. 수학, 프로그래밍, 컴퓨터 과학을 무료로 배울 수 있습니다.
459,071 스타donnemartin/system-design-primer
대규모 시스템 설계 방법을 배우고 시스템 설계 면접을 준비할 수 있습니다. Anki 플래시카드가 포함되어 있습니다.
377,743 스타react/react
웹과 네이티브 사용자 인터페이스를 위한 라이브러리.
252,571 스타vuejs/vue
Vue 2 저장소입니다. Vue 3은 https://github.com/vuejs/core를 방문하세요.
212,527 스타