Tagged articles
Web API
51 articles · Page 1 of 1
HTML‑in‑Canvas is an experimental Web API that captures HTML elements as images and draws them onto a canvas, giving developers pixel‑level control to create game‑like UI effects, dynamic layouts, and even embed live web content inside classic games like Doom, while the proposal advances through W3C.
AICanvasHTML-in-Canvas
0 likes · 9 min read

This article walks through the design and implementation of a production‑ready Web AI agent that uses FastAPI as the HTTP layer, LangGraph to orchestrate multi‑step reasoning, and MCP to expose external tools, showing how to manage state, integrate multiple LLM providers, and extend the system with persistence, rate‑limiting, and monitoring.
AI AgentFastAPILLM
0 likes · 20 min read

Chrome’s new WebMCP API lets AI agents bypass visual UI simulation and interact directly with web pages via a single navigator.modelContext call, eliminating fragile screen‑scraping tricks and enabling front‑end developers to expose structured tools to AI using simple declarative or imperative JavaScript APIs.
AI agentsChromeDeclarative API
0 likes · 8 min read

This article explains why traditional asynchronous requests often fail during page unload, and demonstrates two modern browser APIs—navigator.sendBeacon and fetch with keepalive:true—that reliably transmit small data without blocking the user experience.
Web APIbrowserfetch
0 likes · 9 min read

This article explains why traditional fetch or XMLHttpRequest calls often fail during page unload, and demonstrates two modern browser APIs—navigator.sendBeacon and fetch with keepalive:true—that reliably transmit analytics or draft data without blocking the user experience.
JavaScriptWeb APIfetch keepalive
0 likes · 7 min read

This guide explains how to use the native MediaRecorder API to capture screen, audio, or canvas streams in the browser, walk through a three‑step implementation—getting the stream, recording it, and handling the output—and shares best practices for compatibility, MIME types, user permissions, resource cleanup, and performance.
JavaScriptMediaRecorderWeb API
0 likes · 7 min read

Learn how to synchronize data across multiple browser tabs using the native BroadcastChannel API and the fallback localStorage + storage event, with step‑by‑step code examples, usage scenarios, feature comparisons, compatibility notes, and a reusable TabMessenger class for seamless inter‑tab messaging.
BroadcastChannelJavaScriptWeb API
0 likes · 9 min read

This article explains how FastAPI leverages Dependency Injection to improve code reusability, modularity, and testability, covering basic examples, sub‑dependency handling, database session management with SQLAlchemy, and building a full‑featured user management API with authentication.
FastAPIPythonWeb API
0 likes · 9 min read

Chrome’s newly announced Observable API lets developers handle asynchronous UI events declaratively, offering built‑in filtering, mapping and composition that simplify code, improve readability, and may eventually replace third‑party libraries like RxJS as a native web standard.
ChromeWeb APIevent handling
0 likes · 8 min read

Chrome 133+ adds the moveBefore method, a new DOM operation that moves elements while preserving their state, offering developers a simpler alternative to removeChild/insertBefore and improving scenarios like video playback, focus retention, and animation continuity.
ChromeDOMJavaScript
0 likes · 7 min read

This article provides a comprehensive tutorial on the Document Picture-in-Picture (PiP) API, covering its purpose, browser support checks, window creation, style synchronization, event handling, cloning techniques, and a complete example with HTML, CSS, and JavaScript code.
Document Picture-in-PictureHTMLJavaScript
0 likes · 11 min read

Chrome now offers built‑in AI capabilities through Translation, Summarizer, and Prompt APIs that run locally in the browser, providing faster, more private, and hardware‑accelerated AI tasks for web developers, with Origin Trial programs and detailed usage examples.
AIChromeGemini Nano
0 likes · 16 min read

