npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mondaydotcomorg/api

v3.0.1

Published

monday.com API client

Downloads

1,315

Maintainers

reutlevyreutlevyori-mondayori-mondayidanmoralidanmoraloryanmioryanmiyoniho_myoniho_mrivkaungarrivkaungaramitbenmoramitbenmorpiotrkopiotrkoamirkeamirkebarosenbarosenaviel_hershkovitzaviel_hershkovitzmayabarkanmayabarkanleelakrleelakrmatanmamanmatanmamanbenjaminlabenjaminlajz-dapulsejz-dapulsetomkochtomkochawallace327awallace327byohay-mondaybyohay-mondayadirhadirhmichalbelmichalbelapoorvparijatapoorvparijatcezarylacezarylamoro256moro256saritkasaritkaorilaorilaadi_brahaadi_brahaeyalleeyallealexjalbaalexjalbaamitmazor37amitmazor37filip-daca-mondayfilip-daca-mondaymusayedahmusayedahavivgiavivgiidanoridanorkubakolybaczkubakolybaczchensarchensarephraimgrephraimgrmichaelvamondaymichaelvamondaylotanyuranlotanyuranlitalwlitalwyoavteyoavteramhillelramhillelpiotrdu-mondaypiotrdu-mondaynirfridnirfriddorbidorbiguymevorachlevyguymevorachlevygioraguatmondaygioraguatmondaysandeepkmondaysandeepkmondaybernardpo-mondaybernardpo-mondayornu-mondayornu-mondayshanmondayshanmondayshayo-arshayo-arsrdjan-mondaysrdjan-mondaymiller21miller21shirazbehar2shirazbehar2galko_mondaygalko_mondaydanielga-mondaydanielga-mondayorelco2orelco2mikeynagler1990mikeynagler1990yair_engelyair_engelromkadriaromkadriavasilyklvasilyklyanivziyanivziyotamhermesyotamhermesnoasharvitnoasharvitmorpa-mondaymorpa-mondaytomhousmantomhousmankfir_bekhavodkfir_bekhavodgalspmondaygalspmondaymichallormichalloryuvalgryuvalgromrialomrialronavmondayronavmondayyahorzhyahorzhshaharzishaharzijakubso2749jakubso2749dorsimmdorsimmidangaidangamichaelimasmichaelimasadva-gonshadva-gonshurielwasyngurielwasyngjakubmojakubmotomerzlotomerzloprzemyslawbprzemyslawbeviatharmeviatharmjosephsamondayjosephsamondayleonidkrleonidkrmoshe-samsonmoshe-samsonmonday-grahamlamonday-grahamlatalsoffertalsofferyuvalkahanayuvalkahanaofirnirmndofirnirmndnicole_kezliknicole_kezlikarnonrgoarnonrgodekelabedekelabeerlich75erlich75idofinderidofindernirarazi.mondaynirarazi.mondayronniemironniemivikas-mondayvikas-mondaygabikagabikanirco96nirco96barakbsbarakbsamirdana115amirdana115chirayu11chirayu11shaikatzzshaikatzzsergeytsibulniksergeytsibulnikjoshpe-mondayjoshpe-mondayguykorenguykorensaararsaararasaf472mondayasaf472mondaynatanrolnik_mndnatanrolnik_mndbarjabarjaasafswasafswsamwisamwitalkortalkoryuliagoldbergyuliagoldbergdviryodviryogiladscgiladscgiladar-mondaygiladar-mondayasafroasafrotalp1talp1tducassetducassesevmondaysevmondaykapusjkapusjavileviavilevidanielepdanielepadigabadigabyosia1990yosia1990yonatanbi-mondayyonatanbi-mondayisabelletaisabelletaeladna-mondayeladna-mondayadmonsaadmonsapiotrborucpiotrborucbenhabenhaadirhaziz2adirhaziz2jr-mondayjr-mondaymohamedigmohamedigronco99ronco99rangr-mondayrangr-mondayomerraomerraolegsh_mondayolegsh_mondaynavelenavelemaor-mondaymaor-mondaydord2dord2theidotheidogiladtsmondaygiladtsmondayrzmndrzmndyossisaadi.mondayyossisaadi.mondaynaorsnaorsguymarushchenkoguymarushchenkomitzafon-mondaymitzafon-mondayericfelericfelbilling-guybilling-guykirilnekirilneadiknafoadiknafodaniel-glazerdaniel-glazeralexkubica_mondayalexkubica_mondaylukasz-dudzinskilukasz-dudzinskiibukunolibukunolak2140ak2140eladdoeladdoyonatanelyonataneledogr1edogr1doniawadoniawalihibmlihibmtom-katztom-katzdipro-mondaydipro-mondayorieroriereden-eitanieden-eitanitomaszlamondaytomaszlamondayjessbemondayjessbemondayshlomitoshlomitotsemachlitsemachlitomersttomersttalshetalshetalhararitalhararinaorbemondaynaorbemondayliorl-mondayliorl-mondaydoron.brikmandoron.brikmanbenmamondaybenmamondaymayaismayaisigorczigorczomergrinomergrinyavgenypayavgenypamarcinko-mondaymarcinko-mondaymaor-barazanimaor-barazanigalklgalklgal_finger_mondaygal_finger_mondayshayalshayalaviv_goaviv_goalonbrimeralonbrimermaciej-mondaymaciej-mondayshoshanyshoshanyronov1ronov1orcomondayorcomondayamitcoamitcooded_by_mondayoded_by_mondayjohhh_mondayjohhh_mondayalonschatzalonschatzmeromcomeromcojeandavidjeandaviddor-cohendor-cohenmatanlamatanlamoriatmoriatbanueldobanueldoandreihryhoryeuandreihryhoryeuraneldanraneldanidanmondayidanmondaylironamlironammonday_dan_plusonemonday_dan_plusoneitaymndyitaymndynadavavnadavavharelcohenharelcohenliortalmondayliortalmondayorihassid2507orihassid2507gregra81gregra81arielmondayarielmondaybenymondaybenymondayyoni-alalufyoni-alalufneomi_shavitneomi_shavitran-haveshush-mondayran-haveshush-mondaykamiekamiemarekpemarekpeibmondayibmondaygilby1gilby1netta-snetta-slotemkirshlotemkirshasif_mondayasif_mondayanyatchernishovanyatchernishovneilmonneilmonmarszelun-mondaymarszelun-mondaysafaaeeksafaaeeklukaszfiszer-mondaylukaszfiszer-mondayarekze-mondayarekze-mondayrongabbayrongabbayethans-mondayethans-mondayrankupmondayrankupmondayomernave1omernave1lahavplahavpchenbechenbeadamflooradamfloorandrey-palmanandrey-palmanshlomiatmondayshlomiatmondaym-binygalm-binygaltomgrtomgradamru-mondayadamru-mondayetgarmonetgarmonthierryguythierryguyrachelikarachelikadudu1982dudu1982rama-ronrama-ronalonsadanalonsadanhadascohadascoilyastoliarilyastoliaryairfeyairfenitzanezranitzanezraitamarteitamartemickey_mondaymickey_mondaynirro.mondaynirro.mondayliors619liors619yoavgayoavgalueranlueranrami-mondayrami-mondaymaya-assayagmaya-assayagliorla13liorla13eran-coheneran-coheneitanteeitanteofirc-mondayofirc-mondayssddnodessddnodesergeyroytsergeyroytalonbehaimalonbehaimsergeybrsergeybrvirtservirtsershaharfreidenbergshaharfreidenbergalexanderbarkinalexanderbarkinalonsh2904alonsh2904eilonmoeilonmoliorrabinliorrabinavifreegeavifreegedanofirdanofirshaneeshaneeronipardoronipardoofirmonsingoofirmonsingomonadavmonadavguygoguygoboazjboazjannasoannasoventuramdventuramdshalomsteinbachshalomsteinbachronicohen123ronicohen123mickael_firstmickael_firstjonaonmondayjonaonmondayguyasinoguyasinodotanshdotanshbladepopbladepopanatkatzanatkatzuri-shmueliuri-shmuelishaietshaietroniavroniavivankmondayivankmondaygoralthgoralthdoryehudadoryehudaudidoronudidoronmayaheilbrunmayaheilbrunitaycohenitaycohendorshakeddorshakedbenpibenpiyuvalbyuvalbtzvico-mondaytzvico-mondayshahafmelamedshahafmelamedronachmany-mondayronachmany-mondaynoamn3knoamn3kitamargolditamargoldgal_libermangal_libermandorhasondorhasonamit_hanochamit_hanochyuval-eliavyuval-eliavtootmorantootmoransergeisasergeisaozkamaozkamamateuszwomateuszwoillyayuillyayufreak4pcfreak4pcbarcohen2barcohen2amirbardugoamirbardugoyuly-robermanyuly-robermansebastian-curland-mndysebastian-curland-mndyorrgottlorrgottlnirlachmannirlachmanmatanyaw2matanyaw2igor_budiigor_budieviathareviathardarmondaydarmondayyosefwyosefwtomerfriedmantomerfriedmanoronmondayoronmondaynik-savchenkonik-savchenkolorin-totahlorin-totahidoyana-mondayidoyana-mondayetaylibetaylibbarakbebarakbeyonilyoniltombogtombogsaharbsaharboronmelleroronmellernavecohennavecohenliran-brimer-mondayliran-brimer-mondayidohayidohaydanielle.ahdanielle.ahayelet-mondayayelet-mondayyglaubachyglaubachtal.haramatital.haramatisagilinshitssagilinshitsoribaoribaliorshamianliorshamiandanielb-bladepopdanielb-bladepopaviv_go_npmaviv_go_npmyardenliyardenlidanielabdanielabaviramaviramshirzashirzasagiba800sagiba800or-nuri-mondayor-nuri-mondaymoshikmoshikliormedliormederan.hubermaneran.hubermancsalomancsalomanavihayavavihayavaf8811af8811witold-mondaywitold-mondayshiraweshirawerutikeveshrutikeveshomermondayomermondaymoshe1100moshe1100liorkeliorkeella-miella-michristopher-nowakchristopher-nowakvladmondayvladmondayshayelmodnayshayelmodnayrotemtarotemtaohadhegeohadhegehadaspehadaspeelisiegelelisiegelchezkibotwinickchezkibotwinickaviel_mondayaviel_mondayadarmondayadarmondayvitalimvitalimshanibenaderetmondayshanibenaderetmondayofirnavaraofirnavaralaviomrilaviomriantonru92antonru92

