### Setup Development Environment Source: https://github.com/arianrhodsandlot/retroassembly/blob/main/docs/contributing.md Execute this command to set up the development environment after installing packages. ```sh node --run=setup ``` -------------------------------- ### Install Node.js Packages Source: https://github.com/arianrhodsandlot/retroassembly/blob/main/docs/contributing.md Run this command to install all necessary Node.js packages for development. ```sh pnpm i ``` -------------------------------- ### Run Development Server Source: https://github.com/arianrhodsandlot/retroassembly/blob/main/docs/contributing.md Start the development server using this command. ```sh node --run=dev ``` -------------------------------- ### Type-Safe API Client Example Source: https://github.com/arianrhodsandlot/retroassembly/blob/main/agents.md Demonstrates how to use the type-safe API client to fetch user data. Ensure the client and parseResponse are imported correctly. ```typescript import { client, parseResponse } from '#@/api/client.ts' const data = await parseResponse(client.users.$get()) ``` -------------------------------- ### Controller Business Logic Example Source: https://github.com/arianrhodsandlot/retroassembly/blob/main/agents.md Illustrates how to access request context, including the database instance, within a controller function for business logic implementation. ```typescript export async function myController() { const c = getContext() const { db } = c.var // Business logic return result } ``` -------------------------------- ### Runtime Detection Example Source: https://github.com/arianrhodsandlot/retroassembly/blob/main/agents.md Shows how to detect the current runtime environment (Workers or Node.js) using Hono's adapter. This is useful for environment-specific logic. ```typescript import { getRuntimeKey } from 'hono/adapter' const isWorkers = getRuntimeKey() === 'workerd' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.