platforms
supabase-js
Our great sponsors
platforms | supabase-js | |
---|---|---|
16 | 28 | |
5,197 | 2,819 | |
4.1% | 4.6% | |
8.5 | 8.2 | |
26 days ago | 4 days ago | |
TypeScript | TypeScript | |
- | 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.
platforms
-
Problem with SubDomains (Multitenancy)
I am trying to add subdomains to my project where I am trying to have [slug].domainname.com and then also just the regular dominname.com, I structured my code app router to be app, then api, [subdomain], and home. then i created middleware based on the platforms template code https://github.com/vercel/platforms/tree/main Heres the middleware: import { NextRequest, NextResponse } from "next/server"; export const config = { matcher: [ /* * Match all paths except for: * 1. /api routes * 2. /_next (Next.js internals) * 3. /_static (inside /public) * 4. all root files inside /public (e.g. /favicon.ico) */ "/((?!api/|_next/|_static/|_vercel|[\\w-]+\\.\\w+).*)", ], }; export default function middleware(req) { const url = req.nextUrl;
-
Ask HN: Which open-source editor would you choose to build something like Notion
Oooh, Novel is also being used in Vercel's Platforms Starter Kit
https://github.com/vercel/platforms/tree/main
-
Help needed for a Multi Tenant project.
Vercel Platforms Starter Kit will get you a lot of the way there: https://github.com/vercel/platforms
- Are there any best practices Next projects out there?
-
$15k MRR for Instatus + more news
$15k MRR for Instatus A big congratulations to Ali Salah for reaching $15k MRR with his uptime status tool Instatus. It lets you show users a status page and helps you communicate with users if your app goes down. Nice seeing an indie hacker doing well! Meta launches Threads Mark Zuckerburg has capitalized on the chaos at Twitter to launch a copycat, Threads. At the moment you can only get an account from signing in with your Instagram account. It allows you to import all your Instagram followers although it seems like a lot of people don't use Instagram to follow tech accounts so you might need to start from scratch. There is no desktop app at the moment. Threads has hit 30 million users in 48 hours but is banned in the EU because of all the data it collects from users i.e. browsing history, financial transaction history, health data. Twitter has threatened legal action against Meta Veed launches AI avatars Veed, the online video editing tool, has launched its AI avatar feature. It's pretty mad how quickly things have advanced but now you can pick an AI-generated face, write some text and you now have a video of someone talking for you. For people who are camera shy, this could be a great way of creating YouTube videos! Just write some text and you don't have to show your face on camera. Veed got Product of the Day on Product Hunt with this tool: https://www.producthunt.com/posts/veed-ai-avatars New NextJS template Vercel have released the Platform Starter Kit v.2 which lets you make a multi-tenant site with NextJS https://github.com/vercel/platforms For instance, you might want to make a SaaS where people can choose their own sub domains or custom domains like Noah Bragg did with his Notion-based blogging tool Potion
-
Next.js Weekly #14: Faster Dev Server, Platform Starter Kit v2, Misconceptions about Client Components [👇 all news in comments]
Platforms Starter Kit v2
- Show HN: Multi-tenant SaaS starter kit with custom domains
-
Explain me multi tenant and subdomains in nextjs
Check out Vercel Platform Starter Kit. The main file you want to be looking at is middleware.tsx. I’m working on a saas using subdomains as well so feel free to reach out.
-
Trying to create a website where if users signup will create a subdomain using React JS and Node JS using server less architecture. Any help would be appreciated.
https://vercel.com/guides/nextjs-multi-tenant-application https://github.com/vercel/platforms
- How can we provide a custom domain name for our clients?
supabase-js
- Chrome Extension MV3 Template : Supabase Auth, Plasmo, Tailwinds CSS & Shadcn UI
-
Supabase Beta May 2023
[Edge Functions] Custom domains and vanity domains support for Edge Functions. PR
-
How do errors look like? Handling errors.
First of all, the code you provided is not directly supabase, but is whatever is provided from the javascript library. The auth part is then redirecting to the gotrue-js library, and as seen here [Gotrue-JS#L238] it returns a `Promise` and that specific type is declared here Where we see it could be two return types. ```ts | { data: { user: User | null session: Session | null } error: null } | { data: { user: null session: null } error: AuthError }
-
Authentication in Next.js with Supabase and Next 13
Next up, Supabase released v2 of their JavaScript client library (supabase-js), which brought with it a number of developer experience type improvements, and streamlined how we use some of the API's. A number of methods were also deprecated in this new release, which we'll cover later in this guide.
-
Develop a Cryptocurrency Tracking WebApp with Instant Email Notifications
We install the Supabase client library and also Chakra-UI which we will be using to build our React components.
-
Sign in with Apple using Supabase and Ionic Angular
The last part is the easiest as we simply need to connect Supabase to our Ionic app and call one function. Get started by bringing up a new Ionic app and install the Supabase JS client:
- Lucia, the authentication library for SvelteKit, had tons of updates in the last month - It now supports the latest version of SvelteKit and allows you to run load functions in parallel for faster load times (even when using auth)!
-
Using env. variables without VITE_ prefix
Under src/lib I have a .ts file where I create a supabase client inside.
-
Building In Public: Cartta Tech Stack
First and foremost, the language and framework – Typescript & React. Typescript is a must for a project of this size. It provides safety and peace of mind as I iterate quickly to solve bugs and add new features. React is a by-product of the next two things I will mention, Next and Remix. Both of these are higher abstractions on top of React and supply incredible tooling to build fast server side rendered applications. Picking one or the other was driven by my database and auth provider, Supabase. I could have tried to make it work with Remix, but there was already an authentication helper for Next from the Supabase community so I decided on Next. Still using Remix for this current website since I do love Remix so much.
-
Idea Validation - No Code RestAPI creator from relational DB
Have a look at https://postgrest.org/en/stable/. They do something in this direction and e.g. supabase.io uses them. Their approach is, if you have a database you have a REST API.
What are some alternatives?
nextacular - An open-source starter kit that will help you build full-stack multi-tenant SaaS platforms efficiently and help you focus on developing your core SaaS features. Built on top of popular and modern technologies such as Next JS, Tailwind, Prisma, and Stripe.
storage - S3 compatible object storage service that stores metadata in Postgres
nextjs-subscription-payments - Clone, deploy, and fully customize a SaaS subscription application with Next.js.
Grafana - The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
nafeez.xyz - ⚡ My personal website.
DefinitelyTyped - The repository for high quality TypeScript type definitions.
briefkasten - 📮 Self hosted bookmarking app
auth - A JWT based API for managing users and issuing JWT tokens
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
supabase-nextjs-auth - Example project implementing authentication, authorization, and routing with Next.js and Supabase
examples - Enjoy our curated collection of examples and solutions. Use these patterns to build your own robust and scalable applications.