• Stars
    star
    354
  • Rank 120,042 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

💬 ReactJS based comic strip creator using fabric.js canvas rendering

React Komik!

ReactJS based comic strip creator using fabric.js canvas rendering. It's like spectacle but for comic. You can edit (positioning, scaling, coloring) the comic after rendering. Reactify anything, reactify comic.

react-komik

jscomic

Usage

NPM modules

Just install it from npm

npm install react-komik

You can use the component by require it and bundle it with webpack or browserify. Don't forget to import React, ReactDOM, and use Babel/JSX transformer with ES2015 (recommended)

	import React from 'react';
	import { render } from 'react-dom';
	import { Strip, Panel, Character, Balloon } from 'react-komik';

	let Comic = (props) => (
		<Strip title="Your title here" column="1">
			<Panel>
				<Character
					image="char.png">
					<Balloon 
						text="Reactify Comic!" />
				</Character>
			</Panel>
		</Strip>
	);

	render(<Comic />, document.getElementById('root'));

UMD Browser

Download or include the komik.js file to your HTML. Don't forget to include React, ReactDOM and JSX transformer/Babel. Please use NPM modules instead for production.

	<script src="http://sonnylazuardi.github.io/react-komik/dist/komik.js"></script>
	<script>
		let { Strip, Panel, Character, Balloon } = Komik;

		class Comic extends React.Component {
			render() {
				return (
					<Strip title="Your title here" column="1">
						<Panel>
							<Character
								image="char.png">
								<Balloon 
									text="Reactify Comic!" />
							</Character>
						</Panel>
					</Strip>
				);
			}
		}

		ReactDOM.render(<Comic />, document.getElementById('root'));
	</script>

Demo

This demo is using UMD browser, hosted on codepen and jsbin.

http://codepen.io/sonnylazuardi/pen/JGKmGE

http://jsbin.com/zaxabi/edit?html,js,output

Components

There are four main components:

Strip

Attribute Value Type Default Description
title String "Comic Title" Your comic title
column Integer 2 Number of comic's column
padding Integer 0 Comic padding
width Integer 500 Comic's width
height Integer 500 Comic's height
top Integer 0 Comic's top position
left Integer 0 Comic's left position
fill String (Color) 'white' Comic's background color
stroke String (Color) 'black' Comic's stroke color
strokeWidth Integer 0 Comic's stroke width
fontFamily String (Font Name) "Arial" Comic's font family
fontSize Integer 13 Comic's font size
upperCase Boolan false Comic's text upper case

Panel

Attribute Value Type Default Description
height Integer 180 Panel's height
padding Integer 20 Panel's padding
fill String (Color) 'white' Panel's background color
stroke Integer 'black' Panel's stroke color
strokeWidth Integer 3 Panel's stroke width
background String (Image URL) null Panel's background image

Character

Attribute Value Type Default Description
image String (Image URL) 'char1.png' Character's image
scale Decimal (0 - 1) 1 Character's image scale
align String ('center', 'right', 'left') 'center' Character's align position
left Integer null Character's left position (will overwrite align)
bottom Integer 0 Character's bottom position
top Integer null Character's top position (will overwrite bottom position)

Balloon

