examples
unlock
Our great sponsors
examples | unlock | |
---|---|---|
32 | 38 | |
3,286 | 807 | |
3.7% | 0.2% | |
8.6 | 9.9 | |
5 days ago | 6 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
examples
-
Direct Postgres connection to Supabase from Vercel Edge in Next.js
Is anyone aware of a way to make a direct connection to Postgres with transaction support on Vercel Edge functions? The 'pg' package doesn't work on edge for me. The obvious answer would be @vercel/postgres but I find their lack of documentation rough and for whatever reason I can't get it to connect on my local computer using the Supabase-provided local database connection string. This is apparently a known issue (https://github.com/vercel/storage/issues/123, https://github.com/vercel/examples/issues/701) where in order to make this (or neon's package) work you need a WebSocket proxy? Is a direct Postgres connection from edge just impossible right now? Or do others have it working somehow?
-
Does anyone have any experience with using nextjs as frontend and flask as backend?
I have cloned this repo: https://github.com/vercel/examples/tree/main/python/nextjs-flask. I am using the repo to make an api call from the front end to the back end. when running fetch("/api") I get an error with status 500, why is that?
-
12 Super Cool Machine Learning Projects that you didn't know are Open Source and made of JavaScript
Demo: Alt Text Generator GitHub: Alt Text Generator Repository
-
Vercel Launches 3 New Storage Options for Your Next Project!
I copied the Template that they provide for the testing, you can get the template source on GitHub. I modified its page.tsx file just to set and get a value from the database.
-
Existing NEXTJS (T3) Site + Monolithic Wordpress-Woocommerce Shop -howto AUTHENTICATION?
Take a look at this example: https://github.com/vercel/examples/tree/main/solutions/subdomain-auth
-
Update on connection pooling with Vercel
So AFAIK now with Vercel Postgres is possible to have connection pooling using prisma out of the box, this means that no more bottlenecks with lots of clients connected to the web app right? Source: https://github.com/vercel/examples/blob/main/storage/postgres-prisma/prisma/schema.prisma
-
How to Revalidate PostgreSQL Server Component in Next JS?
I have a server component that reads a database table in this new way (Vercel Next JS Postgres Example). I also have a client component that updates that calls a fetch to update the same table. How can I ensure that the data in my server component doesn't grow stale?
-
How to use Redis with Vercel Edge
Additionally, Redis can be used in combination with Vercel Edge cache using: https://github.com/vercel/examples/tree/main/edge-api-routes/cache-control
- Convert serverless function to an Edge function.
-
Step by step: Multi-Tenant App with Next.js
Hostname rewrites example
unlock
-
Authenticate Ghost Subscribers Through API
Unlock is a great decentralized tool that doesn't require members to be familiar with web3 to get started.
-
Crypto bros
This is exactly how something like Unlock Protocol works.
-
Favorite resources for understanding and using IPFS in real world scenarios.
https://unlock-protocol.com/ nft membership
-
Insider Trading in Cryptocurrency Markets
I'll name you several.
Copied from another reply I made, here's some projects to check out:
- Lens Protocol [https://lens.xyz/ (one example implementation: https://lenster.xyz/)] is an early social network built on top of Polygon.
- Farcaster [https://farcaster.xyz/] is another one, that takes a more hybrid approach of using Ethereum for trustless identity, but stores social stuff in a "sufficiently decentralized" way.
- ENS [https://ens.domains/] is a universal username system.
- Unlock Protocol [https://unlock-protocol.com/] uses NFTs for tradeable subscriptions, event tickets, etc.
- Radicle [https://radicle.xyz/] is a decentralized Github basically, that (optionally) uses Ethereum to store the Git HEAD of a "project" essentially.
- Arweave [https://www.arweave.org/] stores files permanently using a cool "endowment" mechanism. Currently, the network has secured its storage for like 1000 years in theory.
- Ask HN: Are there any blockchain projects NOT around cryptocurrencies?
- UnLock
-
On Anti-Crypto Toxicity
If you haven't seen it, you were not interested in looking and I doubt that any "evangelist" is going to change your mind.
Anyway, if you are honestly open to change your mind, go take a look at ENS domains [0] and unlock protocol [1]. Both of these are applications that use NFTs "properly", and allow us to do things that are currently possible only with a central authority.
[0]: https://ens.domains
[1]: https://unlock-protocol.com
-
Open source Patreon-style thingy
If you want to go with the crypto route, that's the main goal of Unlock Protocol. It's basically one of the first use cases (beyond ENS domains) where NFTs actually make sense.
-
Showing hidden content in a website only to NFT holders.
Look at Unlock Protocol (https://unlock-protocol.com/) and Lit (https://litprotocol.com/) for token gated content
-
Can ownership to NFT be used as Login access to a website or specific content?
All their code is public, https://github.com/unlock-protocol/unlock, you just need to follow the MIT license https://github.com/unlock-protocol/unlock/blob/master/LICENSE
What are some alternatives?
rwa-faunadb-reaflow-nextjs-magic - Real-world app example - Real-time Editor, using FaunaDB (realtime stream), Reaflow (graph editor), Next.js framework and a bit of Magic (auth)!
eattheblocks - Source code for Eat The Blocks, a screencast for Ethereum Dapp Developers
apps - daily.dev application suite
truffle - :warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
edge-functions
baseline - The Baseline Protocol is an open source initiative that combines advances in cryptography, messaging, and distributed ledger technology to enable confidential and complex coordination between enterprises while keeping data in systems of record. This repo serves as the main repo for the Baseline Protocol, containing core packages, examples, and reference implementations.
platforms - A full-stack Next.js app with multi-tenancy and custom domain support. Built with Next.js App Router and the Vercel Domains API.
hashed-timelock-contract-ethereum - Hashed Timelock Contracts for ETH, ERC20 and ERC721 on Ethereum
developer-portal - Open source repo for the Sitecore Developer Portal (https://developers.sitecore.com)
ens - Implementations for ENS core functionality: The registry, registrars, and public resolvers.
watch-this
uniswap-v3-flashswap - example code of uniswapV3 flash swap/loan with hardhat and ethersjs