Git Product home page Git Product logo

blueb.js's Introduction

blueb.js ๐Ÿซ

blueb.js - very simple neural network framework npm package, powered by wasm.

Overview

Underhood blueb.js uses my C stb style single-header blueberry.h library as neural network framework, as well as some other utility C libraries such as lemon.h and peach.h, for memory allocations and linear algebra functionality respectively.

Higly inspired by tsodings nn library github.com/tsoding/nn.h

Sadly this time blueb.js is a NEW javascript framework btw.

Links

  1. Live demonstration of a web application what uses blueb.js maksasj.github.io/nnate
  2. Node package page npmjs.com/package/blueb.js
  3. Source code avaiable at github.com/Maksasj/blueb.js
  4. blueberry.h and other C libraries source code github.com/Maksasj/caifu

Cool looking widgets license version NPM Version

Build

  1. Build manually
    First of all requirements:

    • Clang 14.0.0
    • wasm-ld
    • Node (Have test with Node v20.11.0)

    Building process involves building wasm and node package, in root directory you can find a bash.sh file. This bash script can be used for building a wasm module.

    # Build wasm module
    set -xe
    
    clang \
        -Wall \
        -Wextra \
        -I3dparty/caifu/lemon \
        -I3dparty/caifu \
        --target=wasm32 \
        -o blueberry.o \
        -c ./src/c/blueberry.c \
    
    wasm-ld \
        -m wasm32 \
        --no-entry --export-all --allow-undefined \
        -o dist/blueberry.wasm blueberry.o \
    
    # Delete temporary object file
    rm blueberry.o

    Therefore node package could be builded with simple, command.

    npm run build

    Actually above command will automatically try to build wasm file and node package and put everything into dist folder.

License

blueb.js is free and open source library/package. All code in this repository is licensed under

blueb.js's People

Contributors

maksasj avatar alexshukel avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.