
react
React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.
提供了一个精致且无障碍的 UI 组件,在网络和原生 Apple 平台上表现一致,零依赖、完整支持 VoiceOver,并经过 CI 验证。
A ChatGPT-inspired model intelligence picker in two zero-dependency implementations:
The two versions share the same five intelligence levels, magnetic snapping, animated color progression, reduced-motion behavior, and Ultra celebration.
https://github.com/user-attachments/assets/1025109b-c19d-42a1-8fb4-a035cc104bbf
Open index.html in a browser, or include the component in your own page:
Listen for selection changes through the standard change event:
const selector = document.querySelector('chatgpt-model-selector');
selector.addEventListener('change', (event) => {
console.log(event.detail.index, event.detail.tier, event.detail.model);
});
| Attribute | Type | Default | Description |
|---|---|---|---|
model-name | string | GPT-5.4 | Model label shown in the trigger and menu |
value | integer 0–4 | 1 | Light, Medium, High, Extra High, or Ultra |
value gets or sets the tier index.tier returns the current tier name.change emits { index, tier, model } in event.detail.The component supports modern browsers with Web Components, Shadow DOM, Canvas 2D, and ResizeObserver.
In Xcode, choose File → Add Package Dependencies and enter:
https://github.com/zanwei/chatgpt-model-selector
Or add the package in Package.swift:
dependencies: [
.package(
url: "https://github.com/zanwei/chatgpt-model-selector.git",
branch: "main"
)
]
Then add the ChatGPTModelSelector library product to your target.
import ChatGPTModelSelector
import SwiftUI
struct ComposerView: View {
@State private var tier: ModelTier = .medium
var body: some View {
ModelSelector(
modelName: "GPT-5.4",
selection: $tier
)
}
}
The binding is the source of truth: user interaction updates it, and external writes move the sel
ChatGPT-inspired model intelligence picker as a zero-dependency Web Component (MIT)
根据分类、Topic 和编程语言匹配的相似项目。

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.
A GPT‑image powered app that extracts individual garment cutouts from photos, organizes them into a digital wardrobe, and generates modeled outfit previews.
A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.