Attribute Value Type Default Description
text String 'Hi Bro!' Balloon's text
image String (SVG URL) 'chat_right.svg' Chat balloon SVG images
left Integer null Balloon's left position
bottom Integer (from Character's top) -70 Balloon's bottom position
top Integer null Balloon's top position (will overwrite bottom)
scale Decimal (0 - 1) 0.8 Balloon's image scale
align String ('center', 'left', 'right') 'left' Balloon's align from character
padding Integer 12 Balloon's text padding
height Integer 150 Balloon's height
textAlign String ('center', 'left', 'right') 'center' Balloon's text align
fontFamily String (Font Name) (The same with Strip's fontFamily) Balloon's font family
fontSize Integer (The same with Strip's fontSize) Balloon's font size

Contributing

Ideas, issues, and PRs are welcomed. You can also directly shoot me an email at [email protected].

JS Comic

This project is actually an effort to write comic easier for JS Comic. Please follow @jscomicnet or like JS Comic FB page.

License

MIT @sonnylazuardi

More Repositories

1

chat-ai-desktop

Unofficial ChatGPT desktop app for Mac & Windows menubar using Tauri & Rust
Rust
1,978
star
2

react-native-nike-running

🏃 UI & UX Prototype of redesigned Nike+ Running for React Native 📱+ React Native DOM (Web) 🌏
JavaScript
684
star
3

colorGPT

Generating color name captured from real-world
TypeScript
583
star
4

react-native-credit-card

💳 React native credit card display component
JavaScript
382
star
5

ziliun-react-native

Ziliun article reader android app built with React Native
JavaScript
289
star
6

react-native-bouncing-preloader

⛹️‍♂️ Bouncing preloader component with custom icons in React Native
JavaScript
189
star
7

awponent

😎 curated list of awesome react native ui components
JavaScript
182
star
8

21mobile

🎬 cinema 21 movie schedule app built with react native, graphql, redux
JavaScript
162
star
9

globe-3d

Convert your design to 3D Globe. Create an Interactive 3D globe based on your flat world map design.
TypeScript
147
star
10

bibleify-mobile

📖🔊 A simple & fast bible app with dramatized audio: Android & iOS. React Native, Rematch, & Realm
TypeScript
126
star
11

reactriot2017-dotamania

🌐 Web scraping made easy with the visual 🗺 mind map editor to JSON
JavaScript
121
star
12

react-tomato-timer

A simple timer for a more productive way to work and study built with ReactJS
JavaScript
110
star
13

alkitab-api

📖 Bible API for everyone
JavaScript
108
star
14

sonwan-ui

SonWan UI is a modular UI component library based on figma design to build your next React Web Application.
CSS
107
star
15

gramatika.app

Gramatika web helps you to check spelling and typo in Bahasa Indonesia
TypeScript
95
star
16

gramatika-figma-plugin

Gramatika Figma Plugin: Spell Checking (Grammarly) for Bahasa Indonesia. This makes it easy to check the typo or spelling mistakes in your design.
TypeScript
90
star
17

app-sense

📱 Easily learn & create React Native app basics using zero coding, drag-and-drop interface & logic blocks.
JavaScript
87
star
18

bibleify-desktop

🖥️Simple & fast bible app with dramatized audio built with Electron, React, Rematch & Realm
JavaScript
81
star
19

wordchain

Multiplayer word chaining game using angular.js and firebase
JavaScript
80
star
20

react-native-meme-generator

Add text on popular memes, save to camera roll. built with Expo.
JavaScript
67
star
21

blitz-cli

A command line app to check cgv blitz movie seats
JavaScript
62
star
22

react-native-image-intent

🔬 Image intent receiver for React Native android
Java
57
star
23

sonnylab.com

new sonnylab.com website built with Next.js, React Three Fiber, and Tailwind CSS with Twin Macro
TypeScript
54
star
24

react-native-sliding-notch

sliding notch panel component in React Native
JavaScript
52
star
25

node-compiler

the online compiler api that compile c++ language
JavaScript
48
star
26

deliciasonny.com

Delicia & Sonny Wedding Website
TypeScript
40
star
27

TamagoRPG

Tamago RPG multiplayer chat game.
JavaScript
31
star
28

framer-parallax-cards

A website that showcases parallax interaction effect using the device orientation built using Framer
TypeScript
31
star
29

figma-plugins-tailwind-starter

Figma plugins react webpack with tailwind starter
TypeScript
23
star
30

figma-speech-recognition

Let you insert a text from your voice to your design using speech recognition
TypeScript
23
star
31

gatsby-native

Build static website and app using Gatsby and React Native
JavaScript
22
star
32

bible-redux

📖 Beautiful open bible app built with Redux, ReactJS, ES2015
JavaScript
21
star
33

are-you-github-pro

Simple webapp that check a github pro user or not
JavaScript
20
star
34

tabla

Customize the new tab with multiple websites in one tab. Play wordle, worldle, katla, kotla in one tab
TypeScript
19
star
35

figma-link-preview

Preview links in your figma file, select any text with link and preview directly side by side
TypeScript
17
star
36

react-ipod-coverflow

ReactJS iPod Coverflow Customisable Playlist using Figma
JavaScript
16
star
37

sonwan-chat

SonWan Chat UI, real-time chat by supabase
JavaScript
14
star
38

figma-photo-frame-widget

Figma widget to automatically add photo frame with EXIF metadata
TypeScript
14
star
39

react-bouncing-preloader

Bouncing Preloader for ReactJS
JavaScript
13
star
40

framer-sites-figma-plugin

Build figma plugin with low code using framer sites
JavaScript
13
star
41

phpindonesia-react-native

A react native app of PHP Indonesia Community
JavaScript
13
star
42

mazmur

Church Worship Presentation Web Application
JavaScript
11
star
43

awesome-react-native-ui

A curated list of awesome Android UI/UX libraries with a demo app
JavaScript
10
star
44

nim-finder-redux

😎 ITB NIM Finder App with Redux, ReactJS, React Native
JavaScript
10
star
45

remote-lamp

Remote lamp prototype with Framer, Firebase, and Yeelight
TypeScript
8
star
46

react-18-tailwind-3-starter

Starter for React 18 and TailwindCSS 3
HTML
8
star
47

sketch-module-react

A sketch module for creating a complex UI with React & Typescript
JavaScript
8
star
48

figma-plugin-tailwind-starter

Figma Plugin Tailwind Starter + React + Typescript + Headless UI
TypeScript
8
star
49

budiman

Seniman running on Bun
JavaScript
7
star
50

karejo-app

Unofficial Karejo.com mobile application for Android and iOS built with React Native
Objective-C
7
star
51

react-native-chatbot

React Native Chat Bot Demo
JavaScript
7
star
52

simple-form

Simple form react native app
JavaScript
7
star
53

react-native-speedtest

Well designed speedtest app built with react native, exponent, react navigation, redux (persist), lottie (animation)
JavaScript
6
star
54

require-tweet

require a node js module from a tweet status
JavaScript
6
star
55

singlish-graphql

Singlish card app endpoint using GraphQL
6
star
56

taplak

Tap to bukalapak
JavaScript
6
star
57

vps

vps.sonnylab.com
TypeScript
6
star
58

CippyDB

Real time API for your own CouchDB
CSS
5
star
59

tiptap-next-markdown

Tiptap Markdown Editor in Nextjs
TypeScript
5
star
60

figma-to-ios-widget

Auto-magically showing your design in ios widget
JavaScript
5
star
61

twitter-search-scrape

Twitter search API that use puppeteer to scrape the twitter website
JavaScript
5
star
62

seniman-acakata

Real-time multiplayer word game using Seniman JS Framework
JavaScript
5
star
63

acakata-line

Acakata Game on LINE Chat bot
JavaScript
4
star
64

sonnylazuardi

4
star
65

3d-emoji-figma-plugin

Microsoft Fluent 3d emoji figma plugin
TypeScript
4
star
66

framer-online-state

Online state React Component for Framer X
TypeScript
4
star
67

todomvc-aurelia

Aurelia is a next generation JavaScript client framework that leverages simple conventions to empower your creativity.
JavaScript
4
star
68

meme-line

Meme generator for LINE Chatbot
JavaScript
3
star
69

react-native-clarifai

http://clarifai.com component for react native
Objective-C
3
star
70

handz-3d-plugin

handz 3d illustration figma plugin
TypeScript
3
star
71

polisi-gramatika

Polisi Gramatika
TypeScript
3
star
72

kalukis

an experimental painting app, build on top of flight and fabricjs
JavaScript
3
star
73

flappyface

Duel with your facebook friends in flappy bird game play
JavaScript
3
star
74

next-image-component

JavaScript
3
star
75

react-firebase-observable

Reactjs firebase data observable using mobx
JavaScript
2
star
76

flipbook-gatsby

Figma Flipbook plugin website made with gatsby
JavaScript
2
star
77

figma-make-real

TypeScript
2
star
78

izin-bertakut

form for sending your honor to someone
JavaScript
2
star
79

kidung

kidung christian song lyrics web app originated from kidung.com
JavaScript
2
star
80

bellquiz

Bell quiz is a simple bell simulation that is usually used on a quiz to decide who press the button first
CSS
2
star
81

idcra-mobile-ui

Indonesian Digital Caries Risk Assessment Mobile UI
JavaScript
2
star
82

v0-figma-plugin

Recreate v0.dev in figma plugin
TypeScript
2
star
83

kalukis-server

the server that enabled collaborative drawing in kalukis
JavaScript
2
star
84

chopstick

Chopstick is a hand game for two players, in which players extend a number of fingers from each hand and transfer those scores by taking turns to tap one hand against another. This game is built on angular.js and firebase
JavaScript
2
star
85

divecommerce

An interactive visualization of executive dashboard for e-commerce
JavaScript
2
star
86

ecommerce-executive-dashboard

An executive dashboard for analyzing e commerce in Indonesia
JavaScript
1
star
87

YiiStarter

YiiStarter comes from the best idea of other boilerplate and skeleton, it's the best way to start your project and develop better.
1
star
88

caramel-cms

simple yet clean markdown powered blogging platform using Laravel 5 and AngularJS
PHP
1
star
89

tina-starter

JavaScript
1
star
90

figma-plugin-tailwind

Figma Plugin Tailwind Starter Kit
TypeScript
1
star
91

yii.min

the minimal size of Yii Framework
1
star
92

simple-web-server

Simple web server written in C++
C++
1
star
93

full-react-server-demo

JavaScript
1
star
94

bestapp

JavaScript
1
star
95

react-vite

Created with StackBlitz ⚡️
CSS
1
star
96

meme-line-bot

Meme line bot landing page
JavaScript
1
star
97

reself

Gear App for remote photo taking
JavaScript
1
star
98

inklusik-bluemix

bluemix version of inklusik
JavaScript
1
star
99

bun-socket-client

Bun socket client with vite react
CSS
1
star
100

headshots-starter-clone

TypeScript
1
star