{"_id":"@dasl/tile-lexicon","name":"@dasl/tile-lexicon","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@dasl/tile-lexicon","type":"module","version":"2.0.0","description":"AT Protocol lexicon, MASL schema, and shared TypeScript types for DASL tiles","author":{"name":"Robin Berjon","email":"robin@berjon.com"},"license":"Apache-2.0","publishConfig":{"access":"public"},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsc","prepublishOnly":"npm run build","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/darobin/dasl-tiles.git","directory":"tile-lexicon"},"devDependencies":{"mocha":"^11.7.6"},"gitHead":"9daf39816de4734601ff0b6d2b9a79c7bfa835f3","_id":"@dasl/tile-lexicon@2.0.0","bugs":{"url":"https://github.com/darobin/dasl-tiles/issues"},"homepage":"https://github.com/darobin/dasl-tiles#readme","_nodeVersion":"26.3.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-MeRgdv6MUBC5Bd6p8hZ19bRxLURbsSK1dJ6BekzehOWHfhJiIlSztBkFaQRsycRtHBVDATB4KVagb4pkWkUF0Q==","shasum":"b9285cc88d561a8804c6e57a700666fd6eeed44d","tarball":"https://registry.npmjs.org/@dasl/tile-lexicon/-/tile-lexicon-2.0.0.tgz","fileCount":12,"unpackedSize":35894,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDpnU8+12XYXUJv8Lx78xwI0Pfk2S/6opNGtYX/skNcLgIgUZsLNuDbifesTlI0NMzFzx4VzwzvsU/pjoVpOKCp3qc="}]},"_npmUser":{"name":"robin.berjon","email":"robin@berjon.com"},"directories":{},"maintainers":[{"name":"robin.berjon","email":"robin@berjon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tile-lexicon_2.0.0_1783068964599_0.8673995923562243"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-03T08:56:04.351Z","2.0.0":"2026-07-03T08:56:04.725Z","modified":"2026-07-03T08:56:05.046Z"},"maintainers":[{"name":"robin.berjon","email":"robin@berjon.com"}],"description":"AT Protocol lexicon, MASL schema, and shared TypeScript types for DASL tiles","homepage":"https://github.com/darobin/dasl-tiles#readme","repository":{"type":"git","url":"git+https://github.com/darobin/dasl-tiles.git","directory":"tile-lexicon"},"author":{"name":"Robin Berjon","email":"robin@berjon.com"},"bugs":{"url":"https://github.com/darobin/dasl-tiles/issues"},"license":"Apache-2.0","readme":"\n# @dasl/tile-lexicon\n\nThe AT Protocol lexicon and MASL schema for [DASL](https://dasl.ing/) tiles, plus\nthe shared TypeScript types used across the `@dasl/tile-*` packages.\n\nThis package is the single source of truth for the shapes of a tile manifest\n(MASL), its resources, and the responses produced when resolving a resource. It\nships no runtime logic beyond the schema data — everything else is types, which\nerase at compile time.\n\n## Install\n\n```sh\nnpm install @dasl/tile-lexicon\n```\n\n## Runtime exports\n\n```js\nimport { masl, maslHTTPHeaders } from '@dasl/tile-lexicon';\n\nmasl.id;                    // 'ing.dasl.masl'\nmasl.defs.masl.required;    // ['name', 'resources']\nmaslHTTPHeaders['content-type']; // { type: 'string' }\n```\n\n- **`masl`** — the `ing.dasl.masl` lexicon document (the `masl` object definition\n  and the tid-keyed `main` record that instantiates it into an AT record).\n- **`maslHTTPHeaders`** — the set of HTTP headers a MASL resource may carry,\n  expressed as lexicon property definitions.\n\n## Types\n\nType-only imports (`import type { … }`) give you the vocabulary the other packages\nspeak:\n\n```ts\nimport type {\n  Masl, StoredMasl, WriterMasl, InMemoryMasl, AnyMasl,\n  ResourceEntry, StoredResourceEntry, WriterResourceEntry, InMemoryResourceEntry,\n  CidLink, BlobRef, MaslHeaders,\n  MaslResponse, MaslResponseOk, MaslResponseError,\n  MaslIcon, MaslScreenshot, MaslSizing,\n} from '@dasl/tile-lexicon';\n```\n\n`Masl<E>` is generic over the shape of its resource entries, because the same\nmanifest is described differently depending on context:\n\n| Alias | Resource `src` is… | Used by |\n| --- | --- | --- |\n| `StoredMasl` | a `CidLink` / `BlobRef` read from a CAR or AT record | `@dasl/tile-car-reader`, AT/CAR loaders |\n| `WriterMasl` | a `CidLink` / `BlobRef` filled in on write (optional while building) | `@dasl/tile-writer`, `atile` |\n| `InMemoryMasl` | raw bytes (`ArrayBuffer` / `Uint8Array` / `string`) | memory & webXDC loaders |\n| `AnyMasl` | any of the above | `@dasl/tile-loader` |\n\n## Part of DASL tiles\n\n- [`@dasl/tiles`](../tiles) — meta-package re-exporting the whole toolkit\n- [`@dasl/tile-loader`](../tile-loader) — load tiles in the browser\n- [`@dasl/tile-server`](../tile-server) — the browser tile-loading server\n- [`@dasl/tile-writer`](../tile-writer) — write tiles into `.tile` files\n- [`@dasl/tile-car-reader`](../tile-car-reader) — read tiles from a CAR file\n- [`@dasl/atile`](../atile) — the tile-publishing CLI\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-32513ee4066b83ad2e4ef0602976994a"}