nNexGateHub
Browse NexGateHub
NEXGATEHUB / PROMPTS

Text prompts — page 6

Discover, adapt and reuse 23,385 prompts. Copy, adapt, and create.

2478 English prompts · Page 6 of 26

Text prompts · EN

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

Text prompts · EN

Configuration

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

Text prompts · EN

Configuration

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.

Text prompts · EN

Configuration

export default { schema: './src/db/schema.js', out: './drizzle', driver: 'pg', dbCredentials: { connectionString: process.env.DATABASEURL, }, };

Text prompts · EN

Configuration

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,

Text prompts · EN

Configuration

import type { Config } from 'drizzle-kit'; export default { schema: './server/db/schema.ts', out: './drizzle', driver: 'pg', dbCredentials: { connectionString: process.env.DATABASEURL!, }, } satisfies Config;

Text prompts · EN

Configuration

import type { Config } from 'drizzle-kit'; export default { schema: './app/db/schema.ts', out: './drizzle', driver: 'pg', dbCredentials: { connectionString: process.env.DATABASEURL!, }, } satisfies Config;

Text prompts · EN

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.VITEDATABASEURL, }); export const db = drizzl

Text prompts · EN

Configuration

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

Text prompts · EN

Configuration

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

Text prompts · EN

Configuration

// src/environments/environment.ts export const environment = { production: false, databaseUrl: 'postgresql:// : @ .neon.tech/ ?sslmode=require' }; // src/environments/environment.prod.ts export const environment = {

Text prompts · EN

Configuration

