Functions

Function Examples(113)

Create React App with baked in Netlify functions support
react, starter
How to protected & scoped down functions to specific users
auth
Verify an Okta token with Go
auth
This is a simple example of how you can use Forms and Functions in Netlify to submit data to your Sanity.io project.
forms, sanity.io
Sends a question submitted from HTML question form via AWS SES. This example connects to an external AWS account
email, aws
stripe payment processing
payment, ecommerce
Filter form spam and send to Zapier webhook
zapier, spam
send email via nodemailer
email
send email via sendgrid
email
Serve entire site via Netlify functions + dynamic serverside HTML rendering
ssr
List files from google drive API
file-storage
Ping Superfeedr RSS, Atom, or JSON feeds on successful deploy. Uses event driven functions
Save emails to googlesheets
Handle Ajax & normal form POST submissions via functions
forms
Process form file upload and send to results to trello, slack, & mailgun
email, file-processing
Landing page with mailchimp
email, marketing
Webhook from IFTTT when new Flickr photo with tag #blog create github file and post. Automated photo blog
instagram, github
Tracking bus schedules
Proxy pageviews to google analytics incase google analytics is blocked on the client side
proxy, marketing
proxy arbitrary tracking data to a log management service Loggly
proxy, marketing
DNS lookup of a site
dns
List out objects from cosmicjs
Serverside hashing via crypto
crypto
Get the weather via openweathermap
weather
Custom netlify build status in slack
build
Contentful authless comments
contentful, comments
Token hider api passthrough proxy
Build live interactive video, voice and messaging into your web and mobile apps via tokbox
URL shortening service
marketing
Save images to contentful
file-storage, contentful
Grab clips from twitch and insert into postgres database
database, postgres, twitch
Integrate OpenAPI (swagger) specifications and lambda into an easy-to-use routing tier
CSP violations reporting by setting the lambda URL as the CSP report-uri
security, CSP
Scrape mobile twitter HTML to return the URLs of a user avatar
twitter
Oauth via intercom
auth, oauth, intercom
Using faunaDB as datastore
database, fauna, crud
Using express with netlify functions
express, ssr
Gating multiple sites with Okta
auth, okta
Post a tweet to Twitter
twitter
Functions as zips
packaging
Validate emails on Netlify identity signup
auth, identity
Deploying Apollo graphql on netlify functions
graphql
Using mongoDB + functions
database, mongo
Handling Static Forms, Auth & Serverless Functions with Gatsby on Netlify
ecommerce, gatsby, auth
Gatsby & Netlify functions stripe store
ecommerce, gatsby, stripe
Netlify + Dropbox using functions + redirects to validate the webhook
Netlify functions + shopify for an ecommerce store
ecommerce, shopify
Netlify functions + primsa + graphql
graphql
Fetch Chuck Norris quotes
lol
Netlify functions + subscribe users to mailchimp
email, marketing
Check the weather forcast with bugsnag for debugging
Ping slack on new netlify comments
slack
Using Airtable as a database
database, airtable
Authenication for pusher pub/sub
Example of using AWS s3 as a datastore
database, aws, s3
Return a random emoji
An auth service powered by lambda functions & MongoDB
database, mongo, auth, jwt
Draw raffle winners at your Meetup event via meetup.com API
meetup
Verify phone numbers with Authy SMS
auth, sms
Get the SF BART Station Departures
Search MyAnimeList API
Fetch Rasperry pi URL from dataplicity
Process contact form submission and store in airtable
email, mailgun, airtable, database
Serverless Implementation of GitHub Finder
github
Dropbox webhook to trigger Netlify builds
Fetch RSS feed from medium
Fetch RSS feed from behance
Send slack channel invites
slack, marketing
Fetch currency rates from eurofxref
Send email with no STMP server via 'sendmail' pkg
email
get github repos from graphql endpoint
github, graphql
Get current bitcoin prices from localbitcoins.com
bitcoin
Search and save Zillow results to firebase
Weekly inspirational messages via SMS
saas, ecommerce, stripe, sms
Process a stripe payment
ecommerce, stripe
This is a simple short-url service that works with netlify functions and uses airtable.
Scrape url, parse with cheerio and render new html out
ssr, scraping
Create new user in firebase admin
database, firebase
Get recent instagram posts
instagram
Trigger Netlify deploy with password protected function
build
Shorten links with the bit.ly API
Get youtube video captions from video ID
Get youtube video data from video ID
Create Identity accounts programatically by hitting the admin endpoint
auth, identity
This repo contains an example business website that is built with Gatsby, and Netlify CMS, this starter also has a basic setup to work with netlify functions.
starter, gatsby, netlify-cms, react
A Super simple start to serverless from Kent C. Dodds
functions, serverless
Nuxt.js example for running Netlify functions locally in a dev environment and as a generated static site deployed to Netlify.
mailgun, nuxt, vuejs
Repository for OvrWatcher, Overwatch match tracking and statistical analysis. Viewable at ovrwatcher.com
mysql
Render custom html based on function path params
ssr, html
Render custom html based on function query params
ssr, html
Using function middleware to re-use logic across multiple functions via middy.js
middleware, middy
Using functions as a REST backend.
rest, api
Using functions for GraphQL APIs
graphql, api
Handle dynamic redirects with serverless functions
redirect
Using functions to set browser cookies.
cookies
Example of function that will fetch data from third party APIs
This lesson will walk through creating a function scrape websites.
scraping
Sending emails via serverless functions
email
Using functions for SMS sending text messages via twilio
sms
Using Netlify Event Driven functions to react to Netlify events
netlify
Serverless function to process payments via Stripe.
ecommerce
Using functions to handle OAuth login flows.
oauth
a function to get pre-signed s3 upload urls
s3
How to use Netlify functions for a GraphQL API
graphql, api
How to create a function to return an image instead of json.
images
Example Lambda to fetch all "newsletter" posts from Pocket.
getpocket
Accept stripe payments
ecommerce, stripe, payment
This function uses Airtable as a content database and fetches the content to be rendered on aecstartups.com
airtable, fetch
Zapier and Netlify function together to build a Twitter bot which tweets a dev article everyday
zapier, twitter
Run headless chrome in Netlify functions
headlesss chrome, puppeteer
A Netlify functions template for Apollo Server GraphQL API with MongoDB.
graphql, apollo, mongo, database
This working sample will return a single record in the response when a query string value is present (from the key "recid") or will return the first 20 records when no query string value is present. Notes: - Performs no validation on the record ID; invalid values will meet the catch condition - A sort configuration (by field "Year") is present, which may simply be omitted or revised to your need
airtable, javascript
hiding API tokens and parsing query strings with a practical usecase and writeup
dark sky, javascript