Tagged articles
Koa
38 articles · Page 1 of 1
The 2025 Node.js roundup highlights native TypeScript execution, the long‑awaited releases of Express 5.1 and Koa 3.0, TypeScript 5.8/5.9 enhancements, pnpm's delayed‑dependency feature, a series of supply‑chain attacks, and key official moves such as a Discord community and Corepack policy changes.
CorepackExpressKoa
0 likes · 7 min read

This tutorial walks front‑end engineers through the fundamentals of Node.js, covering its runtime concept, installation, basic file operations, built‑in APIs, creating HTTP servers, using the Koa framework, simple database interactions, and calling third‑party services, all with clear code examples.
APIHTTPJavaScript
0 likes · 20 min read

This article introduces native Node.js HTTP server creation, explains request and response concepts, and then demonstrates how to use the Koa framework—including installation, middleware, routing, body parsing, and the onion model—to build clean, maintainable backend services.
BackendHTTPJavaScript
0 likes · 11 min read

This article explains how to solve the common problem of loading historical chat records in a WeChat mini‑program by using a two‑line CSS flex column‑reverse trick, handling edge cases such as limited data and scroll‑view issues, and provides a complete Koa WebSocket backend implementation with full code examples.
FlexboxKoachat
0 likes · 9 min read

This tutorial walks through the front‑end portion of a publishing platform series, demonstrating how to build a Vue 3 and Element‑plus UI with TailwindCSS, implement server‑side pagination via Koa, integrate Axios with proxy and interceptors, and add complete CRUD operations—including create, edit, and delete dialogs—while showcasing the essential code snippets.
CRUDElement PlusKoa
0 likes · 16 min read

This tutorial walks through building a full‑stack backend for a frontend publishing platform using Koa2, @koa/router, and MongoDB, covering project initialization, route modularization, controller and service layers, middleware for response handling, environment‑specific configuration, and complete CRUD operations verified with Postman and Mongo shell.
APICRUDKoa
0 likes · 19 min read

This article shares Ctrip's experience building GraphQL‑based Backend‑for‑Frontend services, covering the technology stack, data‑graph modeling, error handling with union types, non‑null field usage, performance optimizations, engineering practices such as data‑loader batching, virtual paths, monitoring, and testing.
ApolloBFFGraphQL
0 likes · 21 min read

Node.js web frameworks have evolved from lightweight tools like Express to enterprise solutions such as Nest and Midway, and now to front‑end‑focused platforms like Next.js, with modern designs emphasizing modularity, type safety, serverless support, and developer‑friendly hooks that bridge front‑end and back‑end development.
ExpressKoaMidway
0 likes · 9 min read

This article explains how to implement simple and streaming file downloads with Node.js and Koa, handle content disposition and progress display, support resumable downloads, and efficiently generate large Excel reports using ExcelJS with chunked queries and streaming to overcome memory bottlenecks.
ExcelJSFile DownloadKoa
0 likes · 12 min read

This tutorial explains how to use the WeChat material management API, Redis caching, and Node.js middleware to obtain access tokens, upload and replace images, inline CSS, and finally create draft articles for automatic publishing on a WeChat public account.
APIContent SyncKoa
0 likes · 10 min read

This article explores Koa’s core AOP‑based architecture, demonstrates minimal implementations using koa‑compose and Node.js http, and proposes a microservice‑oriented framework that extends Koa to support HTTP, Thrift, WebSocket and other services, complete with abstract server designs and example code.
AOPKoaNode.js
0 likes · 14 min read

This article explains the technical details of large file chunked uploading, walks through designing a custom TypeScript library for both server and client sides, provides step‑by‑step implementation code, and demonstrates a complete Koa‑React demo, offering developers a ready‑to‑use solution for efficient large file transfers.
KoaNode.jsReact
0 likes · 26 min read

This article presents a student‑crafted, high‑fidelity Xiaomi Mall clone built with a Vue‑based front‑end (Vue‑router, Vuex, Element‑ui, Axios) and a Node.js Koa back‑end using MySQL, detailing its architecture, key pages, authentication, shopping cart, order processing, and deployment.
KoaMySQLVue
0 likes · 5 min read

This comprehensive tutorial walks you through choosing Koa, setting up a project, refactoring routing, handling parameters, configuring middleware for error handling, CORS, logging, validation, and organizing config, controller, service, and model layers for a robust Node.js backend.
KoaLoggingRouting
0 likes · 22 min read

This article walks through creating a simple native Node.js HTTP server, applying the Strategy pattern to decouple routes, enforcing the DRY principle with Promises, and then dives deep into Koa’s core source—including its constructor, use, listen, compose, and router modules—to reveal how the framework orchestrates middleware and request handling.
HTTP serverJavaScriptKoa
0 likes · 21 min read


58 TechNov 6, 2020 · Information Security
This article explains the severe risks of CSRF attacks for web services, debunks common misconceptions, and presents six concrete development rules plus a Koa2 code example to effectively protect Node.js back‑ends, especially in financial applications.
CSRFKoaNode.js
0 likes · 9 min read

This article introduces lowcode-mock, a lightweight tool that forwards requests to backend without needing mock definitions or regex matching, explains installation via Yarn, demonstrates creating mock routes with Koa, generating mocks from YAPI or JSON, adding delay, handling HTTP error codes, and configuring proxy forwarding.
API mockingKoaNode.js
0 likes · 7 min read

This guide shows how to install and run lowcode‑mock, create mock APIs with Koa, generate mock data from YAPI or JSON using the yapi‑code plugin, configure custom mock rules, simulate delays, handle HTTP error codes, and proxy requests to real back‑ends, all without needing regex‑based mocking.
API mockingKoaNode.js
0 likes · 6 min read

