← Recipe: add typed navigation

2. Replace luastra.json

luastra/navigation · checked parameters · about 15 minutes
luastra/navigation + luastra/ui

Pure typed navigation needs no host capability beyond rendering because this recipe does not yet modify browser History.

When to use it

Use this minimal manifest for in-memory typed routing; add navigation.history only when calling the matching Host history API.

Focused example

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

Complete inventory

View all pages in Recipe: add typed navigation
← Previous: 1. Create the projectNext: 3. Replace src/main.luau →