All Projects → ramon82 → Zuck.js

ramon82 / Zuck.js

Licence: mit
A javascript library that lets you add stories EVERYWHERE.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Zuck.js

instagram-stories
Get the Instagram Stories in Node.js and Browser
Stars: ✭ 86 (-97.47%)
Mutual labels:  stories, instagram, facebook, story
Statusstories
Status Stories = Snapchat stories, Instagram stories, Whatsapp Statuses, Facebook Messenger Stories.
Stars: ✭ 317 (-90.67%)
Mutual labels:  snapchat, whatsapp, facebook
Social Media Profiles Regexs
📇 Extract social media profiles and more with regular expressions
Stars: ✭ 324 (-90.46%)
Mutual labels:  snapchat, facebook, instagram
MyIGBot
MyIGBot is a Private API for Instagram to like, follow, comment, view & intaract with stories, upload post & stories, get all information about a user/posts and get posts based on locations/hashtags. It also supports proxy.
Stars: ✭ 137 (-95.97%)
Mutual labels:  stories, instagram, story
Stealing Ur Feelings
Winner of Mozilla's $50,000 prize for art and advocacy exploring AI
Stars: ✭ 784 (-76.91%)
Mutual labels:  snapchat, facebook, instagram
Ananas
An easy image editor integration for your Android apps.
Stars: ✭ 186 (-94.52%)
Mutual labels:  stories, instagram, facebook
Socialphish
The most complete Phishing Tool, with 32 templates +1 customizable
Stars: ✭ 378 (-88.87%)
Mutual labels:  snapchat, facebook, instagram
Shellphish
Phishing Tool for 18 social media: Instagram, Facebook, Snapchat, Github, Twitter, Yahoo, Protonmail, Spotify, Netflix, Linkedin, Wordpress, Origin, Steam, Microsoft, InstaFollowers, Gitlab, Pinterest
Stars: ✭ 1,037 (-69.46%)
Mutual labels:  snapchat, facebook, instagram
Nextlevel
NextLevel was initally a weekend project that has now grown into a open community of camera platform enthusists. The software provides foundational components for managing media recording, camera interface customization, gestural interaction customization, and image streaming on iOS. The same capabilities can also be found in apps such as Snapchat, Instagram, and Vine.
Stars: ✭ 1,940 (-42.87%)
Mutual labels:  snapchat, media, instagram
Whizzz-The-ChatApp
Whizzz is a real-time, one-to-one Android chat application made using Firebase, a beautiful user interface, and a push-notification feature.
Stars: ✭ 66 (-98.06%)
Mutual labels:  instagram, facebook, whatsapp
Photoeditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
Stars: ✭ 3,105 (-8.57%)
Mutual labels:  facebook, instagram, stories
hashtag.io
Hashtag.io is a PHP based social networking website, which supports exclusive multimedia content, sharing and private or group messaging service.
Stars: ✭ 64 (-98.12%)
Mutual labels:  instagram, facebook
VKRdownloader
Vkrdownloader: All in one Video Downloader - Download videos from facebook twitter youtube tiktok and 1000+ other sites . YouTube downloader , facebook downloader . made by Vijay Kumar
Stars: ✭ 25 (-99.26%)
Mutual labels:  instagram, facebook
CollectionLayouts
A collection of UICollectionViewLayouts
Stars: ✭ 64 (-98.12%)
Mutual labels:  stories, instagram
IGStoryButtonKit
IGStoryButtonKit provides an easy-to-use button with rich animation and multiple way inspired by instagram story/stories.
Stars: ✭ 31 (-99.09%)
Mutual labels:  instagram, story
Skeleton
Skeleton is a Social Engineering tool attack switcher
Stars: ✭ 44 (-98.7%)
Mutual labels:  instagram, facebook
whatsapp-chat-parser-website
Website to view your exported WhatsApp chat logs 👁‍🗨
Stars: ✭ 68 (-98%)
Mutual labels:  viewer, whatsapp
spark-ar-creators
List of 9500 (and counting) Spark AR Creators. Open an issue or contact me if you want to be added.❤️
Stars: ✭ 122 (-96.41%)
Mutual labels:  instagram, facebook
DaProfiler
DaProfiler allows you to create a profile on your target based in France only. The particularity of this program is its ability to find the e-mail addresses your target.
Stars: ✭ 58 (-98.29%)
Mutual labels:  instagram, facebook
SocialInfo4J
fetch data from Facebook, Instagram and LinkedIn
Stars: ✭ 44 (-98.7%)
Mutual labels:  instagram, facebook

zuck.js

Zuck.JS demo

Add stories EVERYWHERE

MWHAHAHAHA. Seriously. This script is a copy of Facebook Stories of a copy of Facebook Messenger Day (RIP) of a copy of WhatsApp status of a copy of Instagram stories of a copy of Snapchat stories.

You can read stories from any endpoint (JSON, Firebase, etc.) and the script will do the rest.

Live demo: https://on.ramon82.com/2k9e7au

React sample: https://on.ramon82.com/2lDP53H

CDNJS NPM

Features

  • Vanilla JavaScript
  • Desktop support (why not?)
  • Custom CSS themes: Snapgram, FaceSnap, Snapssenger and VemDeZAP
  • Gestures, Custom events & custom templates
  • A simple API to manage your "Stories timeline"
  • 3D cube effect
  • React support
  • RTL support

How to use

You can download this git repository or install via npm install zuck.js

Initialize:

