AstroWay/api v2.254.12 · de
alle Systeme in Ordnung
// sdk · Webkomponenten

AstroWay Webkomponenten (Alpha)

Natalrad, Mondphase, Kompatibilität, Tarot und Horoskop als einfache HTML-Elemente für jede Seite: ein <script>-Tag vom CDN oder npm install. Diagramme werden mit demselben Code wie die API gezeichnet, sodass ein Rad auf deiner Seite dem entspricht, was /v1/render zurückgibt. Alpha: Attributnamen können sich bis 1.0 noch ändern.

// 01 / install

Installieren

npm install @astroway/ui@alpha
pnpm pnpm add @astroway/ui
yarn yarn add @astroway/ui
CDN <script type="module" src="https://cdn.jsdelivr.net/npm/@astroway/ui/dist/cdn/index.js"></script>

Import: import '@astroway/ui';

// 02 / highlights

Highlights

// 03 / first request

Erste Anfrage

<script type="module" src="https://cdn.jsdelivr.net/npm/@astroway/ui/dist/cdn/index.js"></script>

<!-- keyless: the moon phase in the visitor's language -->
<aw-moon-phase lang="uk"></aw-moon-phase>

<!-- a publishable pk_ key bound to your domain, credit cap and endpoint list -->
<aw-natal-wheel api-key="pk_live_..." date="1990-07-14" time="14:30"
  latitude="50.45" longitude="30.52" timezone-offset="3"></aw-natal-wheel>

Start mit Webkomponenten

10.000 Credits kostenlos pro Monat. Open-Source SDK, generiert aus OpenAPI 3.1, immer synchron mit dem Backend.

99,9% SLA · kostenpflichtige Tarife · 30 Tage Status →