Readme

Monday GraphQL JS SDK

Introduction

The monday api SDK provides a simple way to interact with monday.com's GraphQL platform API, making it easier than ever to get started with our API. The SDK abstracts away the complex GraphQL queries, providing simple operations for the most common endpoints such as fetching board data, or creating items.

The SDK is supported in both Node.js and browser environments, and is using the graphql-request client under the hood.

Want to make more complex queries or find out more about what our API has to offer, check out monday.com's API documentation.

If your code operates within a browser-based app deployed on monday.com, you can utilize the SeamlessApiClient class which does not require specifying the user's token. For all other scenarios, use the ApiClient class.

Installation

npm install @mondaydotcomorg/api

Important

All exported types correspond to the current version of the API that existed when the NPM package was released

For the conviniecne of monday app developers, this CLI is included in the @mondaydotcomorg/apps-cli. If you want to use it on it’s own, you can install @mondaydotcomorg/setup-api. (you can find more about app development here monday-apps-sdk)

Usage

Using the api client

The package exports the class ApiClient which is the main entry point to the SDK. You can use it to query monday's API freestyle, or use the operations provided by the SDK.

import { ApiClient } from '@mondaydotcomorg/api';

const client = new ApiClient('<API-TOKEN>');

// Or use the operations provided by the SDK
const me = await client.operations.getMeOp();

