vercel
metascraper
Our great sponsors
vercel | metascraper | |
---|---|---|
475 | 5 | |
12,023 | 2,216 | |
1.9% | 1.1% | |
9.8 | 8.9 | |
6 days ago | 5 days ago | |
TypeScript | HTML | |
Apache License 2.0 | 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.
vercel
-
Next.js: Crafting a Strict CSP
function getContentSecurityPolicyHeaderValue( nonce: string, reportUri: string, ): string { // Default CSP for Next.js const contentSecurityPolicyDirective = { 'base-uri': [`'self'`], 'default-src': [`'none'`], 'frame-ancestors': [`'none'`], 'font-src': [`'self'`], 'form-action': [`'self'`], 'frame-src': [`'self'`], 'connect-src': [`'self'`], 'img-src': [`'self'`], 'manifest-src': [`'self'`], 'object-src': [`'none'`], 'report-uri': [reportUri], // for old browsers like Firefox 'report-to': ['csp'], // for modern browsers like Chrome 'script-src': [ `'nonce-${nonce}'`, `'strict-dynamic'`, // force hashes and nonces over domain host lists ], 'style-src': [`'self'`], } if (process.env.NODE_ENV === 'development') { // Webpack use eval() in development mode for automatic JS reloading contentSecurityPolicyDirective['script-src'].push(`'unsafe-eval'`) } if (process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview') { contentSecurityPolicyDirective['connect-src'].push('https://vercel.live') contentSecurityPolicyDirective['connect-src'].push('wss://*.pusher.com') contentSecurityPolicyDirective['img-src'].push('https://vercel.com') contentSecurityPolicyDirective['font-src'].push('https://vercel.live') contentSecurityPolicyDirective['frame-src'].push('https://vercel.live') contentSecurityPolicyDirective['style-src'].push('https://vercel.live') } return Object.entries(contentSecurityPolicyDirective) .map(([key, value]) => `${key} ${value.join(' ')}`) .join('; ') }
-
VERCEL and the Internet Computer
This is a demo project to demonstrate how a Web2 frontend hosted on VERCEL can access a Motoko backend canister on the Internet Computer using Server Side Rendering (SSR).
-
Start your own (side) business with open-source in mind
Vercel is an open-source platform for hosting and deploying web applications and websites.
Vercel - [ Star on GitHub ]
-
100+ FREE Resources Every Web Developer Must Try
Vercel: Deploy websites and applications with automatic deployments.
-
Creating an NFT minting Farcaster frame on Solana
Then, head over to Vercel and import the repository. Once you have imported the repository, head over to the environment variables and add the following environment variables:
-
From Messy to Memorable: Shorten Your Links, Boost Your Brand
Vercel – deployments
-
The 2024 Web Hosting Report
Platform as a Service (PaaS) is a term that captures tools built for developers to use where they don’t need devops engineers to deploy to the cloud. Heroku was the “category-defining” product here, and modern successors include Vercel, Render, Railway, Replit, platform.sh, Aptible, Northflank, and more. We have to say that there are some amazing products in this category. Developer Experience is at a premium!
-
Top 20 Free Static Web Hosting Services in 2024 ⚡️
SSL encryption and integration with CMSs like Contentful. Vercel
-
Getting started with NextJS and Github API
Next.js is a popular and highly regarded open-source React framework which was created by Vercel that simplifies the process of building robust and efficient web applications. Here's why it has garnered so much hype:
metascraper
-
Show HN: AboutIdeasNow – search /about, /ideas, /now pages of 7k+ personal sites
Yep but there is a fallback to metascraper [0] which does check the HTML tags. However the fallback didn't work in case GPT returns a 1970 date -- I just fixed this! [1]
I think you can now remove the date from your post content and it should still work. If you submit your website again it should do a re-scrape if you changed the content text. Thanks for catching this :)
[0] https://metascraper.js.org/#/
[1] https://github.com/lindylearn/aboutideasnow/commit/8b0ea5b46...
-
Creating a serverless function to scrape web pages metadata
First of all, we'll use the got npm package to fetch the website content (feel free to use any other fetching library), and the metascraper npm package to extract the metadata:
What are some alternatives?
flyctl - Command line tools for fly.io services
node-canvas - Node canvas is a Cairo backed Canvas implementation for NodeJS.
fake-store-api - FakeStoreAPI is a free online REST API that provides you fake e-commerce JSON data
vite - Next generation frontend tooling. It's fast!
create-react-app - Set up a modern web app by running one command.
inertia - Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
supabase - The open source Firebase alternative.
Django - The Web framework for perfectionists with deadlines.
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]
Meteor JS - Meteor, the JavaScript App Platform
React - The library for web and native user interfaces.