← Recipe: synchronize Browser and system Back

2. Replace luastra.json

luastra/navigation · luastra/host · navigation.history · about 20 minutes
navigation.history + ui.render

The host capability is required for URL/history mutations and platform Back responses.

When to use it

Replace the generated manifest before calling any Host history or system Back response API.

Focused example

{
  "schemaVersion": 2,
  "project": { "id": "dev.luastra.history-recipe", "entry": "app/main" },
  "sdk": { "contract": 1 },
  "capabilities": ["navigation.history", "ui.render"],
  "modules": [
    {
      "id": "app/main",
      "source": "src/main.luau",
      "dependencies": ["luastra/app", "luastra/host", "luastra/navigation", "luastra/ui"]
    },
    {
      "id": "app/tests/history",
      "source": "tests/smoke.luau",
      "dependencies": ["app/main", "luastra/navigation"]
    }
  ],
  "tests": ["app/tests/history"]
}

Complete inventory

View all pages in Recipe: synchronize Browser and system Back
← Previous: 1. Create the projectNext: 3. Replace src/main.luau →