{"success":true,"data":{"query":"Query Memory","limit":10,"count":10,"sources":["wiki_artificial_intelligence.hat","web_1779060034.hat","web_1779060041.hat","atlas_pulse_master.hat"],"synced":[],"results":[{"source":"wiki_artificial_intelligence.hat","text":"Artificial neural networks\nAn artificial neural network is based on a collection of nodes also known as artificial neurons, which loosely model the neurons in a biological brain. It is trained to recognise patterns; once trained, it can recognise those patterns in fresh data. There is an input, at least one hidden layer of nodes and an output. Each node applies a function and once the weight crosses its specified threshold, the data is transmitted to the next layer. A network is typically called a deep neural network if it has at least 2 hidden layers.\nLearning algorithms for neural networks use local search to choose the weights that will get the right output for each input during training. The most common training technique is the backpropagation algorithm. Neural networks learn to model complex relationships between inputs and outputs and find patterns in data. In theory, a neural network can learn any function.\nIn feedforward neural networks the signal passes in only one direction. The term perceptron typically refers to a single-layer neural network. In contrast, deep learning uses many layers. Recurrent neural networks (RNNs) feed the output signal back into the input, which allows short-term memories of previous input events. Long short-term memory networks (LSTMs) are recurrent neural networks that better preserve longterm dependencies and are less sensitive to the vanishing gradient problem. Convolutional neural networks (CNNs) use layers of kernels to more efficiently process local patterns. This local processing is especially important in image processing, where the early CNN layers typically identify simple local patterns such as edges and curves, with subsequent layers detecting more complex patterns like textures, and eventually whole objects.","score":53.16641805025819,"links":[]},{"source":"wiki_artificial_intelligence.hat","text":"Background\nFollowing a severe market downturn in 2022–2023, major memory manufacturers—Samsung Electronics, SK Hynix, and Micron Technology—implemented strategic production cuts to stabilize pricing. By mid-2024, the rapid expansion of generative AI services triggered unprecedented demand for specialized memory products, particularly High Bandwidth Memory (HBM) used in AI accelerators and data center GPUs. Specialized components of chip-making technology are also experiencing supply constraints due to high demand in AI application. For example, glass cloth, a high-performance glass fiber substrate used for power efficient high speed data transfer and a crucial component of chip-making, is experiencing supply crisis as Nitto Boseki, a Japanese firm having overwhelming monopoly in its production, is not able to meet increased demands making chip-makers such as Qualcomm, Apple, Nvidia and AMD compete for securing supply for their chips. There are also reports of smaller electronics companies struggling to find suppliers for components such as NAND flash. Memory suppliers are adapting to increased demands and market unpredictability by requiring prepayment or shorter time-frame of payment, which makes it more difficult for smaller firms to acquire capital to survive. By 2026, due to steadily increased demand on resources, CPU chips are also experiencing shortage issues due to low fabrication capacity, prioritisation of server CPUs, and increased demand, with CPU prices also being forecast to increase by as much as 15%.\nThe demand on memory has also increased strain on other electronic components such as hard disk devices, with reports such as Western Digital's hard disk supply for 2026 being booked for enterprise applications before February 2026.\nA 2024 McKinsey analysis projected that global demand for AI-ready data center capacity would grow at approximately 33% annually through 2030, with AI workloads consuming roughly 70% of total data center capacity by the decade's end. In addition, according to Kearney's State of Semiconductor 2025 Report, executives were already expecting a shortage in the <8nm wafer size with memory chips being mentioned as an acute source of concern. Multiple companies mentioned being prepared for it through long-term agreements with RAM suppliers or amassing additional inventory.\nOn 24 March 2026, Google announced TurboQuant, a memory compression technology focused on large language models (LLM) and vector search engines, which it claimed achieves 6x lower memory consumption in tested local LLMs and 8x performance enhancement in tests running on H100 accelerators. The technology is also a drop in enhancement for existing inference pipeline. Amid speculation about memory demand trends, memory manufacturers, SanDisk, Micron, Western Digital and Seagate, among other companies involved in memory manufacture experienced stock price declines. Prices of memory kits also reduced in the following months, although still at inflated prices.","score":53.16641805025819,"links":[]},{"source":"wiki_artificial_intelligence.hat","text":"Consumer electronics sector\nThe shortage particularly affected smartphone manufacturers and other consumer electronics producers. DRAM prices reportedly rose by 172% throughout 2025, leading manufacturers like Samsung to halt new orders for DDR5 modules to reassess pricing structures and Micron to exit its 'Crucial' brand of consumer products.\nIn Tokyo's Akihabara electronics district, retailers began limiting purchases of memory products to prevent hoarding, with prices for popular DDR5 memory modules more than doubling in some cases. Despite the broad trend of rising hardware costs, some companies engaged in aggressive pricing strategies to maintain market share; for example, Sony reduced the price of the PlayStation 5 by $100 for Black Friday 2025, potentially absorbing increased component costs to stimulate software ecosystem growth.\nDue to memory prices more than doubling in a single quarter, HP revealed in its Q1 2026 earnings call that memory costs account for 35% of PC build materials up from 15-18% previous quarter. Despite showing strong Q1 2026 earning driven by Windows 11 upgrade cycle and AI PC adoption, HP warned investors of low operating margins and up to double digit percentage decline for coming quarter. Trendforce, an IT analytics company, updated its forecast from 1.7% year-over-year growth in PC market to 2.6% year-over-year decline for 2026, amid backdrop of steadily increasing prices and supply crisis. Research and analytics firms, Gartner and IDC expect worldwide PC market to decline 10-11% and smartphone market to decline 8-9% in 2026. Gartner also projects that rising memory prices will make low-margin entry level laptops under 500 USD financially unviable in two years.\nThe RAM shortage has delayed the release of Valve's second Steam Machine due to increased memory prices. The device was originally set to launch in early 2026.","score":53.16641805025819,"links":[]},{"source":"web_1779060034.hat","text":"Menu Using App Router Features available in /app Latest Version 16.2.6 This page is also available as Markdown at /docs/app/guides.md . For an index of Next.js documentation , see /docs/llms.txt . Copy page Guides Last updated May 13, 2026 AI Coding Agents Learn how to configure your Next.js project so AI coding agents use up-to-date documentation instead of outdated training data. Analytics Measure and track page performance using Next.js Speed Insights Authentication Learn how to implement authentication in your Next.js application. Backend for Frontend Learn how to use Next.js as a backend framework Caching (Previous Model) Learn how to cache and revalidate data using fetch options, unstable_cache, and route segment configs for projects not using Cache Components. CDN Caching Learn how CDN caching works with Next.js, including what works today, cache variability, and the direction toward pathname-based cache keying. CI Build Caching Learn how to configure CI to cache Next.js builds Content Security Policy Learn how to set a Content Security Policy (CSP) for your Next.js application. CSS-in-JS Use CSS-in-JS libraries with Next.js Custom Server Start a Next.js app programmatically using a custom server. Data Security Learn the built-in data security features in Next.js and learn best practices for protecting your application's data. Debugging Learn how to debug your Next.js application with VS Code, Chrome DevTools, or Firefox DevTools. Deploying to Platforms Understand which Next.js features require specific platform capabilities and how to choose the right deployment target. Draft Mode Next.js has draft mode to toggle between static and dynamic pages. You can learn how it works with App Router here. Environment Variables Learn to add and access environment variables in your Next.js application. Forms Learn how to create forms in Next.js with React Server Actions. How Revalidation Works A deep dive into how Next.js revalidates cached content, including the tag system, cache consistency, and multi-instance coordination. ISR Learn how to create or update static pages at runtime with Incremental Static Regeneration. Instrumentation Learn how to use instrumentation to run code at server startup in your Next.js app Internationalization Add support for multiple languages with internationalized routing and localized content. JSON-LD Learn how to add JSON-LD to your Next.js application to describe your content to search engines and AI. Lazy Loading Lazy load imported libraries and React Components to improve your application's loading performance. Development Environment Learn how to optimize your local development environment with Next.js. Next.js MCP Server Learn how to use Next.js MCP support to allow coding agents access to your application state MDX Learn how to configure MDX and use it in your Next.js apps. Memory Usage Optimize memory used by your application in development and production. Migrating Learn how to migrate from popular frameworks to Next.js Migrating to Cache Components Learn how to migrate from route segment configs to Cache Components in Next.js. Multi-tenant Learn how to build multi-tenant apps with the App Router. Multi-zones Learn how to build micro-frontends using Next.js Multi-Zones to deploy multiple Next.js apps under a single domain. OpenTelemetry Learn how to instrument your Next.js app with OpenTelemetry. Package Bundling Learn how to analyze and optimize your application's server and client bundles with the Next.js Bundle Analyzer for Turbopack, and the `@next/bundle-analyzer` plugin for Webpack. PPR Platform Guide A guide for platform engineers on implementing PPR support, from basic origin rendering to optimized CDN integration. Prefetching Learn how to configure prefetching in Next.js Preserving UI state Learn how React's Activity component preserves UI state across navigations in Next.js and how to control what resets. Preventing Flash Learn how to correct server-rendered content before the browser paints, avoiding visible flash when the page hydrates. Production Recommendations to ensure the best performance and user experience before taking your Next.js application to production. PWAs Learn how to build a Progressive Web Application (PWA) with Next.js. Public pages Learn how to build public, \"static\" pages that share data across users, such as landing pages, list pages (products, blogs, etc.), marketing and news sites. Redirecting Learn the different ways to handle redirects in Next.js. Rendering Philosophy Learn how Next.js treats static and dynamic rendering as a spectrum at the component level, and what this means for deployment. Sass Style your Next.js application using Sass. Scripts Optimize 3rd party scripts with the built-in Script component. Self-Hosting Learn how to self-host your Next.js application on a Node.js server, Docker image, or static HTML files (static exports). SPAs Next.js fully supports building Single-Page Applications (SPAs). Static Exports Next.js enables starting as a static site or Single-Page Application (SPA), then later optionally upgrading to use features that require a server. Streaming Learn how streaming works in Next.js and how to use it to progressively render UI as data becomes available. Tailwind CSS v3 Style your Next.js Application using Tailwind CSS v3 for broader browser support. Testing Learn how to set up Next.js with four commonly used testing tools — Cypress, Playwright, Vitest, and Jest. Third Party Libraries Optimize the performance of third-party libraries in your application with the `@next/third-parties` package. Upgrading Learn how to upgrade to the latest versions of Next.js. Videos Recommendations and best practices for optimizing videos in your Next.js application. View transitions Learn how to use view transitions to communicate meaning during navigation, loading, and content changes in a Next.js app. Was this helpful? supported. Send","score":27.12400931168676,"links":[]},{"source":"web_1779060041.hat","text":"Getting Started Use Supabase with React Learn how to create a Supabase project, add some sample data to your database, and query the data from a React app. 1 Create a Supabase project Go to database.new and create a new Supabase project. Alternatively, you can create a project using the Management API: 1 # First, get your access token from https://supabase.com/dashboard/account/tokens 2 export SUPABASE_ACCESS_TOKEN = \" your-access-token \" 3 4 # List your organizations to get the organization ID 5 curl -H \" Authorization: Bearer $SUPABASE_ACCESS_TOKEN \" \\ 6 https://api.supabase.com/v1/organizations 7 8 # Create a new project (replace <org-id> with your organization ID) 9 curl -X POST https://api.supabase.com/v1/projects \\ 10 -H \" Authorization: Bearer $SUPABASE_ACCESS_TOKEN \" \\ 11 -H \" Content-Type: application/json \" \\ 12 -d ' { 13 \"organization_id\": \"<org-id>\", 14 \"name\": \"My Project\", 15 \"region\": \"us-east-1\", 16 \"db_pass\": \"<your-secure-password>\" 17 } ' When your project is up and running, go to the Table Editor section of the Dashboard, create a new table and insert some data. Then in the Integrations > Data API section of the Dashboard, expose the specific tables or functions you want to access. To automatically grant access for new tables and functions in public , enable Default privileges for new entities . Alternatively, you can run the following snippet in your project's SQL Editor . This creates an instruments table with some sample data, sets a secure baseline by setting only the privileges each Postgres role needs, and adds Row Level Security (RLS) for enhanced security for database data by default. 1 -- Create the table 2 create table instruments ( 3 id bigint primary key generated always as identity , 4 name text not null 5 ); 6 7 -- Insert sample data into the table 8 insert into instruments ( name ) 9 values 10 ( ' violin ' ), 11 ( ' viola ' ), 12 ( ' cello ' ); 13 14 -- Grant the privileges the role needs, which is read access 15 grant select on public . instruments to anon; 16 17 -- Enable row level security for the table 18 alter table instruments enable row level security ; Create an RLS policy to make the data in your table publicly readable: 1 -- Create a policy to allow the anon role to read from the instruments table 2 create policy \" public can read instruments \" 3 on public . instruments 4 for select to anon 5 using (true); 2 Create a React app Create a React app using a Vite template. Explore drop-in UI components for your Supabase app. UI components built on shadcn/ui that connect to Supabase via a single command. Explore Components Terminal 1 npm create vite@latest my-app -- --template react 3 Install the Supabase client library The fastest way to get started is to use the supabase-js client library which provides a convenient interface for working with Supabase from a React app. Navigate to the React app and install supabase-js . Terminal 1 cd my-app && npm install @supabase/supabase-js 4 Declare Supabase Environment Variables Create a .env.local file and populate with your Supabase connection variables: Project URL No project found Publishable key No project found .env.local 1 VITE_SUPABASE_URL=<SUBSTITUTE_SUPABASE_URL> 2 VITE_SUPABASE_PUBLISHABLE_KEY=<SUBSTITUTE_SUPABASE_PUBLISHABLE_KEY> Get API details # Now that you've created some database tables, you are ready to insert data using the auto-generated API. To do this, you need to get the Project URL and key from the project Connect dialog . Read the API keys docs for a full explanation of all key types and their uses. Changes to API keys Supabase is changing the way keys work to improve project security and developer experience. You can read the full announcement on GitHub . The older anon and service_role keys will work until the end of 2026 but we strongly encourage switching to and using the new publishable ( sb_publishable_xxx ) and secret ( sb_secret_xxx ) keys now. In most cases, you can get keys from the Project's Connect dialog , but if you want a specific key, you can find them in the Settings > API Keys section of the Dashboard. For legacy keys , copy the anon key for client-side operations and the service_role key for server-side operations from the Legacy API Keys tab. For new keys , open the API Keys tab, if you don't have a publishable key already, click Create new API Keys , and copy the value from the Publishable key section. 5 Query data from the app Replace the contents of App.jsx to add a getInstruments function to fetch the data and display the query result to the page using a Supabase client. src/App.jsx 1 import { useEffect , useState } from \" react \" ; 2 import { createClient } from \" @supabase/supabase-js \" ; 3 4 const supabase = createClient ( import . meta . env . VITE_SUPABASE_URL , import . meta . env . VITE_SUPABASE_PUBLISHABLE_KEY ) ; 5 6 function App () { 7 const [ instruments , setInstruments ] = useState ( [] ) ; 8 9 useEffect ( () => { 10 getInstruments () ; 11 }, [] ) ; 12 13 async function getInstruments () { 14 const { data , error } = await supabase . from ( \" instruments \" ) . select () ; 15 16 if ( error ) { 17 console . error ( error ) ; 18 return ; 19 } 20 21 setInstruments ( data ) ; 22 } 23 24 return ( 25 < ul > 26 { instruments . map ( ( instrument ) => ( 27 < li key = { instrument . name }>{ instrument . name }</ li > 28 )) } 29 </ ul > 30 ) ; 31 } 32 33 export default App ; 6 Start the app Run the development server, go to http://localhost:5173 in a browser and you should see the list of instruments. Terminal 1 npm run dev Next steps # Set up Auth for your app Insert more data into your database Upload and serve static files using Storage Is this helpful? No Yes AI Tools Copy as Markdown Ask ChatGPT Ask Claude","score":27.12400931168676,"links":[]},{"source":"web_1779060041.hat","text":"Getting Started Use Supabase with Next.js Learn how to create a Supabase project, add some sample data, and query from a Next.js app. 1 Create a Supabase project Go to database.new and create a new Supabase project. Alternatively, you can create a project using the Management API: 1 # First, get your access token from https://supabase.com/dashboard/account/tokens 2 export SUPABASE_ACCESS_TOKEN = \" your-access-token \" 3 4 # List your organizations to get the organization ID 5 curl -H \" Authorization: Bearer $SUPABASE_ACCESS_TOKEN \" \\ 6 https://api.supabase.com/v1/organizations 7 8 # Create a new project (replace <org-id> with your organization ID) 9 curl -X POST https://api.supabase.com/v1/projects \\ 10 -H \" Authorization: Bearer $SUPABASE_ACCESS_TOKEN \" \\ 11 -H \" Content-Type: application/json \" \\ 12 -d ' { 13 \"organization_id\": \"<org-id>\", 14 \"name\": \"My Project\", 15 \"region\": \"us-east-1\", 16 \"db_pass\": \"<your-secure-password>\" 17 } ' When your project is up and running, go to the Table Editor section of the Dashboard, create a new table and insert some data. Then in the Integrations > Data API section of the Dashboard, expose the specific tables or functions you want to access. To automatically grant access for new tables and functions in public , enable Default privileges for new entities . Alternatively, you can run the following snippet in your project's SQL Editor . This creates an instruments table with some sample data, sets a secure baseline by setting only the privileges each Postgres role needs, and adds Row Level Security (RLS) for enhanced security for database data by default. 1 -- Create the table 2 create table instruments ( 3 id bigint primary key generated always as identity , 4 name text not null 5 ); 6 7 -- Insert sample data into the table 8 insert into instruments ( name ) 9 values 10 ( ' violin ' ), 11 ( ' viola ' ), 12 ( ' cello ' ); 13 14 -- Grant the privileges the role needs, which is read access 15 grant select on public . instruments to anon; 16 17 -- Enable row level security for the table 18 alter table instruments enable row level security ; Create an RLS policy to make the data in your table publicly readable: 1 -- Create a policy to allow the anon role to read from the instruments table 2 create policy \" public can read instruments \" 3 on public . instruments 4 for select to anon 5 using (true); 2 Create a Next.js app Use the create-next-app command and the with-supabase template, to create a Next.js app pre-configured with: Cookie-based Auth TypeScript Tailwind CSS Explore drop-in UI components for your Supabase app. UI components built on shadcn/ui that connect to Supabase via a single command. Explore Components 1 npx create-next-app -e with-supabase 3 Declare Supabase Environment Variables Rename .env.example to .env.local and populate with your Supabase connection variables: Project URL No project found Publishable key No project found .env.local 1 NEXT_PUBLIC_SUPABASE_URL=<SUBSTITUTE_SUPABASE_URL> 2 NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=<SUBSTITUTE_SUPABASE_PUBLISHABLE_KEY> Get API details # Now that you've created some database tables, you are ready to insert data using the auto-generated API. To do this, you need to get the Project URL and key from the project Connect dialog . Read the API keys docs for a full explanation of all key types and their uses. Changes to API keys Supabase is changing the way keys work to improve project security and developer experience. You can read the full announcement on GitHub . The older anon and service_role keys will work until the end of 2026 but we strongly encourage switching to and using the new publishable ( sb_publishable_xxx ) and secret ( sb_secret_xxx ) keys now. In most cases, you can get keys from the Project's Connect dialog , but if you want a specific key, you can find them in the Settings > API Keys section of the Dashboard. For legacy keys , copy the anon key for client-side operations and the service_role key for server-side operations from the Legacy API Keys tab. For new keys , open the API Keys tab, if you don't have a publishable key already, click Create new API Keys , and copy the value from the Publishable key section. 4 Query Supabase data from Next.js Create a new file at app/instruments/page.tsx and populate with the following. This selects all the rows from the instruments table in Supabase and render them on the page. app/instruments/page.tsx 1 import { createClient } from \" @/lib/supabase/server \" ; 2 import { Suspense } from \" react \" ; 3 4 async function InstrumentsData () { 5 const supabase = await createClient () ; 6 const { data : instruments } = await supabase . from ( \" instruments \" ) . select () ; 7 8 return < pre >{ JSON.stringify( instruments , null , 2 ) } </ pre > ; 9 } 10 11 export default function Instruments () { 12 return ( 13 < Suspense fallback = { <div>Loading instruments ...</ div > } > 14 < InstrumentsData /> 15 </ Suspense > 16 ) ; 17 } 5 Start the app Run the development server, go to http://localhost:3000/instruments in a browser and you should see the list of instruments. 1 npm run dev Next steps # Set up Auth for your app Insert more data into your database Upload and serve static files using Storage Is this helpful? No Yes AI Tools Copy as Markdown Ask ChatGPT Ask Claude","score":27.12400931168676,"links":[]},{"source":"web_1779060041.hat","text":"Getting Started Use Supabase with TanStack Start Learn how to create a Supabase project, add some sample data to your database, and query the data from a TanStack Start app. 1 Create a Supabase project Go to database.new and create a new Supabase project. Alternatively, you can create a project using the Management API: 1 # First, get your access token from https://supabase.com/dashboard/account/tokens 2 export SUPABASE_ACCESS_TOKEN = \" your-access-token \" 3 4 # List your organizations to get the organization ID 5 curl -H \" Authorization: Bearer $SUPABASE_ACCESS_TOKEN \" \\ 6 https://api.supabase.com/v1/organizations 7 8 # Create a new project (replace <org-id> with your organization ID) 9 curl -X POST https://api.supabase.com/v1/projects \\ 10 -H \" Authorization: Bearer $SUPABASE_ACCESS_TOKEN \" \\ 11 -H \" Content-Type: application/json \" \\ 12 -d ' { 13 \"organization_id\": \"<org-id>\", 14 \"name\": \"My Project\", 15 \"region\": \"us-east-1\", 16 \"db_pass\": \"<your-secure-password>\" 17 } ' When your project is up and running, go to the Table Editor section of the Dashboard, create a new table and insert some data. Then in the Integrations > Data API section of the Dashboard, expose the specific tables or functions you want to access. To automatically grant access for new tables and functions in public , enable Default privileges for new entities . Alternatively, you can run the following snippet in your project's SQL Editor . This creates an instruments table with some sample data, sets a secure baseline by setting only the privileges each Postgres role needs, and adds Row Level Security (RLS) for enhanced security for database data by default. 1 -- Create the table 2 create table instruments ( 3 id bigint primary key generated always as identity , 4 name text not null 5 ); 6 7 -- Insert sample data into the table 8 insert into instruments ( name ) 9 values 10 ( ' violin ' ), 11 ( ' viola ' ), 12 ( ' cello ' ); 13 14 -- Grant the privileges the role needs, which is read access 15 grant select on public . instruments to anon; 16 17 -- Enable row level security for the table 18 alter table instruments enable row level security ; Create an RLS policy to make the data in your table publicly readable: 1 -- Create a policy to allow the anon role to read from the instruments table 2 create policy \" public can read instruments \" 3 on public . instruments 4 for select to anon 5 using (true); 2 Create a TanStack Start app Create a TanStack Start app using the official CLI. Explore drop-in UI components for your Supabase app. UI components built on shadcn/ui that connect to Supabase via a single command. Explore Components Terminal 1 npm create @tanstack/start@latest my-app -- --package-manager npm --toolchain biome 3 Install the Supabase client library The fastest way to get started is to use the supabase-js client library which provides a convenient interface for working with Supabase from a TanStack Start app. Navigate to the TanStack Start app and install supabase-js . Terminal 1 cd my-app && npm install @supabase/supabase-js 4 Declare Supabase Environment Variables Create a .env file in the root of your project and populate with your Supabase connection variables: Project URL No project found Publishable key No project found .env 1 VITE_SUPABASE_URL=<SUBSTITUTE_SUPABASE_URL> 2 VITE_SUPABASE_PUBLISHABLE_KEY=<SUBSTITUTE_SUPABASE_PUBLISHABLE_KEY> Get API details # Now that you've created some database tables, you are ready to insert data using the auto-generated API. To do this, you need to get the Project URL and key from the project Connect dialog . Read the API keys docs for a full explanation of all key types and their uses. Changes to API keys Supabase is changing the way keys work to improve project security and developer experience. You can read the full announcement on GitHub . The older anon and service_role keys will work until the end of 2026 but we strongly encourage switching to and using the new publishable ( sb_publishable_xxx ) and secret ( sb_secret_xxx ) keys now. In most cases, you can get keys from the Project's Connect dialog , but if you want a specific key, you can find them in the Settings > API Keys section of the Dashboard. For legacy keys , copy the anon key for client-side operations and the service_role key for server-side operations from the Legacy API Keys tab. For new keys , open the API Keys tab, if you don't have a publishable key already, click Create new API Keys , and copy the value from the Publishable key section. 5 Create a Supabase client utility Create a new file at src/utils/supabase.ts to initialize the Supabase client. src/utils/supabase.ts 1 import { createClient } from \" @supabase/supabase-js \" ; 2 3 export const supabase = createClient ( 4 import . meta . env . VITE_SUPABASE_URL , 5 import . meta . env . VITE_SUPABASE_PUBLISHABLE_KEY 6 ) ; 6 Query data from the app Replace the contents of src/routes/index.tsx with the following code to add a loader function that fetches the instruments data and displays it on the page. src/routes/index.tsx 1 import { createFileRoute } from ' @tanstack/react-router ' 2 import { supabase } from ' ../utils/supabase ' 3 4 export const Route = createFileRoute ( ' / ' )( { 5 loader : async () => { 6 const { data : instruments } = await supabase . from ( ' instruments ' ) . select () 7 return { instruments } 8 }, 9 component : Home , 10 } ) 11 12 function Home () { 13 const { instruments } = Route . useLoaderData () 14 15 return ( 16 < ul > 17 { instruments ?. map ( ( instrument ) => ( 18 < li key = { instrument . name }>{ instrument . name }</ li > 19 )) } 20 </ ul > 21 ) 22 } 7 Start the app Run the development server, go to http://localhost:3000 in a browser and you should see the list of instruments. Terminal 1 npm run dev Next steps # Set up Auth for your app Insert more data into your database Upload and serve static files using Storage Is this helpful? No Yes AI Tools Copy as Markdown Ask ChatGPT Ask Claude","score":27.12400931168676,"links":[]},{"source":"atlas_pulse_master.hat","text":"SOURCE: dallas_safety_intel.hat\nSLUG: dallas-safety-intel\nTITLE: Dallas Safety Intel\nQUERY: Dallas Safety Intel\n\nCONTENT:\nSafety Incident: MOTOR VEHICLE THEFT Location: 4200 MEMORY LANE BLVD, DALLAS TX 75241 Time: 2026-05-31 00:00:00.0000000 at 20:00 Police Division: SOUTH CENTRAL Council District: UNKNOWN Coordinates: 32.66226, -96.75356 Source ID: 078741-2026","score":20,"links":[]},{"source":"atlas_pulse_master.hat","text":"SOURCE: dallas_safety_intel.hat\nSLUG: dallas-safety-intel\nTITLE: Dallas Safety Intel\nQUERY: Dallas Safety Intel\n\nCONTENT:\nSafety Incident: MOTOR VEHICLE THEFT Location: 4200 MEMORY LANE BLVD, DALLAS TX 75241 Time: 2026-05-31 00:00:00.0000000 at 20:00 Police Division: SOUTH CENTRAL Council District: UNKNOWN Coordinates: 32.66226, -96.75356 Source ID: 078741-2026","score":20,"links":[]},{"source":"atlas_pulse_master.hat","text":"SOURCE: postgres_mastery.tah\nSLUG: postgres-mastery\nTITLE: Postgres Mastery\nQUERY: Postgres Mastery\n\nCONTENT:\nPostgreSQL Performance: Use EXPLAIN (ANALYZE, BUFFERS) for query profiling. In serverless (Next.js), always use Supavisor (Transaction mode) to prevent connection exhaustion. Indexing: Use Covering Indexes (INCLUDE) for Index-Only scans. Anti-Patterns: Avoid 'SELECT *' and 'COUNT(*)' on large tables; use caching for counts. Row Level Security (RLS): Policies are implicit WHERE clauses; columns in USING/CHECK must be indexed. Optimization: Wrap auth.uid() in a sub-select to force it as a constant for the planner. Security Definer: Always set a search_path for DEFINER functions to prevent hijacking. Mandatory for Sunset Pulse: Ensure 'leads' table uses { onConflict: 'email' } to respect unique constraints. \u0001 �P�\u0007�\u000fm�q��$����*�\u001c��K\u001a�\u0016\u0012��J#��JSONB Optimization: Use GIN (jsonb_path_ops) for containment (@>) queries—it is 20-30% smaller than default GIN. Functional Indexes: Create B-Tree indexes on specific high-frequency keys (e.g., metadata->>'status'). Storage: Use EXTERNAL storage for large blobs to keep table pages lean. \u0001 �P�\u0007�\u000fm�q��$����*�\u001c��K\u001a�\u0016\u0012��J#��pg_vector Ops: HNSW is the production standard for recall (<50M vectors) but has 2-5x memory overhead.","score":20,"links":[]}]},"metadata":{},"timestamp":"2026-07-16T21:29:27.723Z"}