let stories = new Zuck(`{{element id string or element reference}}`, {
  skin: 'snapgram',      // container class
  avatars: true,         // shows user photo instead of last story item preview
  list: false,           // displays a timeline instead of carousel
  openEffect: true,      // enables effect when opening story
  cubeEffect: false,     // enables the 3d cube effect when sliding story
  autoFullScreen: false, // enables fullscreen on mobile browsers
  backButton: true,      // adds a back button to close the story viewer
  backNative: false,     // uses window history to enable back button on browsers/android
  previousTap: true,     // use 1/3 of the screen to navigate to previous item when tap the story
  localStorage: true,    // set true to save "seen" position. Element must have a id to save properly.
  reactive: true,        // set true if you use frameworks like React to control the timeline (see react.sample.html)
  rtl: false,            // enable/disable RTL

  stories: [ // array of stories
    // see stories structure example
  ],

  callbacks:  {
    onOpen (storyId, callback) {
      callback();  // on open story viewer
    },

    onView (storyId) {
      // on view story
    },

    onEnd (storyId, callback) {
      callback();  // on end story
    },

    onClose (storyId, callback) {
      callback();  // on close story viewer
    },

    onNavigateItem (storyId, nextStoryId, callback) {
      callback();  // on navigate item of story
    },

    onDataUpdate (currentState, callback) {
      callback(); // use to update state on your reactive framework
    }
  },

  template: {
    // use these functions to render custom templates
    // see src/zuck.js for more details

    timelineItem (itemData) {
      return ``;
    },

    timelineStoryItem (itemData) {
      return ``;
    },

    viewerItem (storyData, currentStoryItem) {
      return ``;
    },

    viewerItemPointer (index, currentIndex, item) {
      return ``;
    },

    viewerItemBody (index, currentIndex, item) {
      return ``;
    }
  },

  language: { // if you need to translate :)
    unmute: 'Touch to unmute',
    keyboardTip: 'Press space to see next',
    visitLink: 'Visit link',
    time: {
      ago:'ago', 
      hour:'hour', 
      hours:'hours', 
      minute:'minute', 
      minutes:'minutes', 
      fromnow: 'from now', 
      seconds:'seconds', 
      yesterday: 'yesterday', 
      tomorrow: 'tomorrow', 
      days:'days'
    }
  }
});

Add/update a story (timeline item):

stories.update({item object});

Remove a story:

stories.remove(storyId); // story id

Add/remove a story item:

stories.addItem(storyId, {item object});
stories.removeItem(storyId, itemId);

Stories structure example

A JSON example of the stories object:

{
  id: "",               // story id
  photo: "",            // story photo (or user photo)
  name: "",             // story name (or user name)
  link: "",             // story link (useless on story generated by script)
  lastUpdated: "",      // last updated date in unix time format
  seen: false,          // set true if user has opened

  items: [              // array of items
    // story item example
    {
      id: "",       // item id
      type: "",     // photo or video
      length: 3,    // photo timeout or video length in seconds - uses 3 seconds timeout for images if not set
      src: "",      // photo or video src
      preview: "",  // optional - item thumbnail to show in the story carousel instead of the story defined image
      link: "",     // a link to click on story
      linkText: "", // link text
      time: "",     // optional a date to display with the story item. unix timestamp are converted to "time ago" format
      seen: false   // set true if current user was read,
      [customKey]: "", //  custom-value
      [anotherCustomKey]: "" // another-custom-value
    }
  ]
}

Alternate call

In your HTML:

<div id="stories">

    <!-- story -->
    <div class="story {{ story.seen ? 'seen' : '' }}" data-id="{{storyId}}" data-last-updated="{{story.lastUpdated}}" data-photo="{{story.photo}}">
        <a class="item-link" href="{{story.link}}">
          <span class="item-preview">
            <img src="{{story.photo}}" />
          </span>
          <span class="info" itemProp="author" itemScope="" itemType="http://schema.org/Person">
            <strong class="name" itemProp="name">{{story.name}}</strong>
            <span class="time">{{story.lastUpdated}}</span>
          </span>
        </a>
        
        <ul class="items">
        
            <!-- story item -->
            <li data-id="{{storyItemId}}" data-time="{{storyItem.time}}" class="{{storyItem.seen}}">
                <a href="{{storyItem.src}}"
                
                 data-type="{{storyItem.type}}" 
                 data-length="{{storyItem.length}}" 
                 data-link="{{storyItem.link}}" 
                 data-linkText="{{storyItem.linkText}}" 
                 
                 data-custom-key="{{storyItem.custom-key}}" 
                 data-another-custom-key="{{storyItem.another-custom-key}}">
                    <img src="{{storyItem.preview}}" />
                </a>
            </li>
            <!--/ story item -->
            
        </ul>
    </div>
    <!--/ story -->
    
</div>

Then in your JS:

let stories = new Zuck({{element id string or element reference}}); 

Tips

  • You can use with autoFullScreen option (disabled by default) to emulate an app on mobile devices.
  • If you use Ionic or some js that uses location.hash, you should always disable the "backNative" option which can mess your navigation.

Limitations

On mobile browsers, video can't play with audio without a user gesture. So the script tries to play audio only when the user clicks to see the next story. When the story is playing automatically, the video is muted, but an alert is displayed so the user may click to turn the audio on.

Stories links opens in a new window too. This behaviour occurs because most websites are blocked on iframe embedding.

License

MIT

Show your support!

Please ⭐️ this repository if this project helped you! Feel free to buy me a coffee:

ko-fi

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].