{"library":"remix","title":"Remix Framework","description":"Remix is a full-stack web framework for building better websites with a focus on web standards and modern user experience. The current stable version is 2.17.4. Recent releases indicate a move towards version 3 with significant architectural changes, particularly in data handling and request context management, which are being rolled out through alpha versions and updates to core sub-packages like `session-middleware` and `fetch-router`.","language":"javascript","status":"active","last_verified":"Sat Apr 18","install":{"commands":["npm install remix"],"cli":null},"imports":["import { SqlStatement } from 'remix/data-table';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { SqlStatement, sql } from 'remix/data-table';\n\ninterface User {\n  id: string;\n  name: string;\n}\n\nasync function getUsersQuery(nameFilter?: string): Promise<SqlStatement<User[]>> {\n  let query = sql`SELECT id, name FROM users`;\n  if (nameFilter) {\n    query = sql`${query} WHERE name = ${nameFilter}`;\n  }\n  return query as SqlStatement<User[]>;\n}\n\nasync function runExample() {\n  // In a real app, this would be executed by a Database adapter.\n  const statement = await getUsersQuery('Alice');\n  console.log('Generated SQL:', statement.sql);\n  console.log('Parameters:', statement.params);\n}\n\nrunExample();","lang":"typescript","description":"This example demonstrates defining a SQL statement using the `SqlStatement` and `sql` template literal tag from `remix/data-table`. This API is part of the new data layer introduced in Remix v3, allowing for type-safe SQL query construction.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}