Skip to content

feat: generate apps that start tuned - #53

Merged
crimson-knight merged 4 commits into
mainfrom
feat/generate-tuned-apps
Nov 9, 2026
Merged

crimson-knight merged 4 commits into
mainfrom
feat/generate-tuned-apps

Conversation

@crimson-knight

Copy link
Copy Markdown
Member

amber new plus amber generate scaffold now produce an app that runs with the configuration the Amber benchmark proved, with no hand edits.

Generated apps now contain:

  • Dependencies: Amber, Grant and asset_pipeline pinned by commit. No pg or sqlite3 shard; Grant owns those drivers. MySQL apps keep the mysql shard pinned to Grant's lock.
  • Database: a pool of 4 through Grant's connection registry, sized by DB_POOL_SIZE. Production Postgres defaults to the Unix socket, with DATABASE_URL overriding it. SQLite gets an 8 MiB page cache.
  • Routes: a lean_read pipeline for public reads; session, flash and CSRF on the web pipeline. Production has no per-request logger.
  • Compression and caching: a small CompressedResponsePipe on the session and static pipelines, stateless SiteHeader and SiteFooter warmed at boot, scaffold index and show answered through the page cache, writes clearing exactly the pages they changed, and escape_text in row and detail views. Fingerprinted assets stay immutable through Amber::Pipe::Static.
  • README: states what is on by default and how to change each setting.

amber database commands rewrite a Postgres socket directory URL to the socket file for the crystal-pg 0.29 driver the CLI links.

The native app template keeps its existing Amber pin.

Verified with the full spec suite, scripts/check_beta_contract.sh, scripts/smoke_generated_web.sh, and production runs of generated Postgres and SQLite apps exercised with curl.

@crimson-knight
crimson-knight merged commit 51ccb6f into main Nov 9, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant