Keep the scope narrow and dependency-free
A curated registry and a small set of helpers cover common upload and HTTP needs without a broad database dependency, at the cost of not covering every registered type.
A small, zero-dependency TypeScript library of MIME constants and helpers for HTTP APIs, uploads, and file extensions.
Upload, download, and HTTP code needs dependable mappings between filenames or extensions and media types. Carrying a broad MIME database into every bundle for that job adds weight most applications do not need.
One extension can have aliases or ambiguous mappings.
Lookup must normalize case, dots, and paths without implying that file content was inspected.
ESM and CommonJS consumers need stable typed exports with no runtime dependencies.
A curated media-type registry backs pure lookup and validation functions, which are built with tsup into a dual-format package with typed exports. A TanStack Start docs and playground app in the same workspace runs against the local package.
A curated media-type registry backs pure functions for lookup and validation.
The package is built with tsup into dual ESM and CommonJS formats with typed exports.
A workspace-linked TanStack Start app provides documentation and a playground that run against the local package.
A curated registry and a small set of helpers cover common upload and HTTP needs without a broad database dependency, at the cost of not covering every registered type.
A filename only suggests a media type. The library never inspects file bytes, so callers should not mistake a lookup for content validation.
The documentation app runs the exact package that will be released, so examples and behavior are checked against the real build before publishing.

Share your challenge, scope, and timeline to start a focused conversation.