Build a reactive single-page web app with reusable UI components without a heavy framework.
Add San to an existing HTML page via a CDN script tag with no build step and create your first component in minutes.
Use san-router and san-store to add page navigation and shared state management to a San application.
Speed up development with the Ant Design or Material Design component libraries to get pre-built buttons, forms, and tables.
Add via CDN script tag for zero-config start, or `npm install san` for a full project. Use san-cli for project scaffolding.
San is a JavaScript framework for building web interfaces out of reusable components. It was created by Baidu and is designed to be small and fast while still covering the features a developer needs to build a modern web application. The README is bilingual in Chinese and English, reflecting that the project originated at a Chinese tech company but has an international audience. The core idea is similar to other component frameworks: you write each piece of your UI as a component that has its own template (the HTML structure), data, and behavior. When the data changes, San updates only the parts of the page that need to change, rather than reloading the whole page. This makes interactive interfaces feel responsive without much manual work. San can be added to a project by installing it from the npm package registry or by including it directly from a CDN with a single script tag. The quick-start example in the README shows a simple component with a text input and a greeting message that updates as you type, all written in plain HTML and JavaScript with no build step required. Around the core framework there is an ecosystem of companion libraries for common needs: san-router for navigating between pages in a single-page app, san-store for managing shared application state, san-ssr for rendering components on the server, and san-cli for project scaffolding. There are also two component libraries (one following the Ant Design visual style and one following Material Design) if you want pre-built UI elements like buttons, tables, and forms. San is open source under the MIT license. A browser extension (san-devtools) is available for inspecting and debugging San components during development.
← baidu on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.