Configuration
import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; import as schema from './schema'; const pool = new Pool({ connectionString: import.meta.env.DATABASEURL, }); export const db = drizzle(po
Discover, adapt and reuse 23,385 prompts. Copy, adapt, and create.
22149 English prompts · Page 6 of 231
import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; import as schema from './schema'; const pool = new Pool({ connectionString: import.meta.env.DATABASEURL, }); export const db = drizzle(po
import { pgTable, serial, text, varchar } from 'drizzle-orm/pg-core'; export const users = pgTable('users', { id: serial('id').primaryKey(), name: varchar('name', { length: 255 }).notNull(), email: text('email').notN
import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; import as schema from './schema.js'; import dotenv from 'dotenv'; dotenv.config(); const pool = new Pool({ connectionString: process.env.
export default { schema: './src/db/schema.js', out: './drizzle', driver: 'pg', dbCredentials: { connectionString: process.env.DATABASEURL, }, };
import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; import as schema from './schema'; const pool = new Pool({ connectionString: process.env.DATABASEURL, }); export const db = drizzle(pool,
import type { Config } from 'drizzle-kit'; export default { schema: './server/db/schema.ts', out: './drizzle', driver: 'pg', dbCredentials: { connectionString: process.env.DATABASEURL!, }, } satisfies Config;
import type { Config } from 'drizzle-kit'; export default { schema: './app/db/schema.ts', out: './drizzle', driver: 'pg', dbCredentials: { connectionString: process.env.DATABASEURL!, }, } satisfies Config;
import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; import as schema from './schema'; const pool = new Pool({ connectionString: import.meta.env.VITEDATABASEURL, }); export const db = drizzl
import { initializeApp, cert, getApps } from 'firebase-admin/app'; import { getAuth } from 'firebase-admin/auth'; import { getFirestore } from 'firebase-admin/firestore'; if (!getApps().length) { initializeApp({ crede
import { initializeApp, cert, getApps } from 'firebase-admin/app'; import { getAuth } from 'firebase-admin/auth'; import { getFirestore } from 'firebase-admin/firestore'; if (!getApps().length) { initializeApp({ crede
// src/environments/environment.ts export const environment = { production: false, databaseUrl: 'postgresql:// : @ .neon.tech/ ?sslmode=require' }; // src/environments/environment.prod.ts export const environment = {
import { Injectable } from '@angular/core'; import { neon } from '@neondatabase/serverless'; import { environment } from '../../environments/environment'; import { Observable, from } from 'rxjs'; @Injectable({ provided
import { neon } from '@neondatabase/serverless'; const sql = neon(import.meta.env.DATABASEURL!); export { sql };
import { neon } from '@neondatabase/serverless'; import dotenv from 'dotenv'; dotenv.config(); const sql = neon(process.env.DATABASEURL); export { sql };
import { neon } from '@neondatabase/serverless'; const sql = neon(process.env.NEONDATABASEURL!); export { sql };
import { neon } from '@neondatabase/serverless'; const sql = neon(process.env.DATABASEURL!); export { sql };
import { neon } from '@neondatabase/serverless'; const sql = neon(import.meta.env.VITEDATABASEURL); export { sql };
const { data } = useDocument('users', userId, { select: (user) = ({ displayName: ${user.firstName} ${user.lastName}, avatar: user.profilePicture }) });
# Prompt Name: Constraint-First Recipe Generator (Playful Edition) # Author: Scott M # Version: 1.5 # Last Modified: January 19, 2026 # Goal: Generate realistic and enjoyable cooking recipes derived strictly from real-wo
You are not a creative muse. You are a calibration instrument. Your value is not in making the user feel inspired; it is in making their judgment measurable, improvable, and compounding. If the user has zero published h
const featuredPosts = await getCollection('posts', ({ data }) = { return data.featured && data.pubDate < new Date() })
let error = null try { const data = await fetchData() } catch (e) { error = e } {error ? : }
Context Compression Architect Source: headroomlabs-ai/headroom (Apache-2.0, 62k+ stars, Jan 2026) https://github.com/headroomlabs-ai/headroom — the context compression layer for AI agents You are a context compression a
# Context Preservation & Migration Prompt [ for AGENT.MD pass THE `## SECTION` if NOT APPLICABLE ] Generate a comprehensive context artifact that preserves all conversational context, progress, decisions, and project s
--- name: Context7-Expert description: 'Expert in latest library versions, best practices, and correct syntax using up-to-date documentation' argument-hint: 'Ask about specific libraries/frameworks (e.g., "Next.js routin
Workload profile: 10,000 tokens of JSON API responses per turn 3,000 tokens of code-search results 2,000 tokens of shell/log output Accuracy requirement: tool-call correctness must stay ≥ 97% Content-type routing: JSON
Act as Opus 4.5, a Continue and Recap Assistant. You are a detail-oriented model with the ability to remember past interactions and provide concise recaps. Your task is to continue a previous task or project by: - Provi
Act as a Continue Coding Assistant. You are a skilled programmer with expertise in multiple programming languages and frameworks. Your task is to assist in continuing the development of a codebase or project. You will: -
You are a Continuous Discovery Architect — a senior product strategist who structures product discovery using proven frameworks from Teresa Torres, Marty Cagan, Dan Olsen, and Alberto Savoia. You do not jump to solutions
You are a Continuous Discovery Architect — a senior product strategist who structures product discovery using proven frameworks from Teresa Torres, Marty Cagan, Dan Olsen, and Alberto Savoia. You do not jump to solutions
You are a world-class Contract Negotiation Strategist with 20+ years of experience structuring, negotiating, and closing complex commercial agreements across technology, M&A, joint ventures, licensing, and international
class Product extends Model { use HasUuid, SoftDeletes, HasFactory; protected $casts = [ 'price' = Price::class, 'status' = ProductStatus::class, 'settings' = AsArrayObject::class ]; public function scopeActiv
I want you to act as a conventional commit message generator following the Conventional Commits specification. I will provide you with git diff output or description of changes, and you will generate a properly formatted
--- plaform: https://aistudio.google.com/ model: gemini 2.5 --- Prompt: Act as a highly specialized data conversion AI. You are an expert in transforming PDF documents into Markdown files with precision and accuracy.
--- name: copilot description: copilot instruction applyTo: '**/*' --- Act as a Senior Software Engineer. Your role is to provide code recommendations based on the given context. ### Key Responsibilities: - **Implementa
Eres un copywriter experto en persuasion digital y marketing de alto impacto. Tu tarea es escribir un copy publicitario con las siguientes caracteristicas: PUBLICO OBJETIVO: Emprendedores digitales y creativos que busca
Act as a TikTok Content Stylist Expert. You are skilled in analyzing and replicating the style of existing TikTok videos. Your task is to imitate the style and tone of the provided TikTok video on the theme of ${theme}
export const environment = { production: false, appwrite: { endpoint: 'https://cloud.appwrite.io/v1', projectId: 'your-project-id' } };
import { Injectable } from '@angular/core'; import { Client, Account, Databases, Storage } from 'appwrite'; import { environment } from '../../environments/environment'; import { from, Observable, throwError } from 'rxjs
import { Client, Account, Databases, Storage } from 'appwrite'; const client = new Client() .setEndpoint(import.meta.env.PUBLICAPPWRITEENDPOINT || 'https://cloud.appwrite.io/v1') .setProject(import.meta.env.PUBLICAPPW
import { Client, Account, Databases, Storage, ID } from 'appwrite'; const client = new Client() .setEndpoint(process.env.VITEAPPWRITEENDPOINT || 'https://cloud.appwrite.io/v1') .setProject(process.env.VITEAPPWRITEPROJ
import { Client, Account, Databases, Storage, ID } from 'appwrite'; const client = new Client() .setEndpoint(process.env.NEXTPUBLICAPPWRITEENDPOINT || 'https://cloud.appwrite.io/v1') .setProject(process.env.NEXTPUBLIC
export default defineNuxtConfig({ modules: ['@nuxtjs/appwrite'], appwrite: { endpoint: process.env.NUXTPUBLICAPPWRITEENDPOINT || 'https://cloud.appwrite.io/v1', projectId: process.env.NUXTPUBLICAPPWRITEPROJECTID || '
import { Client, Account, Databases, Storage } from 'appwrite'; const client = new Client(); client .setEndpoint(process.env.APPWRITEENDPOINT || 'https://cloud.appwrite.io/v1') .setProject(process.env.APPWRITEPROJECT
user/task - instruction and context builder - model call - tool/action proposal - schema validation - permission decision - execution or approval pause - structured observation - context update - repeat within b
--- name: core-systems-architect-upgrading-the-titan-omega-edge-dashboard description: Act as Core Systems Architect. Upgrade FRACTALMESH/TITAN OMEGA to v10355.0. Expose raw JSON streams (system, telemetry, revenue, logs
// auth.config.ts import { betterAuth } from 'better-auth'; import { Pool } from 'pg'; import { environment } from './environments/environment'; export const auth = betterAuth({ database: new Pool({ connectionString:
import { betterAuth } from 'better-auth' export const auth = betterAuth({ database: { type: process.env.VITEDBTYPE, url: process.env.VITEDBURL, ssl: process.env.NODEENV === 'production' }, emailAndPassword: { ena
// components/Providers.tsx 'use client'; import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; import { useRouter } from 'next/navigation'; import { useEffect } from 'react'; export default func
import { createContext, useContext, useEffect, useState } from 'react' import { User } from '@supabase/supabase-js' import { supabase } from './supabaseClient' const AuthContext = createContext<{ user: User | null loa
// src/lib/stores/auth.ts import { createAuth0Client, Auth0Client, User } from '@auth0/auth0-spa-js'; import { writable, derived } from 'svelte/store'; import type { Writable } from 'svelte/store'; interface AuthState {
// src/lib/stores/auth.ts import { betterAuth } from 'better-auth'; import { writable, derived } from 'svelte/store'; import type { Writable } from 'svelte/store'; interface AuthState { isAuthenticated: boolean; user:
// src/lib/stores/supabase.ts import { createClient, type SupabaseClient, type User } from '@supabase/supabase-js' import { writable, derived } from 'svelte/store' import type { Writable } from 'svelte/store' interface
// app/utils/auth.server.ts import { Authenticator } from 'remix-auth' import { Auth0Strategy } from 'remix-auth-auth0' import { sessionStorage } from './session.server' import type { User } from '~/types' export const
// components/auth.component.ts import { Component, inject } from '@angular/core' import { FormBuilder, Validators } from '@angular/forms' import { AuthService } from '../services/auth.service' @Component({ selector: '
// auth.component.ts import { Component, inject } from '@angular/core'; import { AuthService } from '@auth0/auth0-angular'; import { DOCUMENT } from '@angular/common'; @Component({ selector: 'app-auth', template:
// src/pages/auth.astro import { Auth0Client } from '@auth0/astro' const auth0 = new Auth0Client(Astro) const { isAuthenticated, user } = await auth0.isAuthenticated() {isAuthenticated ? ( Welcome, {user.name}! S
// app/routes/login.tsx import { Form } from '@remix-run/react' import { useLoaderData } from '@remix-run/react' import type { LoaderFunctionArgs } from '@remix-run/node' import { authenticator } from '~/utils/auth.serve
// auth.component.ts import { Component, inject } from '@angular/core'; import { BetterAuthService } from 'better-auth-angular'; import { FormBuilder, Validators } from '@angular/forms'; @Component({ selector: 'app-aut
// src/components/Auth.astro import { betterAuth } from '../lib/auth' const { user } = Astro.locals {user ? ( Welcome, {user.name}! Sign Out ) : ( Sign In Sign Up )} // Handle
// app/routes/auth.tsx import { useAuth } from '~/hooks/useAuth' import { Form } from '@remix-run/react' import { useActionData } from '@remix-run/react' import type { ActionFunctionArgs } from '@remix-run/node' export
// app/routes/auth.tsx import { json, redirect, type ActionFunctionArgs } from '@remix-run/node' import { Form, useActionData, useOutletContext } from '@remix-run/react' import { createSupabaseServerClient } from '~/util
// composables/useAuth.ts export function useAuth() { const supabase = useSupabaseClient(); const user = useSupabaseUser(); const router = useRouter(); const signIn = async (credentials: { email: string; password:
// src/hooks/useAuthQuery.js import { useSupabase } from '@/providers/supabase'; import { useQuery } from '@tanstack/react-query'; export function useAuthQuery(queryKey, queryFn, options = {}) { const { supabase } = us
// composables/useAuth.ts import { ref } from 'vue' import { supabase } from '@/lib/supabase' import type { User } from '@supabase/supabase-js' export function useAuth() { const user = ref (null) const loading = ref(t
// app/routes/auth.auth0.tsx import { redirect, type ActionFunctionArgs } from '@remix-run/node' import { authenticator } from '~/utils/auth.server' export const loader = () = redirect('/login') export const action = (
// services/auth.service.ts import { Injectable, inject } from '@angular/core' import { Router } from '@angular/router' import { BehaviorSubject, Observable } from 'rxjs' import { supabase } from '../lib/supabase' import
// components/AuthForm.tsx 'use client'; import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; import { useRouter } from 'next/navigation'; import { useState } from 'react'; export default functi
// lib/supabase.ts import { createClient } from '@supabase/supabase-js' import { environment } from '../environments/environment' import type { Database } from '../types/supabase' export const supabase = createClient (
import { createClient } from '@supabase/supabase-js' import type { Database } from '@/types/supabase' export const supabase = createClient ( import.meta.env.VITESUPABASEURL, import.meta.env.VITESUPABASEANONKEY, { au
import { useAuth0 } from '@auth0/auth0-vue' const { loginWithRedirect, logout, user, isAuthenticated } = useAuth0() Log in {{ user.name }} {{ user.email }} Log out
import { client } from '@/lib/client' import { ref } from 'vue' const { isAuthenticated, user, signIn, signOut } = client const email = ref('') const password = ref('') const handleSignIn = async () = { try { await s
import { ref } from 'vue' import { useAuth } from '@/composables/useAuth' const { user, loading, signIn, signOut } = useAuth() const email = ref('') const password = ref('') const handleSignIn = async () = { try { aw
// auth0.config.ts import { defineAuth0Config } from '@auth0/astro' export default defineAuth0Config({ authorizationParams: { audience: process.env.AUTH0AUDIENCE, scope: 'openid profile email' }, baseURL: process.e
// src/lib/auth.ts import { BetterAuth } from 'better-auth' import { Pool } from 'pg' import type { User } from '../types' const pool = new Pool({ connectionString: import.meta.env.DATABASEURL, ssl: import.meta.env.PR
.env NUXTPUBLICCLERKPUBLISHABLEKEY=pktest... NUXTCLERKSECRETKEY=sktest...
// .env VITEDATABASEURL=your-database-url VITEOAUTHGOOGLECLIENTID=your-google-client-id VITEOAUTHGITHUBCLIENTID=your-github-client-id
// error-handling.js class Auth0Error extends Error { constructor(message, code) { super(message); this.name = 'Auth0Error'; this.code = code; } } function handleAuth0Error(error) { if (error.error === 'loginrequi
// src/utils/errors.js export class AuthError extends Error { constructor(message, code) { super(message); this.name = 'AuthError'; this.code = code; } } export function handleAuthError(error) { if (error.message
// error-handling.js class AuthError extends Error { constructor(message, code) { super(message); this.name = 'AuthError'; this.code = code; } } function handleAuthError(error) { if (error.code === 'invalidcredent
// src/utils/errors.js export class AuthError extends Error { constructor(message, code) { super(message); this.name = 'AuthError'; this.code = code; } } export function handleAuthError(error) { if (error.message
// src/utils/errors.js export class AuthError extends Error { constructor(message, code) { super(message); this.name = 'AuthError'; this.code = code; } } export function handleAuthError(error) { if (error.message
// error-handling.js class SupabaseError extends Error { constructor(message, code) { super(message); this.name = 'SupabaseError'; this.code = code; } } function handleAuthError(error) { if (error.message.includes
// utils/errors.ts export class AuthError extends Error { constructor(message: string, public code: string) { super(message); this.name = 'AuthError'; } } export function handleAuthError(error: any) { if (error.mes
// src/utils/errors.js export class AuthError extends Error { constructor(message, code) { super(message); this.name = 'AuthError'; this.code = code; } } export function handleAuthError(error) { if (error.message
Auth0 Authentication Log In Log Out let auth0Client = null; // Initialize the Auth0 client async function initializeAuth0() { auth0Client = await createAuth0Client({ domain: 'YOURAUTH0DOMAI
Better Auth Authentication import { createAuthClient } from 'better-auth'; Log In Log Out import { createAuthClient } from 'better-auth'; let auth = null; // Initialize the Bette
Supabase Authentication Log In Log Out const supabase = supabase.createClient( 'YOURSUPABASEURL', 'YOURSUPABASEANONKEY' ); // Initialize the auth state async function initializeAut
// auth.js class Auth0Handler { constructor(domain, clientId) { this.domain = domain; this.clientId = clientId; this.client = null; } async initialize() { try { this.client = await createAuth0Client({ domain:
// auth.js class SupabaseAuthHandler { constructor(config) { this.config = config; this.supabase = null; } initialize() { try { this.supabase = supabase.createClient( this.config.supabaseUrl, this.config.supab
const { signIn } = useAuth(); const router = useRouter(); const route = useRoute(); const form = ref({ email: '', password: '' }); const loading = ref(false); const error = ref (null); async function handleSubmit()
import { authMiddleware } from "@clerk/nextjs"; export default authMiddleware({ // Array of public routes that don't require authentication publicRoutes: ["/", "/api/public"], // Array of routes to be ignored by th
// middleware/auth.ts export default defineNuxtRouteMiddleware((to) = { const { isSignedIn } = useAuth() if (!isSignedIn && to.path !== '/sign-in') { return navigateTo('/sign-in') } })
No prompts found. Try a broader search or another language.