All Projects → lourd → react-google-sheet

lourd / react-google-sheet

Licence: MIT license
Pulling data from Google Sheets with React components

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-google-sheet

Gspread
Google Sheets Python API
Stars: ✭ 5,676 (+23550%)
Mutual labels:  google-sheets, spreadsheets
sheets-database
Library to help use a Google Sheet as a database
Stars: ✭ 36 (+50%)
Mutual labels:  google-sheets, spreadsheets
kdecole-api
Unofficial Node.js API client of Kdecole (Skolengo EMS)
Stars: ✭ 31 (+29.17%)
Mutual labels:  api-client
fastapi-csv
🏗️ Create APIs from CSV files within seconds, using fastapi
Stars: ✭ 46 (+91.67%)
Mutual labels:  google-sheets
airtable
Airtable API Client for Go
Stars: ✭ 25 (+4.17%)
Mutual labels:  api-client
internetguzeldir
Source code of https://internetguzeldir.com. Static site generator that takes a Google spreadsheet and builds dmoz like website from it. Written with Python3.
Stars: ✭ 33 (+37.5%)
Mutual labels:  spreadsheets
cap-table-tool
Cap Table and Exit Waterfall Tool, https://foresight.is/cap-table
Stars: ✭ 22 (-8.33%)
Mutual labels:  google-sheets
wporg-client
Standalone HTTP client for public WordPress.org API.
Stars: ✭ 73 (+204.17%)
Mutual labels:  api-client
als typograf
Ruby client for ArtLebedevStudio.RemoteTypograf Web Service.
Stars: ✭ 15 (-37.5%)
Mutual labels:  api-client
go-typetalk
go-typetalk is a GO client library for accessing the Typetalk API.
Stars: ✭ 19 (-20.83%)
Mutual labels:  api-client
pandoc-placetable
Pandoc filter to include CSV data (from file or URL)
Stars: ✭ 35 (+45.83%)
Mutual labels:  google-sheets
connectapi
An R package for interacting with the RStudio Connect Server API
Stars: ✭ 26 (+8.33%)
Mutual labels:  api-client
redash-api-client
Redash API Client written in Python
Stars: ✭ 36 (+50%)
Mutual labels:  api-client
pyracing
A complete overhaul of the original ir_webstats; pyracing is an API client/wrapper for iRacing, the leading online simracing service. pyracing handles the queries to iRacing's (known) URL endpoints and maps the returned JSON data into structured objects, allowing for easier access to the data.
Stars: ✭ 52 (+116.67%)
Mutual labels:  api-client
jellyfin-apiclient-python
Python API Client for Jellyfin
Stars: ✭ 30 (+25%)
Mutual labels:  api-client
CryptoCurrency.Net
CryptoCurrency.Net
Stars: ✭ 21 (-12.5%)
Mutual labels:  api-client
NClient
💫 NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Stars: ✭ 25 (+4.17%)
Mutual labels:  api-client
echovr api docs
Unofficial documentation for Echo VR's HTTP API
Stars: ✭ 19 (-20.83%)
Mutual labels:  api-client
FTAPIKit
Declarative and generic REST API framework using Codable.
Stars: ✭ 18 (-25%)
Mutual labels:  api-client
restofus
Restofus - a cross-platform (REST) API client.
Stars: ✭ 18 (-25%)
Mutual labels:  api-client

@lourd/react-google-sheet npm package badge Build status

Easily use data from Google Sheets in your React application with the GoogleSheet component.

Background

The motivation for making this module was researching ways to easily use data from Google Sheets. This module is a client-centric approach, using React to make a declarative component API for the Google Sheets browser API.

Under the hood this is using the generic @lourd/react-google-api module for handling loading and initializing the Google API JavaScript client library.

Example

There are just a couple steps to using the example app. The source is in the example directory.

  1. Click the Authorize button and allow the site to have access to your Google Sheets data
  2. Get the ID of a spreadsheet that you have permission to view. In the URL of a sheet it's in between /d/ and /edit, i.e. for /spreadsheets/d/foofoo/edit it's foofoo.
  3. Choose a range of the spreadsheet, e.g. Tab 1!2:12

You can also use your own API key and application ID that you made on the Google APIs console.

Installation

yarn add @lourd/react-google-sheet
# or
npm install --save @lourd/react-google-sheet

Browser

Available as a simple <script> through unpkg.com. The module will be available as the global variable ReactGoogleSheet.

Development

<script src="https://unpkg.com/react/umd/react.development.js" type="text/javascript"></script>
<script src="https://unpkg.com/@lourd/react-google-sheet/dist/index.umd.js" type="text/javascript"></script>

Production

<script src="https://unpkg.com/react/umd/react.production.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/@lourd/react-google-sheet/dist/index.umd.min.js" type="text/javascript"></script>

Reference

import { GoogleSheet, GoogleSheetsApi } from '@lourd/react-google-sheet'

<GoogleSheetsApi/>

This component handles downloading and instantiating the Google sheets browser API, and passing it into context for other components to use. See an example of this component used in App.js

Property Type Required Default Description
scopes [string] no ['https://www.googleapis.com/auth/spreadsheets.readonly'] The authorization scopes being requested for the API client.

<GoogleSheet/>

Property Type Required Description
id string yes The id of the spreadsheet
range string yes The range of cells in the spreadsheet

Ths component handles getting the Google client from context and using it to request the data from the Sheets API. See an example of this component used in DynamicSpreadsheet.js

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].