The article evaluates WebCodecs‑based video editing for browsers, comparing it to cloud and ffmpeg.wasm approaches, and concludes that its low cost and high extensibility outweigh limited ecosystem and compatibility, while outlining the required modules, OPFS storage, frame decoding, and spatial‑temporal manipulation techniques.
Frontend DevelopmentWeb APIWebCodecs
0 likes · 14 min read

This article explains JavaScript's Blob and File objects, their creation syntax, properties, methods such as slice, text, arrayBuffer, and stream, and demonstrates common scenarios like file download, upload, image reading, and Base64 conversion with clear code examples.
BLOBFileJavaScript
0 likes · 10 min read

This article demonstrates how to create a basic translation application in Python using Tkinter for the graphical interface and the Youdao web API for translating text, providing complete source code and step‑by‑step explanations.
GUIPythonWeb API
0 likes · 5 min read

The article shows that the standard AbortController API can do far more than just cancel fetch requests—it can cleanly remove event listeners, combine multiple abort signals, control streams, and even make database transactions cancelable, with concrete code examples and compatibility notes.
AbortControllerAbortSignalCancellation
0 likes · 13 min read

This guide demonstrates how to create a simple Go web API using the Gin framework, define a recipe data model, implement CRUD endpoints backed by MongoDB, add Redis caching for list queries, and provide a complete runnable example with testing scripts.
CRUDGinGo
0 likes · 14 min read


21CTOJul 2, 2024 · Backend Development
This article compares FastAPI and Flask, highlighting FastAPI's speed, developer experience, and standards support, while providing practical migration guidance, code examples, configuration tips, async handling, dependency injection, testing, deployment, and documentation differences for Python web developers.
ASGIFastAPIFlask
0 likes · 25 min read

This article introduces the JavaScript WritableStream API, explains its core methods and construction, demonstrates practical scenarios such as file uploads, logging, data transformation, and media handling, and discusses advanced considerations like chunk sizing, error recovery, concurrency control, and performance optimization.
Web APIWritableStreamstreaming
0 likes · 10 min read

This article explains the HTTP QUERY method as a safe, idempotent request type that carries payloads like POST but enables caching and automatic retries, detailing its semantics, caching behavior, Accept-Query header, and providing practical code examples.
HTTPQUERY methodWeb API
0 likes · 10 min read

This tutorial explains how to create a simple Flask web site and RESTful API, then demonstrates retrieving the table data using Excel's web import feature and Python's requests, BeautifulSoup, and pandas libraries, while comparing the two approaches.
ExcelFlaskPython
0 likes · 9 min read

This article explains how to use Baidu Maps' API with Python to programmatically generate map images covering a 1‑kilometer radius around a point, including step‑by‑step instructions, required API registration, coordinate setup, and a complete code example.
Baidu MapsGeospatialWeb API
0 likes · 5 min read

This article introduces the IntersectionObserver API, explains its constructor, options, and entry properties, and demonstrates practical applications such as lazy loading images, scroll‑triggered animations, infinite scrolling, and virtual list rendering with complete code examples.
IntersectionObserverScroll AnimationWeb API
0 likes · 11 min read

This article explains the newly supported scrollend event, how it replaces unreliable timer‑based scroll‑stop detection, shows practical code examples, lists the conditions under which it fires, discusses browser support, and provides a polyfill for broader compatibility.
JavaScriptWeb APIevent handling
0 likes · 5 min read

This article explains the requestIdleCallback web API, its syntax, execution timing, task‑queue handling, performance characteristics, compatibility issues, and practical integration with React and requestAnimationFrame to off‑load low‑priority work without blocking UI rendering.
Idle TasksJavaScriptReact
0 likes · 14 min read

This article explains how to implement a one‑click precise screenshot feature in a web application by leveraging the Clipboard API, converting DOM elements to images via SVG foreignObject, handling styles and resources, and finally writing the image to the system clipboard.
CanvasSVGWeb API
0 likes · 11 min read

