This repository provides a tool for spoofing Apple's network-based location service (WLOC) on iOS devices. It intercepts HTTP requests to `gs-loc.apple.com` via proxy tools (Surge, Quantumult X, Loon, Stash, Shadowrocket) and modifies the response to return user-defined coordinates. The system includes a Cloudflare Worker that serves a web-based map interface for selecting locations and an API for parsing map links from various services (Apple Maps, Google Maps, Amap, Baidu) with automatic coordinate system conversion (GCJ-02, BD-09, WGS84). The architecture is client-server: the proxy tool runs on the iOS device, while the Worker is stateless and handles the UI and link parsing. The codebase is well-structured, with clean separation between the Worker application, proxy scripts, and configuration modules. The coordinate parsing and conversion logic is particularly sophisticated, handling edge cases like Hong Kong boundary detection and Baidu's non-standard Mercator projection. The repository includes comprehensive regression tests and detailed documentation.
San is a Baidu-developed, production-grade frontend component framework that enables building reactive UIs with a Vue/React-like model, but using custom template syntax and a standalone runtime. It provides a template parser (producing an ANode AST), a reactive data system (Data class, Proxy-based this.d), directives (s-if, s-for, s-bind, s-show, s-html, s-ref, s-transition), slots (named, scoped, dynamic), computed properties, filters, lifecycle hooks, two-way binding, and server-side rendering hydration. The library is monolithic but modularly organized, targeting browsers from IE8 upward with conditional compilation. It is actively maintained with frequent releases and extensive test coverage, but carries legacy complexity and a self-contained build toolchain (AMD module loading, custom feature blocks). The ecosystem includes companion libraries (san-router, san-store, san-cli) and TypeScript typings.