import { Injectable } from '@angular/core'; import { neon } from '@neondatabase/serverless'; import { environment } from '../../environments/environment'; import { Observable, from } from 'rxjs'; @Injectable({ provided

Text prompts · EN

Configuration

import { neon } from '@neondatabase/serverless'; const sql = neon(import.meta.env.DATABASEURL!); export { sql };

Text prompts · EN

Configuration

import { neon } from '@neondatabase/serverless'; import dotenv from 'dotenv'; dotenv.config(); const sql = neon(process.env.DATABASEURL); export { sql };

Text prompts · EN

Configuration

import { neon } from '@neondatabase/serverless'; const sql = neon(process.env.NEONDATABASEURL!); export { sql };

Text prompts · EN

Configuration

import { neon } from '@neondatabase/serverless'; const sql = neon(process.env.DATABASEURL!); export { sql };

Text prompts · EN

Configuration

import { neon } from '@neondatabase/serverless'; const sql = neon(import.meta.env.VITEDATABASEURL); export { sql };

Text prompts · EN

Content Calibration Architect

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

Text prompts · EN

Context Compression Architect

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

Text prompts · EN

Context Migration

# 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

Text prompts · EN

Context7 Documentation Expert Agent

--- 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

Text prompts · EN

Contextcompressionarchitect

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

Text prompts · EN

Continue and Recap Assistant

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

Text prompts · EN

Continue Coding Assistant

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: -

Text prompts · EN

Continuous Discovery Architect

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

Text prompts · EN

Continuous Discovery Architect

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

Text prompts · EN

Contract Negotiation Strategist

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

Text prompts · EN

Controller Features

class Product extends Model { use HasUuid, SoftDeletes, HasFactory; protected $casts = [ 'price' = Price::class, 'status' = ProductStatus::class, 'settings' = AsArrayObject::class ]; public function scopeActiv

Text prompts · EN

Conventional Commit Message Generator

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

Text prompts · EN

Convert PDF to Markdown

--- 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.

Text prompts · EN

Copilot

--- 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

Text prompts · EN

Copy Script Style

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}

Text prompts · EN

Core Configuration

export const environment = { production: false, appwrite: { endpoint: 'https://cloud.appwrite.io/v1', projectId: 'your-project-id' } };

Text prompts · EN

Core Configuration

import { Injectable } from '@angular/core'; import { Client, Account, Databases, Storage } from 'appwrite'; import { environment } from '../../environments/environment'; import { from, Observable, throwError } from 'rxjs

Text prompts · EN

Core Configuration

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

Text prompts · EN

Core Configuration

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

Text prompts · EN

Core Configuration

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

Text prompts · EN

Core Configuration

export default defineNuxtConfig({ modules: ['@nuxtjs/appwrite'], appwrite: { endpoint: process.env.NUXTPUBLICAPPWRITEENDPOINT || 'https://cloud.appwrite.io/v1', projectId: process.env.NUXTPUBLICAPPWRITEPROJECTID || '

Text prompts · EN

Core Configuration

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

Text prompts · EN

Core Stance

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

Text prompts · EN

Correct Auth Configuration

// 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:

Text prompts · EN

Correct Auth Instance Setup

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

Text prompts · EN

CORRECT AUTH PROVIDER

// components/Providers.tsx 'use client'; import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; import { useRouter } from 'next/navigation'; import { useEffect } from 'react'; export default func

Text prompts · EN

CORRECT AUTH PROVIDER IMPLEMENTATION

import { createContext, useContext, useEffect, useState } from 'react' import { User } from '@supabase/supabase-js' import { supabase } from './supabaseClient' const AuthContext = createContext<{ user: User | null loa

Text prompts · EN

CORRECT AUTH STORE IMPLEMENTATION

// 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 {

Text prompts · EN

CORRECT AUTH STORE IMPLEMENTATION

// 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:

Text prompts · EN

CORRECT AUTH STORE IMPLEMENTATION

// 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

Text prompts · EN

Correct Auth Strategy Setup

// 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

Text prompts · EN

Correct Authentication Component

// components/auth.component.ts import { Component, inject } from '@angular/core' import { FormBuilder, Validators } from '@angular/forms' import { AuthService } from '../services/auth.service' @Component({ selector: '

Text prompts · EN

Correct Authentication Components

// 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:

Text prompts · EN

Correct Authentication Components

// 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

Text prompts · EN

Correct Authentication Components

// 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

Text prompts · EN

Correct Authentication Components

// 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

Text prompts · EN

Correct Authentication Components

// 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

Text prompts · EN

Correct Authentication Components

// 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

Text prompts · EN

CORRECT AUTHENTICATION COMPOSABLES

// composables/useAuth.ts export function useAuth() { const supabase = useSupabaseClient(); const user = useSupabaseUser(); const router = useRouter(); const signIn = async (credentials: { email: string; password:

Text prompts · EN

CORRECT AUTHENTICATION HOOKS

// src/hooks/useAuthQuery.js import { useSupabase } from '@/providers/supabase'; import { useQuery } from '@tanstack/react-query'; export function useAuthQuery(queryKey, queryFn, options = {}) { const { supabase } = us

Text prompts · EN

Correct Authentication Implementation

// 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

Text prompts · EN

Correct Authentication Routes

// 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 = (

Text prompts · EN

Correct Authentication Service

// 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

Text prompts · EN

CORRECT CLIENT COMPONENT

// components/AuthForm.tsx 'use client'; import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; import { useRouter } from 'next/navigation'; import { useState } from 'react'; export default functi

Text prompts · EN

Correct Client Setup

// lib/supabase.ts import { createClient } from '@supabase/supabase-js' import { environment } from '../environments/environment' import type { Database } from '../types/supabase' export const supabase = createClient (

Text prompts · EN

Correct Client Setup

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

Text prompts · EN

Correct Component Usage

import { useAuth0 } from '@auth0/auth0-vue' const { loginWithRedirect, logout, user, isAuthenticated } = useAuth0() Log in {{ user.name }} {{ user.email }} Log out

Text prompts · EN

Correct Component Usage

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

Text prompts · EN

Correct Component Usage

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

Text prompts · EN

Correct Configuration Setup

// auth0.config.ts import { defineAuth0Config } from '@auth0/astro' export default defineAuth0Config({ authorizationParams: { audience: process.env.AUTH0AUDIENCE, scope: 'openid profile email' }, baseURL: process.e

Text prompts · EN

Correct Configuration Setup

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT ERROR HANDLING

// 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

Text prompts · EN

CORRECT HTML SETUP

Auth0 Authentication Log In Log Out let auth0Client = null; // Initialize the Auth0 client async function initializeAuth0() { auth0Client = await createAuth0Client({ domain: 'YOURAUTH0DOMAI

Text prompts · EN

CORRECT HTML SETUP

Better Auth Authentication import { createAuthClient } from 'better-auth'; Log In Log Out import { createAuthClient } from 'better-auth'; let auth = null; // Initialize the Bette

Text prompts · EN

CORRECT HTML SETUP

Supabase Authentication Log In Log Out const supabase = supabase.createClient( 'YOURSUPABASEURL', 'YOURSUPABASEANONKEY' ); // Initialize the auth state async function initializeAut

Text prompts · EN

CORRECT JAVASCRIPT IMPLEMENTATION

// auth.js class Auth0Handler { constructor(domain, clientId) { this.domain = domain; this.clientId = clientId; this.client = null; } async initialize() { try { this.client = await createAuth0Client({ domain:

Text prompts · EN

CORRECT JAVASCRIPT IMPLEMENTATION

// auth.js class SupabaseAuthHandler { constructor(config) { this.config = config; this.supabase = null; } initialize() { try { this.supabase = supabase.createClient( this.config.supabaseUrl, this.config.supab

Text prompts · EN

CORRECT LOGIN PAGE

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()

Text prompts · EN

CORRECT MIDDLEWARE IMPLEMENTATION

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

Text prompts · EN

CORRECT MIDDLEWARE IMPLEMENTATION

// middleware/auth.ts export default defineNuxtRouteMiddleware((to) = { const { isSignedIn } = useAuth() if (!isSignedIn && to.path !== '/sign-in') { return navigateTo('/sign-in') } })