The article explains how the Intersection Observer API offloads visibility detection from scroll events to improve performance, details its creation, options, callback structure, and entry data, and describes a polyfill that mimics native behavior using event listeners, mutation observers, and geometric calculations for broader browser support.
IntersectionObserverJavaScriptPolyfill
0 likes · 16 min read

This guide explains how to use the modern Wake Lock Web API in JavaScript to prevent a mobile screen from sleeping, covering feature detection, requesting and releasing the lock, handling release events, and automatically reacquiring the lock when the page becomes visible again.
JavaScriptScreen AwakeWake Lock
0 likes · 3 min read

The article introduces the ShadowRealm API, a new JavaScript proposal that creates highly isolated execution realms, explains its type signatures, demonstrates .evaluate() and .importValue() methods with code examples, compares it to eval, Function, iframes, Web Workers, and Node.js vm, and outlines practical use cases such as plugin execution, testing, and web scraping.
JavaScriptShadowRealmWeb API
0 likes · 9 min read

This article introduces the ShadowRealm API, a new JavaScript proposal that creates independent, highly isolated realms for executing code, explains its type signatures, demonstrates .evaluate() and .importValue() methods with practical examples, and compares it with eval, Web Workers, iframes, and Node.js vm.
JavaScriptShadowRealmWeb API
0 likes · 10 min read

This comprehensive tutorial explains how selections and cursors work in web pages, covering the underlying Selection and Range APIs, handling editable and non‑editable elements, manipulating text in inputs, textareas, and rich content, and providing practical code snippets for every scenario.
CursorDOMJavaScript
0 likes · 21 min read

FastAPI is a high‑performance, easy‑to‑learn Python web framework that lets you build robust APIs quickly, offering features like speed, concise code, automatic validation, and OpenAPI compatibility, with simple installation via pip and interactive documentation out of the box.
ASGIFastAPIPython
0 likes · 4 min read


ByteFEAug 18, 2021 · Frontend Development
This article explains the purpose, core concepts, configuration options, callback handling, and practical use‑cases of the Intersection Observer API—such as lazy loading, infinite scrolling, sticky headers, and analytics—while providing complete Vue 3 code examples and compatibility notes.
IntersectionObserverSticky HeaderWeb API
0 likes · 21 min read

This guide shows how to create a simple web page that converts a given text string into spoken audio using the HTML5 SpeechSynthesis API, with a complete code example, execution steps, and browser compatibility notes.
HTML5JavaScriptSpeechSynthesis
0 likes · 3 min read

This article explains the differences between Node and Element in the DOM, clarifies the roles of NodeList and HTMLCollection, demonstrates how to inspect child nodes with code examples, and provides practical tips for handling these objects in frontend development.
DOMElementFrontend Development
0 likes · 4 min read

This article explains what a Blob is, introduces the Blob Web API with its constructor, properties, and methods, and demonstrates practical scenarios such as chunked uploads, downloading data, creating Blob URLs, converting to Base64, image compression, PDF generation, and compares Blob with ArrayBuffer, providing complete code examples for each use case.
BLOBBase64File
0 likes · 20 min read


WecTeamNov 14, 2019 · Frontend Development
This comprehensive guide explores the Intersection Observer API, explaining its core concepts, detailed code examples, performance comparisons with scroll events, advanced usage like sticky positioning, visibility tracking, and browser compatibility, providing developers with practical insights to efficiently implement and optimize intersection-based interactions.
IntersectionObserverJavaScriptWeb API
0 likes · 32 min read

This article explains the concept of Mock objects for testing, outlines why interface mocking is essential in web development, and details Huajiao's comprehensive Mock solution—including a SpringBoot‑based backend, MySQL data storage, Nginx redirection, and Lua scripts for dynamic request routing—providing step‑by‑step usage instructions and code examples.
MockMySQLWeb API
0 likes · 13 min read

