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/setup-api

v1.0.2

Published

monday.com setup api cli

Downloads

262

Maintainers

barosenbarosenaviel_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.mondaynaorsnaorsguymarushchenkoguymarushchenkoidit-barakidit-barakmitzafon-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_plusoneitaymndyitaymndynadavavnadavavharelcohenharelcohenliortalmondayliortalmondayorihassid2507orihassid2507gregra81gregra81arielmondayarielmondaybenymondaybenymondaytalibl.mondaytalibl.mondayyoni-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 API Setup Library

Overview

This library automates the setup of a development environment for working with the Monday API using GraphQL. It's designed to help developers quickly start projects with pre-configured tools and settings.

What does the script do?

The script gets the environment ready for graphql api development

  • Installs the following npm packages: @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-operations
  • Adds configuration file for codegen (used to create types for queries and mutations) at the root folder - codegen.yml
  • Adds configuration file for the graphql extension at the root folder - graphql.config.yml - to be used with the official graphql extensions
  • Adds queries folder used to write your queries and mutations - src/queries.graphql.ts
  • Adds a script to get the latest api schema - fetch-schema.sh
  • Adds scripts to package.json to run with your graphql api

How do I work now?

After everything will be set up, you should follow those steps:

  1. Write your queries in the queries.graphql.ts file
  2. Run 'npm run fetch:schma'
  3. your types will be ready to use (as can be seen in the src/generated folder)

Installation

Run this command on the root directory of your project

npx @mondaydotcomorg/setup-api 

Using the newly created scripts

After installation, you will have 3 new scripts:

  • "fetch:schema" - Gets the monday api schema
  • "codegen" - generates types
  • "fetch:generate" - runs both

for now do the following to get the schema and create your first type.

npm run fetch:generate

Installing the GraphQL Extension for your IDE

Visual Studio Code

To enhance your development experience with GraphQL, we recommend installing the GraphQL extension for Visual Studio Code. This extension provides syntax highlighting, linting, auto-complete, and more.

To install the extension, open Visual Studio Code, go to the Extensions view by clicking on the square icon on the sidebar or pressing Ctrl+Shift+X, and search for GraphQL. Find the extension by GraphQL Foundation and click Install.

Alternatively, you can install the extension via the command line:

code --install-extension GraphQL.vscode-graphql

Or you can simply go to extensions and add the official graphql extensions (GraphQL: Language Feature Support, GraphQL: Syntax Highlighting)

JetBrains IDEs

JetBrains IDEs such as WebStorm or IntelliJ IDEA support GraphQL development through plugins. To install a GraphQL plugin, follow these steps:

  1. Open your IDE and go to Preferences > Plugins.
  2. Click the Marketplace tab and search for GraphQL.
  3. Find the plugin provided by JetBrains and click Install.
  4. Restart your IDE if prompted.

This plugin provides features such as syntax highlighting, documentation lookup, and schema-aware code completion.

What You Should Know

This library simplifies the initial configuration for working with the Monday API, but you should still familiarize yourself with the GraphQL schema and the Monday API documentation to make the most out of your development experience.

We hope this library helps you kickstart your project with the Monday API more efficiently. Happy coding!

Example usage

When using this package, you will automatically get an example query and an example mutation in your queries file. Here is how to use them!

const client = new ApiClient("your_api_token"); // From the monday api sdk @mondaydotcomorg/api

const queryVariables: QueryBoardsArgs = { ids: ["your_board_id"] }; // replace with your board id
const queryData = await client.query<GetBoardsQuery>(exampleQuery, queryVariables);

const mutationVariables: CreateItemMutationVariables = {
boardId: "your_board_id", // replace with your board id
groupId: "your_groyup_id", // replace with your group id
itemName: "Im using my own queries!",
};
const mutationData = await client.query<CreateItemMutation>(exampleMutation, mutationVariables);

Further configuration

you can also add advanced options for you work environment, for example you can add configuration to add react hooks out of your queries (@graphql-codegen/typescript-react-query) in two ways:

  • Install the config that best suits you by adding it manually OR
  • Run npm i --save-dev @graphql-codegen/cli
  • Run graphql-codegen init
  • Choose the config that best suits you