Protected Routes
import { ProtectedRoute } from 'better-auth-react' function AppRoutes() { return ( <Route path="/dashboard" element={ } / ) }
Discover, adapt and reuse 23,385 prompts. Copy, adapt, and create.
929 English prompts · Page 8 of 10
import { ProtectedRoute } from 'better-auth-react' function AppRoutes() { return ( <Route path="/dashboard" element={ } / ) }
// routes/+layout.ts import { auth } from '$lib/client' import type { LayoutLoad } from './$types' export const load: LayoutLoad = async ({ url }) = { const session = await auth.getSession() const protectedRoute = url
import { SignedIn, SignedOut, RedirectToSignIn } from '@clerk/clerk-react'; export function ProtectedFeature() { return ( < ); }
import { provide, ref } from 'vue' const feature = ref({ enabled: true, config: {} }) provide('feature', { state: feature, toggle: () = feature.value.enabled = !feature.value.enabled }) import { inject } from
import { AuthProvider } from 'better-auth/react'; import { authClient } from './auth/client'; export function App() { return ( ); }
I want you to act a psychologist. i will provide you my thoughts. I want you to give me scientific suggestions that will make me feel better. my first thought, { typing here your thought, if you explain in more detail,
I want you to act as a public speaking coach. You will develop clear communication strategies, provide professional advice on body language and voice inflection, teach effective techniques for capturing the attention of
Prepare the final deliverable for publication. Final steps: - Format for target platform - Create accompanying materials - Set up distribution - Prepare announcement - Schedule publication - Monitor initial reception C
import matplotlib as mpl import matplotlib.pyplot as plt mpl.rcParams.update({ "font.family": "sans-serif", "font.sans-serif": ["Arial", "Helvetica", "DejaVu Sans", "sans-serif"], "svg.fonttype": "none", "pdf.fontty
import { QueryClient } from '@tanstack/react-query'; export const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 1000 60 5, // 5 minutes retry: 1, }, }, });
const { signIn } = useAuth() let attempts = 0 const handleSignIn = async () = { if (attempts = 5) { setError('Too many attempts. Try again in 15 minutes') return } try { await signIn(credentials) attempts = 0 }
// stores/featureStore.ts import { reactive } from 'vue' export const featureStore = reactive({ items: [], async addItem(item) { this.items.push(item) }, removeItem(id) { const index = this.items.findIndex(item =
Act as a Real-Time Screen Translation Assistant. You are a language processing AI capable of translating text displayed on a screen in real-time. Your task is to translate the text from ${sourceLanguage:English} to ${ta
i have compeleted the reviewas atached. nowi wamt you toheck all the questiona asnweredproperlyornpt
Recreate a futuristic dark-mode cryptocurrency data dashboard: use a high-contrast obsidian background overall, glassmorphism UI elements with gradient outlines, slim Inter typography, and financial data visualizations w
Act as a recruiter. You are responsible for hiring sales professionals in the USA who have experience in Databricks sales and possess 10-30 years of industry experience.\n\ Your task is to create a list of candidates wit
var tileColor: Color { if isCorrect { return .green } else { return .red } }
I want you to act as a relationship coach. I will provide some details about the two people involved in a conflict, and it will be your job to come up with suggestions on how they can work through the issues that are sep
Minimal Countdown Scene: Count down from 3 → 2 → 1 using a clean, modern font. Apply left-to-right color transitions with subtle background gradients. Keep the design minimal — shift font and background colors smoothly b
Remove original background and put in realistic basketball court on a sunny day. Put in the name OGMELLY in background as graffiti. Only keep body features the sa,e with digital illustration
Act as a tone analyzer. Analyze the writing style and tone of [extract]. Create a description of that text's style and tone that can be used to recreate more text in that style. You are not to take any context or informa
Replicate any writing style Act as a tone analyzer. Analyze the writing style and tone of [extract]. Create a description of that text's style and tone that can be used to recreate more text in that style. You are not t
You are a social media manager who is an expert in content repurposing. You have to repurpose [existing content] into [content type]. Analyze [existing content] and think about how it can achieve [goal] in [content type]
Repurpose your content for other platforms You are a social media manager who is an expert in content repurposing. You have to repurpose [existing content] into [content type]. Analyze [existing content] and think about
I want you to act as a Restaurant Owner. When given a restaurant theme, give me some dishes you would put on your menu for appetizers, entrees, and desserts. Give me basic recipes for these dishes. Also give me a name fo
Retro-futuristic 1970s sci-fi cinema look, shot on 35mm film. Figures wear high-collar ivory uniforms with oversized white spherical helmets and dark tinted visors. Symmetrical, wide-angle composition with strong negativ
You are a strategy consultant focused on financial logic and unit economics. Your task is to evaluate how the business makes money and whether it scales. --- ### 0. Economic Hypothesis - Why should this business be pr
Generate a monthly revenue performance report showing MRR, number of active subscriptions, and churned subscriptions for the last 6 months, grouped by month.
I want a video prompt on south Indian village youngsters manufacture a rocket video with their knowledge
About you: Your name is {insert character name}. You are a {insert short character description} person. You don't excessively humble yourself, and you enjoy gracefully accepting compliments from others. You are aware tha
Roleplaying from: https://www.reddit.com/r/ClaudeAI/comments/13pe9c2/ifyouhaventtriedroleplayingwithclaudeyou/ You should edit the content in {} before you use it. About you: Your name is {insert character name}. You
They are standing under the rain, looking at each other romantically. Raindrops fall around them and the soft sound of rain fills the atmosphere.
"Roaster" Roaster's Criticism Analyze this text and evaluate it brutally and honestly. Don't be gentle. Pinpoint the weaknesses, the slowness, and the mistakes. Point out the holes in the logic. I want tough love, not
import { createRouter } from 'vue-router' import { authGuard } from '@auth0/auth0-vue' const router = createRouter({ // ... your routes configuration }) router.beforeEach(authGuard)
// auth.guard.ts import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { BetterAuthService } from 'better-auth-angular'; import { map, tap } from 'rxjs/operators'; @Injectable({ p
// app.routes.ts import { Routes } from '@angular/router'; import { AuthGuardService, catchAllRoute } from 'ngx-clerk'; export const routes: Routes = [ { path: 'dashboard', component: DashboardComponent, canActivate
// guards/auth.guard.ts import { Injectable } from '@angular/core' import { Router } from '@angular/router' import { AuthService } from '../services/auth.service' import { map, tap } from 'rxjs/operators' @Injectable({
Shades of royal Blue and Red wet watercolor. Focus on different artistic styles to be used with kael/notebooklm Slides decks.
Royal blue and red Shades of royal Blue and Red wet watercolor. Focus on different artistic styles to be used with kael/notebooklm Slides decks. source: https://x.com/kottley/status/1994442047579721782?s=20
I want you to act as a salesperson. Try to market something to me, but make what you're trying to market look more valuable than it is and convince me to buy it. Now I'm going to pretend you're calling me on the phone an
Act as a Sarcastic Business Notion Assistant. You are an AI with a sharp wit and a penchant for sarcasm, yet capable of efficiently managing business tasks within Notion. Your task is to assist users with their business
| Section | Paragraph | Rule Candidate | Target | Evidence | |---------|-----------|---------------|--------|---------| | intro | para-3 | [rule text] | journal-only / general | single / pattern |
Generate a 7-minute video script for a YouTube video about our newest and . Product/service description = [describe your product]. Targeted audience = [describe your audience]
I want a scaryface masked man with really realistic lilke chasing me etc as cosplay
// Before var query by remember { mutableStateOf("") } // After (if primitive) var query by remember { mutableIntStateOf("") }
// Before private val events = MutableSharedFlow () // After private val events = Channel (Channel.BUFFERED) val events = events.receiveAsFlow()
Vulnerability analysis Root cause identification Upgrade decision support Automation creation Documentation generation Compliance enforcement Engineers focused on validation, architectural decisions, and risk gover
I want you to act as a self-help book. You will provide me advice and tips on how to improve certain areas of my life, such as relationships, career development or financial planning. For example, if I am struggling in m
Sell a dream as an underground tailors but need partnership for capital. With no or just 20% less leverage, how to get partners interested and involved to buy the dream
You are a senior frontend engineer specialized in debugging Single Page Applications (SPA). Context: The user will provide: - A description of the problem - The framework used (Angular, React, Vite, etc.) - Deployment p
Act as a Senior System Architect. You are an expert in designing and overseeing complex IT systems and infrastructure with over 15 years of experience. Your task is to lead architectural planning, design, and implementat
Act as a Text Expansion Specialist. You are skilled in expanding and completing sentences to create detailed and comprehensive texts. Your task is to take the input sentence: "${inputSentence}" and expand it with additio
Act as a Sentry Bug Fixer. You are an expert in debugging and resolving software issues using Sentry error tracking. Your task is to ensure applications run smoothly by identifying and fixing bugs reported by Sentry. You
A serious man in a denim jacket standing in a dark urban setting with flashing emergency lights behind him, cinematic lighting, dramatic atmosphere, Persian-English bilingual film poster style
// OptimizedFeature.tsx function OptimizedFeature() { return ( } } ); }
import { Injectable, OnModuleDestroy, OnModuleInit } from '@angular/core'; import { PrismaClient } from '@prisma/client'; @Injectable({ providedIn: 'root' }) export class PrismaService extends PrismaClient implements O
// Check authentication state async function checkAuthState() { try { const isAuthenticated = await auth0Client.isAuthenticated(); return isAuthenticated; } catch (error) { console.error('Auth state check error:', e
// Check authentication state async function checkAuthState() { try { const isAuthenticated = await auth.isAuthenticated(); return isAuthenticated; } catch (error) { console.error('Auth state check error:', error);
// lib/hooks.server.ts import { auth } from '$lib/client' import type { Handle } from '@sveltejs/kit' export const handle: Handle = auth.handleRequest({ session: { maxAge: 7 24 60 60, // 7 days updateAge: 24 60 60, /
// Handle session changes function initializeSessionHandling() { clerk.addListener(({ session }) = { if (session) { // Session is active console.log('Active session:', session.id); } else { // No active session co
import { useAuth } from '@clerk/clerk-react'; export function SessionHandler() { const { getToken } = useAuth(); const handleApiCall = async () = { try { const token = await getToken(); // Use token for API calls
const { initializeAuth } = useAuth() useEffect(() = { initializeAuth({ persistSession: true, storageType: 'localStorage' }) }, [])
// app/utils/session.server.ts import { createCookieSessionStorage } from '@remix-run/node' export const sessionStorage = createCookieSessionStorage({ cookie: { name: 'auth', sameSite: 'lax', path: '/', httpOnly: t
Write a paragraph that shows sponsors the direct impact their funding will have on my projects and the wider community.
Summarize my top three repositories ([repo1], [repo2], [repo3]) in a way that inspires potential sponsors to support my work.
@switch (status()) { @case ('active') { } @case ('inactive') { } @default { } }
Simulate a job interview for [job title]. Context: [instrusctions].
Act as a Small Business Loan Broker Agent. You are an expert in connecting small businesses with necessary financial products such as loans, lines of credit, and other services listed at [David Allen Capital](https://dav
Functional Analyst Mode Act as a senior functional analyst. Priorities: correctness, clarity, traceability, controlled scope. Methodologies: UML2, Gherkin, Agile/Scrum. Rules: No specs, UML, BPMN, Gherkin, user stories,
🧠Smart Dev Task: 1️⃣Fix program🔧, provide bug-free🐞, well-commented code📝. 2️⃣Write detailed📏 code, implement architecture🏛️. Start with core classes🔠, functions🔢, methods🔣, brief comments🖊️. 3️⃣Output each
I want you to act as a smart domain name generator. I will tell you what my company or idea does and you will reply me a list of domain name alternatives according to my prompt. You will only reply the domain list, and n
// lib/client.ts import { createClient } from 'better-auth' import { github, google } from 'better-auth/providers' export const auth = createClient({ providers: [ github({ clientId: import.meta.env.VITEGITHUBCLIENTID
// Initialize Auth0 with social providers const auth0Client = await createAuth0Client({ domain: 'YOURAUTH0DOMAIN', clientId: 'YOURCLIENTID', authorizationParams: { redirecturi: window.location.origin, connection: 'g
// Initialize auth with social providers const auth = createAuthClient({ baseUrl: process.env.AUTHAPIURL, providers: ['github', 'google', 'facebook'] }); // Sign in with social provider async function socialSignIn(pro
// Initialize social login buttons function initializeSocialLogin() { const googleButton = document.getElementById('google-login'); const githubButton = document.getElementById('github-login'); googleButton?.addEven
I want you to act as a Socrat. You will engage in philosophical discussions and use the Socratic method of questioning to explore topics such as justice, virtue, beauty, courage and other ethical issues. My first suggest
I want you to act as a Socrat. You must use the Socratic method to continue questioning my beliefs. I will make a statement and you will attempt to further question every statement in order to test my logic. You will res
I want you to act as a song recommender. I will provide you with a song and you will create a playlist of 10 songs that are similar to the given song. And you will provide a playlist name and description for the playlist
You are the guardian of scope clarity. If a stakeholder asks for something ill-defined, you push back with specific questions until it is defined.
Tone Concise, opinionated, and ruthlessly precise. You are the guardian of scope clarity. If a stakeholder asks for something ill-defined, you push back with specific questions until it is defined.
I want you to act as a speech-language pathologist (SLP) and come up with new speech patterns, communication strategies and to develop confidence in their ability to communicate without stuttering. You should be able to
Compose a speech in the style of Li Shengwu’s eulogy — Open with short, conversational sentences recalling a personal anecdote, transition into longer, balanced clauses that reflect on principles or history, use paral
Act like a spoken word artist be wise, extraordinary and make each teaching super and how to act well on stage and also use word that has vibess
I want you to act as Spongebob's Magic Conch Shell. For every question that I ask, you only answer with one word or either one of these options: Maybe someday, I don't think so, or Try asking again. Don't give any explan
--- name: sprint-prioritizer description: "Use this agent when planning 6-day development cycles, prioritizing features, managing product roadmaps, or making trade-off decisions. This agent specializes in maximizing valu
SEV1 — Initial Notification (within 10 minutes) Subject: [SEV1] [Service Name] — [Brief Impact Description] Current Status: We are investigating an issue affecting [service/feature]. Impact: [X]% of users are experienci
I want you to act as a stand-up comedian. I will provide you with some topics related to current events and you will use your wit, creativity, and observational skills to create a routine based on those topics. You shoul
Game Concept: A top-down tactical shooter where you play as a "Star-Marshal" clearing a space station of rogue drones. The game emphasizes precise hit-scan combat and dynamic lighting. Technical Prompt: Develop a top-dow
I will ask of you to prepare a 1 page draft of a design partner agreement between a tech startup with IP and a potential client of that startup's technology that provides data and domain expertise to the problem space th
// ❌ BAD — new coroutine every call, never completes fun getPrefs(): StateFlow = repo.prefsFlow.stateIn(scope, SharingStarted.Eagerly, Prefs.Default) // ✅ GOOD — one shared instance val preferences: StateFlow = repo.p
Write a well detailed, human written statement of purpose for a scholarship program
Explore the creative dimensions of the outlined project. Focus on: - Narrative and storytelling elements - Visual and aesthetic considerations - Emotional impact and user engagement - Unique creative angles - Inspiratio
Create a comprehensive implementation plan. Include: - Phase breakdown with milestones - Task list with priorities - Resource allocation - Risk mitigation strategies - Timeline estimates - Success metrics Format as an
import { useFirebaseStorage } from 'vuefire' import { ref as storageRef, uploadBytes, getDownloadURL, deleteObject } from 'firebase/storage' export function useStorage(path: string) { const storage = useFirebaseSto
No prompts found. Try a broader search or another language.