This package has been deprecated

Author message:

This project is no longer maintained and the API has been taken down. Please look for another horoscope solution

@skyra/saelem
TypeScript icon, indicating that this package has built-in type declarations

3.0.34 • Public • Published
logo

Saelem

Horoscope API for Skyra

GitHub npm

Support Server


Description

Horoscope query GraphQL API for Skyra

Key Features

Installation

Install client side typings from yarn or npm:

yarn add -D @skyra/saelem
npm install -D @skyra/saelem

Usage

import { Query } from '@skyra/saelem';

interface SaelemResponse<K extends keyof Omit<Query, '__typename'>> {
	data: Record<K, Omit<Query[K], '__typename'>>;
}

fetch('http://localhost:8284', {
	method: 'POST',
	headers: {
		'Content-Type': 'application/json'
	},
	body: JSON.stringify({
		query: `
      {
          getHoroscope(sunsign: aries) {
              prediction
              intensity
              keywords
              mood
              rating
              date
          }
      }
    `
	})
})
	.then((res) => res.json() as SaelemResponse<'getHoroscope'>)
	.then((json) => console.log(json.data));

Buy us some doughnuts

Skyra Project is open source and always will be, even if we don't get donations. That said, we know there are amazing people who may still want to donate just to show their appreciation. Thanks you very much in advance!

We accept donations through Patreon, BitCoin, Ethereum, and Litecoin. You can use the buttons below to donate through your method of choice.

Donate With QR Address
Patreon PatreonImage Click Here
PayPal PayPalImage Click Here
BitCoin BitcoinImage 3JNzCHMTFtxYFWBnVtDM9Tt34zFbKvdwco
Ethereum EthereumImage 0xcB5EDB76Bc9E389514F905D9680589004C00190c
Litecoin LitecoinImage MNVT1keYGMfGp7vWmcYjCS8ntU8LNvjnqM

Contributors

Thanks goes to these wonderful people (emoji key):


Jeroen Claassens

💻 📖 🚇 📆 ⚠️

Antonio Román

📆

Skyra

🚇

depfu[bot]

🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

Package Sidebar

Install

npm i @skyra/saelem

Weekly Downloads

7

Version

3.0.34

License

MIT

Unpacked Size

44.2 kB

Total Files

10

Last publish

Collaborators

  • favna
  • kyranet