This article explains the concept of Cross-Origin Resource Sharing (CORS), the same‑origin policy, how simple and preflight requests work, and demonstrates configuring a Koa server and client‑side settings—including credentials and header handling—to enable secure cross‑origin communication.
CORSCross-OriginKoa
0 likes · 6 min read

This guide introduces lowcode-mock, a zero‑configuration mock server that forwards regex‑matched requests to backend endpoints, covering installation, startup, route creation, generating mocks from YAPI or JSON, adding delays, handling HTTP errors, and proxying requests, all with code examples.
API testingKoaNode.js
0 likes · 7 min read

This article explains why session management is needed, compares cookies, sessions and JWT, describes JWT's structure and workflow, and provides a complete Node.js/Koa implementation with code examples and a discussion of its advantages and drawbacks.
AuthenticationJWTKoa
0 likes · 10 min read

This article explains the fundamentals of cookies and sessions, provides a detailed analysis of the koa-session source code, demonstrates how to configure and use koa-session with in‑memory, Redis, and MySQL stores, and summarizes security considerations and performance trade‑offs.
BackendKoaSession
0 likes · 13 min read

This article explains why and how to enable CDN caching for server‑side rendered pages, outlines the conditions for its use, offers optimization tips, and provides step‑by‑step Koa middleware code to control cache behavior and avoid common pitfalls.
CDNKoaSSR
0 likes · 14 min read

This article explains how to use JavaScript decorators to define routes for Koa and Egg frameworks, covering class and method decorators, Reflect metadata, automatic router generation, controller loading, and practical code examples for streamlined backend development.
DecoratorEggKoa
0 likes · 10 min read

This article explains the role of a middle tier in web systems, describes middleware concepts, outlines the advantages of using Node.js as a middle layer, and provides a step‑by‑step Koa‑based implementation with code examples and deployment considerations.
KoaMiddle TierNode.js
0 likes · 17 min read

This technical guide explains how to build a Vue SSR service using Koa, outlines the project benefits and trade‑offs, details the directory structure, server and client entry files, webpack configurations, and describes a Docker‑based CI/CD pipeline with Kubernetes deployment for scalable production environments.
DockerKoaKubernetes
0 likes · 22 min read


WecTeamDec 19, 2019 · Backend Development
This article shares practical experiences and techniques for migrating a medium‑size Koa2 project to TypeScript with Midway, covering tsconfig settings, the dangers of any, strategies using unknown, strict compiler options, type guards, assertion functions, and how to construct a concise, reusable type system for backend models.
KoaMidwayType System
0 likes · 27 min read

This article examines why GraphQL naturally emerges for complex front‑end data needs, details its language design, architecture, resolver middleware, mocking strategies, and various deployment patterns such as API‑gateway and BFF, offering practical guidance for building scalable GraphQL services.
API DesignBFFGraphQL
0 likes · 36 min read

This article walks through the concepts, architecture, and step‑by‑step implementation of a React + Redux isomorphic application that renders on the server with Koa, bundles with Webpack, and hydrates on the client, while highlighting performance benefits and common pitfalls.
IsomorphicKoaReact
0 likes · 15 min read

This article walks you through creating a lightweight Koa 2 framework by explaining its core modules—application, request, response, and context—showing how to implement the HTTP server wrapper, the onion‑style middleware composition, and robust error handling with code examples for each step.
BackendJavaScriptKoa
0 likes · 18 min read

This article explores the philosophical limits of design patterns and then dives into three core backend architectural patterns—Middleware, MVC, and Dependency Injection—illustrating their purpose, implementation in Node.js frameworks like Express and Koa, and their impact on code modularity and scalability.
ExpressKoaMVC
0 likes · 12 min read

This article explains the core concepts of NestJS—including modules, controllers, providers, guards, interceptors, and validation pipes—provides practical code examples, and describes how the Nesk fork adapts Nest's architecture to a Koa‑based environment for seamless integration with existing internal frameworks.
GuardsKoaNestJS
0 likes · 10 min read

This article chronicles Bilibili’s front‑end evolution in 2017, detailing the shift from a backend‑centric MVC model to front‑back separation, the adoption of Node middle‑layers, Vue and React SSR, Docker deployment, caching strategies, and subsequent refactoring to improve performance and scalability.
DockerKoaNode.js
0 likes · 15 min read

This tutorial walks you through setting up a Node.js environment, installing Koa, and progressively building a web application by covering basic HTTP services, context handling, response types, routing, middleware, error handling, cookies, form processing, and file uploads with clear code examples.
File UploadKoaNode.js
0 likes · 19 min read


21CTOSep 23, 2017 · Backend Development
This article explains how the Qudian team built a lightweight Koa‑based front‑back end separation framework called koa‑grace, covering its architecture, routing, data proxying, deployment strategies, performance benchmarks, and open‑source resources for developers seeking efficient web application development.
KoaNode.jsfront‑back end separation
0 likes · 14 min read

koa‑restql automatically creates full RESTful CRUD endpoints from Sequelize models, mapping each database table to standard GET, POST, PUT, and DELETE routes, handling query filters, pagination, and associations via query strings, and offering middleware or association‑level options for access control, thus eliminating repetitive data‑operation code in Koa backends.
KoaNode.jsORM
0 likes · 7 min read

This article examines how Dragonfly, a Node.js‑based source site for Taobao's CMS, achieves high stability through thoughtful system design, robust implementation, comprehensive testing, and effective logging and monitoring practices across CDN, Redis, and other dependencies.
CDNKoaNode.js
0 likes · 11 min read

This article demystifies the use of yield* in Koa middleware by comparing plain yield with delegating yield, explaining how the co library handles generators and promises, and outlining the practical advantages of native yield* syntax for clarity, performance, and correct this binding.
JavaScriptKoaasync
0 likes · 9 min read
