Skip to content
nimatime
·v1.0.0·Apache-2.0

Weather Widget@axint/weather-widget

Home-screen weather widget across small, medium, and large families

widgetweather#widget#widgetkit#weather#home-screen
GitHub-linked publisherCompiler 0.3.9Source includedDocs attachedValidated 21h agoPolicy clear for v1.0.0
Cloud report
0 installsSupports typescript
Validation healthy21h ago
0E / 0W / 0I · axint 0.4.28

Package activity is a directional signal based on registry install requests. Use source, validation, and publisher metadata before treating it as adoption proof.

Weather Widget animated demo

Weather Widget

Animated Registry demo · @axint/weather-widget

v1.0.0
Live playground
Built in 42ms
Source
44 lines
Generated Swift
73 lines
axint typescript → Swift
README

@axint/weather-widget

A home-screen weather widget. Small, medium, and large families from one TypeScript definition.

axint add @axint/weather-widget

What you get

Compiling this template through Axint emits:

  • WeatherWidget.swift with a TimelineEntry, a TimelineProvider, a SwiftUI body, and a @main Widget conformance
  • Info.plist.fragment with the location usage description
  • Proper supportedFamilies() declarations for small, medium, and large

Where the data comes from

The widget expects a timeline provider that hands it a WeatherEntry each update. The template declares the entry shape; wire it up to WeatherKit, OpenWeatherMap, or any source in your app's timeline provider.

Customizing

Edit source/widget.ts to:

  • Change the body layout with the view.* helpers
  • Add new families (e.g. accessoryCircular for Apple Watch)
  • Adjust refreshInterval — default is 30 minutes

Recompile with:

axint compile source/widget.ts --out generated/

License

Apache-2.0

@axint/weather-widget · Home-screen weather widget across small, medium, and large families · axint registry