wasmagic

A WebAssembly compiled version of libmagic with a simple API for Node. WASMagic provides accurate filetype detection with zero prod dependencies (by moshen)

Wasmagic Alternatives

Similar projects and alternatives to wasmagic

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better wasmagic alternative or higher similarity.

wasmagic reviews and mentions

Posts with mentions or reviews of wasmagic. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-15.
  • Magika: AI powered fast and efficient file type identification
    15 projects | news.ycombinator.com | 15 Feb 2024
    As someone that has worked in a space that has to deal with uploaded files for the last few years, and someone who maintains a WASM libmagic Node package ( https://github.com/moshen/wasmagic ) , I have to say I really love seeing new entries into the file type detection space.

    Though I have to say when looking at the Node module, I don't understand why they released it.

    Their docs say it's slow:

    https://github.com/google/magika/blob/120205323e260dad4e5877...

    It loads the model an runtime:

    https://github.com/google/magika/blob/120205323e260dad4e5877...

    They mark it as Experimental in the documentation, but it seems like it was just made for the web demo.

    Also as others have mentioned. The model appears to only detect 116 file types:

    https://github.com/google/magika/blob/120205323e260dad4e5877...

    Where libmagic detects... a lot. Over 1600 last time I checked:

    https://github.com/file/file/tree/4cbd5c8f0851201d203755b76c...

    I guess I'm confused by this release. Sure it detected most of my list of sample files, but in a sample set of 4 zip files, it misidentified one.

Stats

Basic wasmagic repo stats
1
35
6.3
27 days ago

moshen/wasmagic is an open source project licensed under BSD 2-clause "Simplified" License which is an OSI approved license.

The primary programming language of wasmagic is TypeScript.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com