Functions examples
Featured
-
E-commerce with Nuxt and Stripe on Netlify
E-commerce with Nuxt and Stripe on Netlify Stripe payments for an example e-commerce store built with Nuxt Demo site Direct link to functions
Tagged: ecommerce, environment variables, nuxt, payments, stripe -
gatsby-and-netlify-functions
gatsby-and-netlify-functions Handling Static Forms, Auth & Serverless Functions with Gatsby on Netlify
Tagged: auth, ecommerce, gatsby -
Verify phone numbers
Verify phone numbers Verify phone numbers with Authy SMS
Tagged: SMS, auth
Browse by tag
All examples
-
Airtable GET request (single record response with Record ID in query string or first 20 without)
Airtable GET request (single record response with Record ID in query string or first 20 without) This working sample will return a single record in the response when a query string value is present...
Tagged: airtable, javascript -
airtable-netlify-short-urls
airtable-netlify-short-urls This is a simple short-url service that works with netlify functions and uses airtable.
-
Authenticating users with OAuth2
Authenticating users with OAuth2 Use serverless functions to authenticate a user by their Netlify account using the OAuth2 workflow. As used on Jamstack Explorers Direct link to function
Tagged: authentication, oauth -
BART Station Departures
BART Station Departures Get the SF BART Station Departures
-
Behance RSS feed
Behance RSS feed Fetch RSS feed from behance. This is a good example of keeping API keys secret by proxying request via a serverless API and keeping API keys out of the client.
-
bus-schedule-tracker
bus-schedule-tracker Tracking bus schedules
-
Check weather forcast
Check weather forcast Check the weather forcast with bugsnag for debugging. This function proxies to DarkSky for weather data.
-
Contact form with Airtable & Mailgun
Contact form with Airtable & Mailgun Process contact form submission and store in airtable
Tagged: airtable, database, email, mailgun -
contentful-authless-comments
contentful-authless-comments Contentful authless comments
Tagged: comments, contentful -
Create new user in firebase
Create new user in firebase Create new user in firebase admin
Tagged: database, firebase -
create-react-app-lambda
create-react-app-lambda Create React App with baked in Netlify functions support
Tagged: react, starter -
Creating an API with Hasura
Authenticating users with OAuth2 Create a custom REST API endpoint backed by PostgreSQL using Hasura, GraphQL, and a serverless function. As used on Learn With Jason Direct link to function
Tagged: api, database, graphql, hasura, postgresql, rest -
Dark Sky serverless function
Dark Sky serverless function hiding API tokens and parsing query strings with a practical usecase and writeup
Tagged: dark sky, javascript -
E-commerce with Nuxt and Stripe on Netlify
E-commerce with Nuxt and Stripe on Netlify Stripe payments for an example e-commerce store built with Nuxt Demo site Direct link to functions
Tagged: ecommerce, environment variables, nuxt, payments, stripe -
Fetch Airtable Records
Fetch Airtable Records This function uses Airtable as a content database and fetches the content to be rendered on aecstartups.com
Tagged: airtable, fetch -
Fetch crypto currency prices
Fetch crypto currency prices Get current bitcoin prices from localbitcoins.com
Tagged: bitcoin -
Fetch currency rates
Fetch currency rates Fetch currency rates from eurofxref
-
Fetch external API data
Fetch external API data Example of function that will fetch data from third party APIs
-
fetch-files-from-google-drive
fetch-files-from-google-drive List files from google drive API
Tagged: file-storage -
Fetch github repos graphQL
Fetch github repos graphQL get github repos from graphql endpoint
Tagged: github, graphql -
Fetch Instagram posts
Fetch Instagram posts Get recent Instagram posts via an authenticated API request
Tagged: instagram -
Fetch Unsplash images
E-commerce with Nuxt and Stripe on Netlify Build an infinite scroll image gallery with Gatsby and Netlify Functions Tutorial on Scotch.io Direct link to function
Tagged: gatsby, images, unsplash -
form-spam-filter
form-spam-filter Filter form spam and send to Zapier webhook
Tagged: spam, zapier -
form-to-function-to-sanity.io
form-to-function-to-sanity.io This is a simple example of how you can use Forms and Functions in Netlify to submit data to your Sanity.io project.
Tagged: forms, sanity.io -
gatsby-and-netlify-functions
gatsby-and-netlify-functions Handling Static Forms, Auth & Serverless Functions with Gatsby on Netlify
Tagged: auth, ecommerce, gatsby -
gatsby-starter-netlify-cms
gatsby-starter-netlify-cms 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.
Tagged: gatsby, netlify-cms, react, starter -
gatsby-stripe-store-starter
gatsby-stripe-store-starter Gatsby & Netlify functions stripe store
Tagged: ecommerce, gatsby, stripe -
get-items-from-cosmicjs
get-items-from-cosmicjs List out objects from cosmicjs
-
get-random-emoji
get-random-emoji Return a random emoji
-
get-weather-via-openweathermap
get-weather-via-openweathermap Get the weather for a location via an authenticated request to the Openweathermap API
Tagged: weather -
get-youtube-video-captions
get-youtube-video-captions Get youtube video captions from video ID
-
get-youtube-video-data
get-youtube-video-data Get youtube video data from video ID
-
GitHub Finder
GitHub Finder Serverless Implementation of GitHub Finder
Tagged: github -
GraphQL API Example
GraphQL API Example How to use Netlify functions for a GraphQL API
Tagged: API, graphql -
Handling file uploads to s3
Handling file uploads to s3 A function to get pre-signed s3 upload urls
Tagged: S3 -
Handling OAuth Flows
Handling OAuth Flows Using functions to handle OAuth login flows.
Tagged: oauth -
ifttt-to-flick-instagram-make-new-github-post
ifttt-to-flick-instagram-make-new-github-post Webhook from IFTTT when new Flickr photo with tag #blog create github file and post. Automated photo blog
Tagged: github, instagram -
intercom-as-oauth-login
intercom-as-oauth-login Oauth via intercom
Tagged: auth, intercom, oauth -
Invoke Github Action from Expo build done
Invoke Github Action from Expo build done When your Expo build is done, you can invoke a Github Action, for example, an action to upload the artifact to Testflight.
-
lookup-dns
lookup-dns DNS lookup of a site
Tagged: DNS -
mailchimp-landing-page
mailchimp-landing-page Landing page with mailchimp
Tagged: email, marketing -
Medium RSS feed
Medium RSS feed Fetch RSS feed from medium
-
Meetup Raffle
Meetup Raffle Draw raffle winners at your Meetup event via meetup.com API
Tagged: meetup -
mongodb-and-functions
mongodb-and-functions Using mongoDB + functions
Tagged: database, mongo -
MyAnimeList search API
MyAnimeList search API Search MyAnimeList API
-
Netlibox
Netlibox Netlify + Dropbox using functions + redirects to validate the webhook
-
Netlify Event Driven functions
Netlify Event Driven functions Using Netlify Event Driven functions to react to Netlify events
Tagged: netlify -
Netlify form notifications to slack
Netlify form notifications to slack Ping Slack on new Netlify comments
Tagged: slack -
netlify-functions-apollo-graphql
netlify-functions-apollo-graphql Deploying Apollo graphql on Netlify Functions
Tagged: graphql -
netlify-functions-as-zips
netlify-functions-as-zips Functions as zips
Tagged: packaging -
netlify-functions-crud-app-with-fauna
netlify-functions-crud-app-with-fauna Using faunaDB as datastore
Tagged: CRUD, database, fauna -
netlify-functions-gated-sites
netlify-functions-gated-sites Gating multiple sites with Okta
Tagged: auth, okta -
netlify-functions-mongodb-graphql
netlify-functions-mongodb-graphql A Netlify functions template for Apollo Server GraphQL API with MongoDB.
Tagged: apollo, database, graphql, mongo -
netlify-identity-whitelist-emails
netlify-identity-whitelist-emails Validate emails on Netlify Identity signup
Tagged: auth, identity -
Newsletter subscription using ConvertKit
Newsletter subscription using ConvertKit Handles form submissions on the Jason.AF site and adds the user to ConvertKit. Full site code Direct link to function
Tagged: convertkit, environment variables, forms, subscriptions -
nuxt-netlify-functions-example
nuxt-netlify-functions-example Nuxt.js example for running Netlify functions locally in a dev environment and as a generated static site deployed to Netlify.
Tagged: mailgun, nuxt, vuejs -
password-protected-netlify-build-trigger
password-protected-netlify-build-trigger Trigger Netlify deploy with password protected function
Tagged: build -
Payment Processing via Stripe
Payment Processing via Stripe Serverless function to process payments via Stripe.
Tagged: ecommerce -
ping-superfeedr-on-deploy
ping-superfeedr-on-deploy Ping Superfeedr RSS, Atom, or JSON feeds on successful deploy. Uses event driven functions
-
pocket-newsletter-lambda
pocket-newsletter-lambda Example Lambda to fetch all "newsletter" posts from Pocket.
Tagged: getpocket -
post-a-tweet
post-a-tweet Post a tweet to Twitter
Tagged: twitter -
process-payment-via-stripe
process-payment-via-stripe Accept stripe payments
Tagged: ecommerce, payment, stripe -
process-stripe-payment
process-stripe-payment Process a stripe payment
Tagged: ecommerce, stripe -
process-upload-send-to-trello-slack-mailgun
process-upload-send-to-trello-slack-mailgun Process form file upload and send to results to trello, slack, & mailgun
Tagged: email, file-processing -
progressive-form-enhancement-via-functions
progressive-form-enhancement-via-functions Handle Ajax & normal form POST submissions via functions
Tagged: forms -
Progressive Mailchimp subscription form
Progressive Mailchimp subscription form Progressive sign-up form for Mailchimp with Netlify
Tagged: email, forms -
proxy-blocked-google-analytics
proxy-blocked-google-analytics Proxy pageviews to google analytics incase google analytics is blocked on the client side
Tagged: marketing, proxy -
proxy-tracking-data-to-loggly
proxy-tracking-data-to-loggly proxy arbitrary tracking data to a log management service Loggly
Tagged: marketing, proxy -
pusher-auth
pusher-auth Authenication for pusher pub/sub
-
Rest API example
Rest API example Using functions as a REST backend.
Tagged: API, REST -
save-data-to-google-sheets
save-data-to-google-sheets Save data to Google Sheets
-
save-twitch-clips-save-to-postgres
save-twitch-clips-save-to-postgres Grab clips from twitch and insert into postgres database. Explore the handler function and the Postgres database management
Tagged: database, postgres, twitch -
scrape-twitter-avatars
scrape-twitter-avatars Scrape mobile twitter HTML to return the URLs of a user avatar
Tagged: twitter -
send-custom-netlify-build-slack-notification
send-custom-netlify-build-slack-notification Custom netlify build status in slack
Tagged: build -
send-email-via-aws-sns
send-email-via-aws-sns Sends a question submitted from HTML question form via AWS SES. This example connects to an external AWS account
Tagged: AWS, email -
send-email-via-nodemailer
send-email-via-nodemailer send email via nodemailer
Tagged: email -
send-email-via-sendgrid
send-email-via-sendgrid send email via sendgrid
Tagged: email -
Send email via sendmail pkg
Send email via "sendmail" pkg Send email with no STMP server via "sendmail" pkg
Tagged: email -
Sending email
Sending email Sending emails via serverless functions
Tagged: email -
Sending text messages
Sending text messages Using functions for SMS sending text messages via Twilio
Tagged: SMS, Twilio -
serverless-auth-strategies
serverless-auth-strategies How to protected & scoped down functions to specific users
Tagged: auth -
Serverless Telegram Bot
Serverless Telegram Bot Create serverless Telegram Bot with DB to keep track of users using Netlify Functions and FaunaDB
Tagged: faunadb, serverless, telegram -
serverside-hashing
serverside-hashing Serverside hashing via crypto
Tagged: crypto -
Serving dynamic content via path params
Serving dynamic content via path params Render custom html based on function path params
Tagged: HTML, SSR -
Serving dynamic content via query params
Serving dynamic content via query params Render custom html based on function query params
Tagged: HTML, SSR -
Shopify ecommerce
Shopify ecommerce Netlify functions + shopify for an ecommerce store
Tagged: ecommerce, shopify -
shorten-links-with-bitly
shorten-links-with-bitly Shorten links with the bit.ly API
-
Slack channel invites
Slack channel invites Send slack channel invites
Tagged: marketing, slack -
staticman-netlify-functions
staticman-netlify-functions Add dynamic content (comments, email subscriptions) to your static site.
Tagged: -
Sending Stripe purchases to a fulfillment service using Sendgrid
E-commerce with Nuxt and Stripe on Netlify Providing a webhook for sending Stripe purchases to a fulfillment service using Sendgrid. Implemented on learnwithjason.dev View all the site code Direct...
Tagged: ecommerce, email, payments, stripe, webhook -
stripe-payment-processing
stripe-payment-processing stripe payment processing
Tagged: ecommerce, payment -
super-simple-start-serverless
super-simple-start-serverless A Super simple start to serverless from Kent C. Dodds
Tagged: functions, serverless -
swambda-openapi
swambda-openapi Integrate OpenAPI (swagger) specifications and lambda into an easy-to-use routing tier
-
textjoy
textjoy Weekly inspirational messages via SMS
Tagged: SMS, SaaS, ecommerce, stripe -
tokbox-session-manager
tokbox-session-manager Build live interactive video, voice and messaging into your web and mobile apps via tokbox
-
token-hider-via-proxy
token-hider-via-proxy Token hider api passthrough proxy
-
tweet-a-dev-article-everyday
tweet-a-dev-article-everyday Zapier and Netlify function together to build a Twitter bot which tweets a dev article everyday
Tagged: twitter, zapier -
url-shortening-service
url-shortening-service URL shortening example using Netlify Forms and Netlify Functions
Tagged: marketing -
Using Function middleware
Using Function middleware Using function middleware to re-use logic across multiple functions via middy.js
Tagged: middleware, middy -
Using functions for dynamic redirects
Using functions for dynamic redirects Handle dynamic redirects with serverless functions
Tagged: redirect -
Using functions for GraphQL APIs
Using functions for GraphQL APIs Using functions for GraphQL APIs
Tagged: API, graphql -
Using functions for returning images
Using functions for returning images How to create a function to return an image instead of json.
Tagged: images -
Using functions to set cookies
Using functions to set cookies Using functions to set browser cookies.
Tagged: cookies -
using-s3-as-a-database
using-s3-as-a-database Example of using AWS s3 as a datastore
Tagged: AWS, S3, database -
verify-okta
verify-okta Verify an Okta token with Go
Tagged: auth -
Verify phone numbers
Verify phone numbers Verify phone numbers with Authy SMS
Tagged: SMS, auth -
Web scraping via functions
Web scraping via functions This lesson will walk through creating a function scrape websites.
Tagged: scraping