This article reveals eight lesser‑known DOM and Web API features—such as addEventListener options, smooth scrollTo, optional timer arguments, defaultChecked, normalize/wholeText, insertAdjacent methods, event.detail, and scrollHeight/scrollWidth—explaining their purpose, browser support, and providing practical code examples.
DOMJavaScriptWeb API
0 likes · 17 min read

The Screen Orientation API lets web applications read the device's current screen direction and angle, lock the orientation, and listen for changes, providing code examples, property details, and browser support guidance for enhancing user experience on video and gaming sites.
Lock ScreenScreen Orientation APIWeb API
0 likes · 5 min read

This article explains the system‑level nature of the clipboard, analyzes how clipboard.js implements copy via a hidden textarea and execCommand, discusses its limitations, and introduces the modern Async Clipboard API with its Promise‑based read/write methods, usage notes, and browser support.
Async Clipboard APIWeb APIclipboard
0 likes · 9 min read

This article explains how to register a website as a share target using the Web Share Target API, update the manifest file, handle incoming shared data with JavaScript, and outlines browser support, usage scenarios, and example implementations for modern front‑end development.
JavaScriptProgressive Web AppWeb API
0 likes · 7 min read

This article explains how to use the new Picture-in-Picture Web API to enable floating video playback on web pages, covering setup of video and button elements, request handling, error management, event listeners, window‑size tracking, feature detection, and best‑practice UI considerations.
HTML5JavaScriptWeb API
0 likes · 8 min read

This tutorial walks through building a simple blockchain in Java, covering core concepts, block and transaction structures, proof‑of‑work implementation, and exposing API endpoints via Servlets for creating transactions, mining blocks, viewing the chain, and achieving consensus across nodes.
BlockchainConsensusJava
0 likes · 27 min read

This article outlines a practical seven‑step methodology for designing, documenting, and publishing Web APIs—covering everything from listing semantic descriptors and drawing state diagrams to harmonizing names, choosing media types, creating semantic profiles, writing code, and finally releasing a stable, consumable service.
API DesignRESTWeb API
0 likes · 15 min read


21CTOMay 22, 2017 · Backend Development
The author rewrote a Laravel‑based Boxzilla application in Go, detailing migration steps, code‑size reduction, benchmark results, and testing advantages, showing how Go delivers faster response times, lower latency, and a more maintainable backend.
Code Size ReductionGoLaravel migration
0 likes · 7 min read


21CTODec 20, 2016 · Backend Development
Although RESTful principles recommend using distinct HTTP verbs for CRUD operations, many developers still rely on GET and POST for creating, updating, and deleting resources, leading to non‑standard JSON APIs; this article explains the HTTP methods, their semantics, and why practical constraints often shape API design.
CRUDHTTPJSON:API
0 likes · 5 min read

The article examines platform and Web APIs, compares their advantages and disadvantages, explores the current state of documentation automation, highlights the benefits and drawbacks of writing docs directly in source code, and warns of three common pitfalls that can undermine API documentation quality.
Documentation AutomationPlatform APIWeb API
0 likes · 8 min read

This article explains the Navigation Timing API's full set of timestamps—from navigationStart to loadEventEnd—detailing each metric's meaning and when it records a value, helping developers diagnose page‑load performance and how they differ for same‑origin versus cross‑origin requests, redirects, and cached resources.
Web APIbrowserfrontend
0 likes · 4 min read

This article outlines a repeatable, seven‑step process for designing robust Web APIs that leverages both HTTP and broader Web protocols, covering everything from listing semantic descriptors to publishing the API, and emphasizes clear separation of design and implementation details for future extensibility.
API DesignRESTWeb API
0 likes · 18 min read

This article presents a comprehensive, seven‑step methodology for designing, implementing, and maintaining Web APIs—covering business use‑case definition, semantic description, state‑diagram modeling, naming harmonization, media‑type selection, semantic archive creation, coding, and publishing—while offering interviews and further reading recommendations.
API DesignBackendHTTP
0 likes · 18 min read
