Code Monkey home page Code Monkey logo

libmoji's People

Contributors

lights0123 avatar matthewnau avatar powerlated avatar willdavidow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libmoji's Issues

Praise

Libmoji is awesome!
๐Ÿ‘

Support Bitmoji sticker?

Have you thought about adding the Bitmoji sticker picker ? Especially the option to lookup stickers based on keywords.
Great library though @matthewnau This is awesome.

Licence?

Photo to Bitmoji

Has anyone found an endpoint which takes a selfie and generates a bitmoji? I saw snapchat can do it so it should be possible

libMoji play canvas Intergration

Hello Mathew,
Game developer here, I am part of a team that is building a social impact project around elections, we are aiming to provide a highly customizable avatar creation and sharing experience, your libmoji tool would help us greatly in archiving this. I have been working on getting to integrate it into play canvas with very limited success, I would be greatly honored if you would help me out in setting it up

Corporate license

Can i use this library at corporate level or corporate business for setting up user picture?

Update package-lock.json

@willdavidow what do I need to update in the package-lock.json for version 2.1.2? I have not worked with this before. Your insight is greatly appreciated! This should be the last thing that needs to be updated before publishing to npm.

Does this still work ?

I keep hitting error with the urls to view the bitmojis. I am not sure if this lib is still relevant

Screenshot 2024-03-30 at 8 55 08โ€ฏAM

Adding this to mobile application

Hi there

Thanks for the library

I would like to know if i can get the user avatarID from a mobile application(react-native- expo) so the bitmoji can look like the user instead of randomizing the features

Thanks

Display traits individually?

Would require retrieving an individual Bitmoji trait item / clothing item without the character displaying.

i.e. I would like to display the 'hair' by itself as an image without adding it to a Bitmoji.

Does this library still work?

Hi, I am running the following code based on the last bit from the documentation, and it's saving empty images, also when I follow the URL that gets created it's a blank page. Looking at the dates it's from 1.5 years ago, so I was wondering if bitmoji changed their APIs or am I not using the library correctly?

const fs = require('fs');
const https = require('https');
const libmoji = require('libmoji');


function saveImageToDisk(url, localPath) {
    var fullUrl = url;
    var file = fs.createWriteStream(localPath);
    var request = https.get(url, function(response) {
        response.pipe(file);
    });
};

let comicId = libmoji.getComicId(libmoji.randTemplate(libmoji.templates));
let avatarId = libmoji.getAvatarId("https://render.bitstrips.com/v2/cpanel/8968038-316830037_35-s5-v1.png?transparent=1&palette=1");
let outfit = libmoji.randOutfit(libmoji.getOutfits(libmoji.randBrand(libmoji.getBrands("male"))));

const bitmojiUrl = libmoji.buildRenderUrl(comicId,avatarId,1,2,outfit);
console.log(bitmojiUrl);

saveImageToDisk(bitmojiUrl, 'sample.jpg');
saveImageToDisk(bitmojiUrl, 'sample.png');

Thanks for any help!

Reversing Bitmoji ID

Hi Matthew,

Is it possible to use a Bitmoji ID to create a preview URL?

Kind regards,
Nik

Pull in Latest Bitmoji Endpoint Data

@matthewnau I'm not sure how often the Bitmoji/Snapchat folks are adding new stuff (outfits, brands and traits?) to the various Bitmoji endpoints...

Do you think it makes sense to (before committing builds) have an update-data step when running the build command that hits the endpoint(s) and grabs the latest JSON and writes to the build folder, archiving the previous version in a new folder/file location, something like: /archive/tempates_{date-removed-from-main-build}.json... or something like that?

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.