// Example how to change a text column
const changeTextColumn = await client.operations.changeColumnValueOp({
    boardId: "your_board_id",
    itemId: "your_item_id",
    columnId: "text",
    value: JSON.stringify("Hello, world!"),
});

// Example how to change a status column
const changeStatusColumn = await client.operations.changeColumnValueOp({
    boardId: "your_board_id",
    itemId: "your_item_id",
    columnId: "project_status", // replace with your column id
    value: JSON.stringify({ label: "Done" }),
});

// Use the client to query monday's API freestyle WITHOUT TYPES -> Use @mondaydotcomorg/setup-api to setup typed project!
const boards = await client.query<{boards: [{ name: string }]}>(`query { boards(ids: some_id) { name } }`);

// You can also use the types provided by the sdk 
const { boards } = await client.query<{
  boards: [Board];
}>(`query { boards(ids: some_id) { name } }`);

Using the types

The package exports all the types used by the SDK, so you can use them in your code.

import { User } from '@mondaydotcomorg/api';

const user: User = {
    id: '123',
    name: 'John Doe',
    email: '[email protected]'
}

SeamlessApiClient

The SeamlessApiClient class is a tool designed for making seamless API requests to Monday.com, tailored for use within the client side of applications deployed on the platform. Basically, when you are making an api call from the client side of an app deployed on Monday.com, you dont need to specify the users token.

import {
  Board,
} from "@mondaycom/api";

const { boards } = await SeamlessApiClient.query<{boards: [Board];}>(`query { boards(ids: some_id) { id name } }`);

// or using your own types after integrating with @mondaycom/setup-api
import { GetBoardsQueryVariables, GetBoardsQuery } from "./generated/graphql";
const variables: GetBoardsQueryVariables = { ids: ["some_id"] };

export const getBoards = gql`
  query GetBoards($ids: [ID!]) {
    boards(ids: $ids) {
      id
      name
    }
  }
`;

const data = await SeamlessApiClient.query<GetBoardsQuery>(getBoards, variables);