# Gas > Gas is a modular Go framework for SaaS backends. The core, github.com/gasmod/gas, gives dependency injection, routing, middleware, events and a service lifecycle. Configuration, logging, database access, migrations, auth, caching, object storage, job queues, email, template storage and HTML rendering are separate Go modules, so an app imports only what it uses. Use Gas for a Go HTTP API or worker that needs this plumbing. Most modules implement an interface the core declares, so a service depends on the interface, not the module, and any module can be replaced by your own implementation or a test double. Each package's documentation is its contract: it states the package's behavior, defaults and errors, with the error messages verbatim, so code can be written against it without reading the source. To work with these docs: - Read the gas package first. Every module builds on it. - Every page is also served as Markdown: add `index.md` to its URL, as in https://gasmod.dev/start/installation/index.md. - For exact signatures, run `go doc`, which matches the version in go.mod, such as `go doc github.com/gasmod/gas/storage.CopyObjectInput`. - A skill for coding agents, generated from the same documentation, is at https://github.com/gasmod/gas/tree/main/skills/gas. ## Search This site has a search endpoint: https://context7.com/api/v2/ask?siteKey=ask_b845b566cb63bd033e9c576d&query=. It returns documentation that answers the question, with a source link for each part. No API key is needed. If nothing matches, it says so. ## Documentation Sets - [Abridged documentation](https://gasmod.dev/llms-small.txt): a compact version of the documentation for Gas, with non-essential content removed - [Complete documentation](https://gasmod.dev/llms-full.txt): the full documentation for Gas - [Start](https://gasmod.dev/_llms-txt/start.txt): installing Gas, registering modules, and laying out a project - [gas](https://gasmod.dev/_llms-txt/gas.txt): the core package: services and the container, the lifecycle, routing, handlers, errors, middleware, events and configuration - [config](https://gasmod.dev/_llms-txt/config.txt): configuration from environment variables, .env, JSON and AWS Secrets Manager, bound to structs - [log](https://gasmod.dev/_llms-txt/log.txt): structured logging over slog or zerolog, with log shipping - [database](https://gasmod.dev/_llms-txt/database.txt): PostgreSQL, MySQL and SQLite, with transaction helpers - [migrate](https://gasmod.dev/_llms-txt/migrate.txt): database migrations owned by the services that need them - [auth](https://gasmod.dev/_llms-txt/auth.txt): JWTs, sessions, API keys and single-use tokens - [cache](https://gasmod.dev/_llms-txt/cache.txt): key-value caching in memory or on Valkey - [storage](https://gasmod.dev/_llms-txt/storage.txt): object storage on S3, a local directory or memory - [queue](https://gasmod.dev/_llms-txt/queue.txt): job queues on Amazon SQS or in memory - [email](https://gasmod.dev/_llms-txt/email.txt): transactional email over Amazon SES or an in-memory outbox - [template](https://gasmod.dev/_llms-txt/template.txt): template storage in memory, a directory, an embedded FS or a database - [ui](https://gasmod.dev/_llms-txt/ui.txt): HTML pages with layouts, partials, static files and HTMX fragments ## Notes - The complete documentation includes all content from the official documentation - The content is automatically generated from the same source as the official documentation