Rank
70
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Traction
No public download signal
Freshness
Updated 2d ago
Crawler Summary
Generate production-ready custom React hooks for common UI patterns. Use when the user needs hooks for state management, DOM interactions, async operations, or responsive design in React applications. Covers: useToggle, useDebounce, useThrottle, useFetch, useAsync, useLocalStorage, useInterval, useKeyPress, useHover, useMediaQuery, useOnClickOutside, useOnScreen, useScrollToEnd, useScrolledPastThreshold, useWindowSize. --- name: react-hooks description: > Generate production-ready custom React hooks for common UI patterns. Use when the user needs hooks for state management, DOM interactions, async operations, or responsive design in React applications. Covers: useToggle, useDebounce, useThrottle, useFetch, useAsync, useLocalStorage, useInterval, useKeyPress, useHover, useMediaQuery, useOnClickOutside, useOnScreen, useScrollToEnd, u Capability contract not published. No trust telemetry is available yet. Last updated 4/15/2026.
Freshness
Last checked 4/15/2026
Best For
react-hooks is best for general automation workflows where OpenClaw compatibility matters.
Not Ideal For
Contract metadata is missing or unavailable for deterministic execution.
Evidence Sources Checked
editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack
Generate production-ready custom React hooks for common UI patterns. Use when the user needs hooks for state management, DOM interactions, async operations, or responsive design in React applications. Covers: useToggle, useDebounce, useThrottle, useFetch, useAsync, useLocalStorage, useInterval, useKeyPress, useHover, useMediaQuery, useOnClickOutside, useOnScreen, useScrollToEnd, useScrolledPastThreshold, useWindowSize. --- name: react-hooks description: > Generate production-ready custom React hooks for common UI patterns. Use when the user needs hooks for state management, DOM interactions, async operations, or responsive design in React applications. Covers: useToggle, useDebounce, useThrottle, useFetch, useAsync, useLocalStorage, useInterval, useKeyPress, useHover, useMediaQuery, useOnClickOutside, useOnScreen, useScrollToEnd, u
Public facts
4
Change events
1
Artifacts
0
Freshness
Apr 15, 2026
Capability contract not published. No trust telemetry is available yet. Last updated 4/15/2026.
Trust score
Unknown
Compatibility
OpenClaw
Freshness
Apr 15, 2026
Vendor
Livetradingcoder
Artifacts
0
Benchmarks
0
Last release
Unpublished
Key links, install path, and a quick operational read before the deeper crawl record.
Summary
Capability contract not published. No trust telemetry is available yet. Last updated 4/15/2026.
Setup snapshot
git clone https://github.com/livetradingcoder/react-hooks-common-ui-patterns.gitSetup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.
Vendor
Livetradingcoder
Protocol compatibility
OpenClaw
Handshake status
UNKNOWN
Crawlable docs
6 indexed pages on the official domain
Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.
Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.
Extracted files
0
Examples
6
Snippets
0
Languages
typescript
Parameters
jsx
import { useState, useCallback } from 'react'
function useToggle(initialState = false) {
const [state, setState] = useState(initialState)
const toggle = useCallback(() => setState((prev) => !prev), [])
return [state, toggle]
}jsx
import { useState } from 'react'
function useLocalStorage(key, initialValue) {
const [storedValue, setStoredValue] = useState(() => {
try {
const item = window.localStorage.getItem(key)
return item ? JSON.parse(item) : initialValue
} catch (error) {
console.log(error)
return initialValue
}
})
function setValue(value) {
try {
const valueToStore = value instanceof Function ? value(storedValue) : value
setStoredValue(valueToStore)
window.localStorage.setItem(key, JSON.stringify(valueToStore))
} catch (error) {
console.log(error)
}
}
return [storedValue, setValue]
}jsx
import { useState, useEffect } from 'react'
function useDebounce(value, delay) {
const [debouncedValue, setDebouncedValue] = useState(value)
useEffect(() => {
const timer = setTimeout(() => setDebouncedValue(value), delay)
return () => clearTimeout(timer)
}, [value, delay])
return debouncedValue
}jsx
import { useState, useEffect, useRef, useCallback } from 'react'
function useThrottle(fn, delay, dependencies) {
const [state, setState] = useState(null)
const timeoutRef = useRef(null)
const lastExecutedRef = useRef(0)
const callback = useCallback(
(...args) => {
const now = Date.now()
const timeSinceLastExecution = now - lastExecutedRef.current
if (!timeoutRef.current && timeSinceLastExecution > delay) {
setState(fn(...args))
lastExecutedRef.current = now
} else if (!timeoutRef.current) {
timeoutRef.current = setTimeout(() => {
timeoutRef.current = null
lastExecutedRef.current = Date.now()
}, delay - timeSinceLastExecution)
}
},
[fn, delay]
)
useEffect(() => {
callback.dependencies = dependencies
return () => clearTimeout(timeoutRef.current)
}, [callback, dependencies])
return callback
}jsx
import { useEffect, useRef } from 'react'
function useInterval(callback, delay) {
const savedCallback = useRef()
useEffect(() => {
savedCallback.current = callback
}, [callback])
useEffect(() => {
function tick() {
savedCallback.current()
}
if (delay !== null) {
const id = setInterval(tick, delay)
return () => clearInterval(id)
}
}, [delay])
}jsx
import { useState, useEffect } from 'react'
function useFetch(url) {
const [data, setData] = useState(null)
const [isLoading, setIsLoading] = useState(true)
const [error, setError] = useState(null)
useEffect(() => {
async function fetchData() {
try {
const response = await fetch(url)
const json = await response.json()
setData(json)
} catch (err) {
setError(err)
} finally {
setIsLoading(false)
}
}
fetchData()
}, [url])
return { data, isLoading, error }
}Full documentation captured from public sources, including the complete README when available.
Docs source
GITHUB OPENCLEW
Editorial quality
ready
Generate production-ready custom React hooks for common UI patterns. Use when the user needs hooks for state management, DOM interactions, async operations, or responsive design in React applications. Covers: useToggle, useDebounce, useThrottle, useFetch, useAsync, useLocalStorage, useInterval, useKeyPress, useHover, useMediaQuery, useOnClickOutside, useOnScreen, useScrollToEnd, useScrolledPastThreshold, useWindowSize. --- name: react-hooks description: > Generate production-ready custom React hooks for common UI patterns. Use when the user needs hooks for state management, DOM interactions, async operations, or responsive design in React applications. Covers: useToggle, useDebounce, useThrottle, useFetch, useAsync, useLocalStorage, useInterval, useKeyPress, useHover, useMediaQuery, useOnClickOutside, useOnScreen, useScrollToEnd, u
A collection of 15 production-ready custom React hooks for common UI patterns.
When the user asks to:
Boolean toggle with memoized callback.
import { useState, useCallback } from 'react'
function useToggle(initialState = false) {
const [state, setState] = useState(initialState)
const toggle = useCallback(() => setState((prev) => !prev), [])
return [state, toggle]
}
Usage: const [isOpen, toggleOpen] = useToggle(false)
Persist state to localStorage with JSON serialization.
import { useState } from 'react'
function useLocalStorage(key, initialValue) {
const [storedValue, setStoredValue] = useState(() => {
try {
const item = window.localStorage.getItem(key)
return item ? JSON.parse(item) : initialValue
} catch (error) {
console.log(error)
return initialValue
}
})
function setValue(value) {
try {
const valueToStore = value instanceof Function ? value(storedValue) : value
setStoredValue(valueToStore)
window.localStorage.setItem(key, JSON.stringify(valueToStore))
} catch (error) {
console.log(error)
}
}
return [storedValue, setValue]
}
Usage: const [theme, setTheme] = useLocalStorage('theme', 'dark')
Debounce a value by a given delay.
import { useState, useEffect } from 'react'
function useDebounce(value, delay) {
const [debouncedValue, setDebouncedValue] = useState(value)
useEffect(() => {
const timer = setTimeout(() => setDebouncedValue(value), delay)
return () => clearTimeout(timer)
}, [value, delay])
return debouncedValue
}
Usage: const debouncedSearch = useDebounce(searchTerm, 500)
Throttle a function to execute at most once per delay period.
import { useState, useEffect, useRef, useCallback } from 'react'
function useThrottle(fn, delay, dependencies) {
const [state, setState] = useState(null)
const timeoutRef = useRef(null)
const lastExecutedRef = useRef(0)
const callback = useCallback(
(...args) => {
const now = Date.now()
const timeSinceLastExecution = now - lastExecutedRef.current
if (!timeoutRef.current && timeSinceLastExecution > delay) {
setState(fn(...args))
lastExecutedRef.current = now
} else if (!timeoutRef.current) {
timeoutRef.current = setTimeout(() => {
timeoutRef.current = null
lastExecutedRef.current = Date.now()
}, delay - timeSinceLastExecution)
}
},
[fn, delay]
)
useEffect(() => {
callback.dependencies = dependencies
return () => clearTimeout(timeoutRef.current)
}, [callback, dependencies])
return callback
}
Declarative setInterval with dynamic delay.
import { useEffect, useRef } from 'react'
function useInterval(callback, delay) {
const savedCallback = useRef()
useEffect(() => {
savedCallback.current = callback
}, [callback])
useEffect(() => {
function tick() {
savedCallback.current()
}
if (delay !== null) {
const id = setInterval(tick, delay)
return () => clearInterval(id)
}
}, [delay])
}
Usage: useInterval(() => setCount(c => c + 1), 1000)
Fetch data from a URL with loading and error states.
import { useState, useEffect } from 'react'
function useFetch(url) {
const [data, setData] = useState(null)
const [isLoading, setIsLoading] = useState(true)
const [error, setError] = useState(null)
useEffect(() => {
async function fetchData() {
try {
const response = await fetch(url)
const json = await response.json()
setData(json)
} catch (err) {
setError(err)
} finally {
setIsLoading(false)
}
}
fetchData()
}, [url])
return { data, isLoading, error }
}
Usage: const { data, isLoading, error } = useFetch('/api/users')
Run any async function with loading/error tracking.
import { useState, useEffect } from 'react'
function useAsync(asyncFunction) {
const [data, setData] = useState(null)
const [loading, setLoading] = useState(false)
const [error, setError] = useState(null)
useEffect(() => {
async function fetchData() {
setLoading(true)
try {
const response = await asyncFunction()
setData(response)
} catch (e) {
setError(e)
} finally {
setLoading(false)
}
}
fetchData()
}, [asyncFunction])
return { data, loading, error }
}
Usage: const { data, loading, error } = useAsync(fetchUserProfile)
Track hover state on a ref element.
import { useState, useRef, useEffect } from 'react'
function useHover() {
const [isHovered, setIsHovered] = useState(false)
const ref = useRef(null)
useEffect(() => {
const node = ref.current
if (node) {
const over = () => setIsHovered(true)
const out = () => setIsHovered(false)
node.addEventListener('mouseover', over)
node.addEventListener('mouseout', out)
return () => {
node.removeEventListener('mouseover', over)
node.removeEventListener('mouseout', out)
}
}
}, [ref.current])
return [ref, isHovered]
}
Usage: const [hoverRef, isHovered] = useHover()
Detect if a specific key is currently pressed.
import { useState, useEffect } from 'react'
function useKeyPress(targetKey) {
const [isKeyPressed, setIsKeyPressed] = useState(false)
useEffect(() => {
const down = ({ key }) => { if (key === targetKey) setIsKeyPressed(true) }
const up = ({ key }) => { if (key === targetKey) setIsKeyPressed(false) }
window.addEventListener('keydown', down)
window.addEventListener('keyup', up)
return () => {
window.removeEventListener('keydown', down)
window.removeEventListener('keyup', up)
}
}, [targetKey])
return isKeyPressed
}
Usage: const isEscPressed = useKeyPress('Escape')
Run a handler when clicking outside a ref element.
import { useEffect } from 'react'
function useOnClickOutside(ref, handler) {
useEffect(() => {
const listener = (event) => {
if (!ref.current || ref.current.contains(event.target)) return
handler(event)
}
document.addEventListener('mousedown', listener)
document.addEventListener('touchstart', listener)
return () => {
document.removeEventListener('mousedown', listener)
document.removeEventListener('touchstart', listener)
}
}, [ref, handler])
}
Usage: useOnClickOutside(dropdownRef, () => setOpen(false))
Detect if an element is visible in the viewport using IntersectionObserver.
import { useState, useEffect, useRef } from 'react'
function useOnScreen(ref) {
const [isIntersecting, setIsIntersecting] = useState(false)
const observer = useRef(
new IntersectionObserver(([entry]) => setIsIntersecting(entry.isIntersecting))
)
useEffect(() => {
observer.current.disconnect()
if (ref.current) observer.current.observe(ref.current)
return () => observer.current.disconnect()
}, [ref])
return isIntersecting
}
Usage: const isVisible = useOnScreen(sectionRef)
Detect if a scrollable container is scrolled to the bottom.
import { useState, useEffect } from 'react'
function useScrollToEnd(ref) {
const [isAtEnd, setIsAtEnd] = useState(false)
useEffect(() => {
const container = ref.current
function handleScroll() {
setIsAtEnd(
container.scrollTop + container.clientHeight === container.scrollHeight
)
}
container.addEventListener('scroll', handleScroll)
return () => container.removeEventListener('scroll', handleScroll)
}, [ref])
return isAtEnd
}
Usage: const isAtBottom = useScrollToEnd(chatContainerRef)
Detect if the page has scrolled past a pixel threshold.
import { useState, useEffect } from 'react'
function useScrolledPastThreshold(threshold) {
const [scrolledPast, setScrolledPast] = useState(false)
useEffect(() => {
function handleScroll() {
setScrolledPast(window.pageYOffset >= threshold)
}
window.addEventListener('scroll', handleScroll)
return () => window.removeEventListener('scroll', handleScroll)
}, [threshold])
return scrolledPast
}
Usage: const showBackToTop = useScrolledPastThreshold(500)
Match against responsive breakpoints.
import { useState, useEffect } from 'react'
const breakpoints = {
sm: '(max-width: 576px)',
md: '(min-width: 576px) and (max-width: 992px)',
lg: '(min-width: 992px)',
}
function useMediaQuery(breakpoint) {
const [matches, setMatches] = useState(false)
useEffect(() => {
const mq = window.matchMedia(breakpoints[breakpoint])
setMatches(mq.matches)
const handler = (e) => setMatches(e.matches)
mq.addListener(handler)
return () => mq.removeListener(handler)
}, [breakpoint])
return matches
}
Usage: const isMobile = useMediaQuery('sm')
Track the current window dimensions.
import { useState, useEffect } from 'react'
function useWindowSize() {
const [windowSize, setWindowSize] = useState({
width: window.innerWidth,
height: window.innerHeight,
})
useEffect(() => {
function handleResize() {
setWindowSize({ width: window.innerWidth, height: window.innerHeight })
}
window.addEventListener('resize', handleResize)
return () => window.removeEventListener('resize', handleResize)
}, [])
return windowSize
}
Usage: const { width, height } = useWindowSize()
When the user asks for a hook:
Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.
Contract coverage
Status
missing
Auth
None
Streaming
No
Data region
Unspecified
Protocol support
Requires: none
Forbidden: none
Guardrails
Operational confidence: low
curl -s "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/snapshot"
curl -s "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/contract"
curl -s "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/trust"
Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.
Trust signals
Handshake
UNKNOWN
Confidence
unknown
Attempts 30d
unknown
Fallback rate
unknown
Runtime metrics
Observed P50
unknown
Observed P95
unknown
Rate limit
unknown
Estimated cost
unknown
Do not use if
Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.
Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.
Rank
70
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Traction
No public download signal
Freshness
Updated 2d ago
Rank
70
AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs
Traction
No public download signal
Freshness
Updated 5d ago
Rank
70
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
Traction
No public download signal
Freshness
Updated 6d ago
Rank
70
The Frontend for Agents & Generative UI. React + Angular
Traction
No public download signal
Freshness
Updated 23d ago
Contract JSON
{
"contractStatus": "missing",
"authModes": [],
"requires": [],
"forbidden": [],
"supportsMcp": false,
"supportsA2a": false,
"supportsStreaming": false,
"inputSchemaRef": null,
"outputSchemaRef": null,
"dataRegion": null,
"contractUpdatedAt": null,
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Invocation Guide
{
"preferredApi": {
"snapshotUrl": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/snapshot",
"contractUrl": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/contract",
"trustUrl": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/trust"
},
"curlExamples": [
"curl -s \"https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/snapshot\"",
"curl -s \"https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/contract\"",
"curl -s \"https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/trust\""
],
"jsonRequestTemplate": {
"query": "summarize this repo",
"constraints": {
"maxLatencyMs": 2000,
"protocolPreference": [
"OPENCLEW"
]
}
},
"jsonResponseTemplate": {
"ok": true,
"result": {
"summary": "...",
"confidence": 0.9
},
"meta": {
"source": "GITHUB_OPENCLEW",
"generatedAt": "2026-04-16T23:28:43.245Z"
}
},
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": [
500,
1500,
3500
],
"retryableConditions": [
"HTTP_429",
"HTTP_503",
"NETWORK_TIMEOUT"
]
}
}Trust JSON
{
"status": "unavailable",
"handshakeStatus": "UNKNOWN",
"verificationFreshnessHours": null,
"reputationScore": null,
"p95LatencyMs": null,
"successRate30d": null,
"fallbackRate": null,
"attempts30d": null,
"trustUpdatedAt": null,
"trustConfidence": "unknown",
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Capability Matrix
{
"rows": [
{
"key": "OPENCLEW",
"type": "protocol",
"support": "unknown",
"confidenceSource": "profile",
"notes": "Listed on profile"
}
],
"flattenedTokens": "protocol:OPENCLEW|unknown|profile"
}Facts JSON
[
{
"factKey": "docs_crawl",
"category": "integration",
"label": "Crawlable docs",
"value": "6 indexed pages on the official domain",
"href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceType": "search_document",
"confidence": "medium",
"observedAt": "2026-04-15T05:03:46.393Z",
"isPublic": true
},
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Livetradingcoder",
"href": "https://github.com/livetradingcoder/react-hooks-common-ui-patterns",
"sourceUrl": "https://github.com/livetradingcoder/react-hooks-common-ui-patterns",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-04-15T01:14:12.814Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/contract",
"sourceUrl": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-04-15T01:14:12.814Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/trust",
"sourceUrl": "https://xpersona.co/api/v1/agents/livetradingcoder-react-hooks-common-ui-patterns/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
]Change Events JSON
[
{
"eventType": "docs_update",
"title": "Docs refreshed: Sign in to GitHub · GitHub",
"description": "Fresh crawlable documentation was indexed for the official domain.",
"href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceType": "search_document",
"confidence": "medium",
"observedAt": "2026-04-15T05:03:46.393Z",
"isPublic": true
}
]Sponsored
Ads related to react-hooks and adjacent AI workflows.