# Logic SDK > Write your logic first. Run it from anywhere. Typed functions with policies, transactions and events, run from APIs, AI tools, scripts or jobs. ## Start - [Introduction](https://logic-sdk.dev/docs): Write business logic once and run it from any caller. - [Installation](https://logic-sdk.dev/docs/installation): Add Logic SDK and choose a database adapter for mutations. - [Quickstart](https://logic-sdk.dev/docs/quickstart): Set up a module, run one query, and test its result. - [Examples](https://logic-sdk.dev/docs/examples): Run the shop and bookings apps from the repository. ## Concepts - [Functions](https://logic-sdk.dev/docs/concepts/functions): The function kind controls what its handler can read, write, and run. - [Scope](https://logic-sdk.dev/docs/concepts/scope): The scope identifies who runs a function and where it runs. - [Authorization](https://logic-sdk.dev/docs/concepts/authorization): Policies control who may run a function, and record rules control what they may do. - [Transactions](https://logic-sdk.dev/docs/concepts/transactions): A mutation and its nested mutations commit or roll back together. - [Events](https://logic-sdk.dev/docs/concepts/events): A mutation emits an event, and its listeners run after commit. - [Jobs](https://logic-sdk.dev/docs/concepts/jobs): The registry runs jobs and rebuilds saved scopes. - [Crons](https://logic-sdk.dev/docs/concepts/crons): Crons match the clock and run across servers. - [Errors](https://logic-sdk.dev/docs/concepts/errors): An application error carries a kind, a code, and details of an expected failure. - [Config and services](https://logic-sdk.dev/docs/concepts/config): The registry supplies settings and services that handlers use. - [Output](https://logic-sdk.dev/docs/concepts/output): An output schema controls the value a caller receives. - [Meta](https://logic-sdk.dev/docs/concepts/meta): Meta supplies typed data about a definition to wrap and integrations. ## Guides - [Tests with a real database](https://logic-sdk.dev/docs/guides/testing): Test a booking and its jobs with a transaction that rolls back after each test. - [Framework callers](https://logic-sdk.dev/docs/guides/frameworks): Bind a caller to a request in Hono, SvelteKit, or Next.js. - [AI tools](https://logic-sdk.dev/docs/guides/ai): Give an AI SDK model a named tool that runs as a caller. - [oRPC procedures](https://logic-sdk.dev/docs/guides/orpc): Publish a function in an oRPC router and run it from a typed client. - [HTTP routes](https://logic-sdk.dev/docs/guides/http): Run a function from a route and return app errors as HTTP responses. - [Third-party callbacks](https://logic-sdk.dev/docs/guides/callbacks): Run an internal function from a verified callback when nobody is signed in. - [Node workers](https://logic-sdk.dev/docs/guides/node): Run due jobs and tick crons in a long-running Node or Bun process. - [Cloudflare Workers](https://logic-sdk.dev/docs/guides/cloudflare): Run jobs with Cloudflare Queues and recover missed work with a Cron Trigger. ## Reference - [API](https://logic-sdk.dev/docs/reference/api): Look up registry options, definers, callers, and context members. - [Adapters](https://logic-sdk.dev/docs/reference/adapters): Compare the setup and guarantees for database and jobs adapters. - [CLI commands](https://logic-sdk.dev/docs/reference/cli): List, inspect, and graph logic-sdk definitions from the terminal. - [Error reference](https://logic-sdk.dev/docs/reference/errors): Look up error kinds, codes, default messages, and HTTP statuses. - [Glossary](https://logic-sdk.dev/docs/reference/glossary): Look up terms used in the Logic SDK manual. ## Other - [Diagram components](https://logic-sdk.dev/docs/reference/diagrams): Static diagrams you can edit directly in MDX. ## Agent skills - [logic-sdk](https://logic-sdk.dev/.well-known/agent-skills/logic-sdk/SKILL.md): Read the Logic SDK docs instead of answering from memory. Write your logic first. Run it from anywhere. Typed functions with policies, transactions and events, run from APIs, AI tools, scripts or jobs. Use when a task involves Logic SDK: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://logic-sdk.dev/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://logic-sdk.dev/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://logic-sdk.dev/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://logic-sdk.dev/openapi.json. - [Agent skills](https://logic-sdk.dev/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://logic-sdk.dev/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://logic-sdk.dev/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://logic-sdk.dev/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://logic-sdk.dev/sitemap.xml): Every indexable page URL with its last-modified date.