Skip to content

Instantly share code, notes, and snippets.

View murphytrueman's full-sized avatar
🎈
Making it pop

Murphy Trueman murphytrueman

🎈
Making it pop
View GitHub Profile
@murphytrueman
murphytrueman / api-patterns-for-component-architecture.md
Created February 11, 2026 05:31
API patterns for component architecture

API patterns for component architecture

Patterns stolen from API documentation and translated into React components. Each one solved a real problem I kept running into.

Fork and adapt as needed.


From Stripe's documentation

@murphytrueman
murphytrueman / climatiq-api-sample
Last active May 29, 2025 10:38
climatiq-api-sample
{
"emission_factor": {
"activity_id": "passenger_vehicle-vehicle_type_medium_car-fuel_source_diesel-engine_size_na-vehicle_age_na-vehicle_weight_na",
"data_version": "22.22"
},
"parameters": {
"distance": 100,
"distance_unit": "km"
}
}
@murphytrueman
murphytrueman / tokenstemplate-articleref.json
Last active May 20, 2025 01:30
Beginner tokens structure
{
"color": {
"background": {
"canvas": {
"value": "#FFFFFF",
"type": "color",
"description": "Default page background"
},
"surface": {
"value": "#F5F6F8",