• Stars
    star
    177
  • Rank 209,330 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

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

Repository Details

Create slides in TypeScript and present them in the terminal using ASCII only!

kittik

Travis (.com) branch Code Coverage GitHub code size in bytes GitHub last commit

GitHub followers Twitter Follow

Do you have a conference soon? Are you tired of presenting slides in Keynote, PowerPoint or any HTML based tool? Why not to create and present slides in the terminal using ASCII only!

NOTE: I’m not arguing that kittik is better than X tool designed for presentations. I’m saying that we can use it for fun in small topics or conferences.

Why

I was always in love with the terminal and what we can do with it, and still is, actually. Someday, I thought, why not to be a little creative and present speech on the conference in the terminal by using ASCII characters only? I tried and turned out that it is a hard task. That is why, I decided, we need a tooling for it!

That is how a name was born, Keynote In the Terminal (KIT) and a palindrome for KIT - KITTIK.

Features

  • Unique shapes rendered via ASCII characters only, e.g. rectangle, ASCII art (aka figlet), code with syntax highlighting and more.
  • Customize how shapes must look like in the terminal, their background and foreground color, positioning in the terminal, width and height.
  • Animate every shape you want. YES! Kittik supports animations and still uses ASCII only. Create a rectangle and slide it in from the left side or make a text printing on the screen.
  • Everything in kittik comes with a builder. No more typing JSON, YAML or objects and guessing keys.
  • Developer Experience is a key feature. Everything in kittik is typed, even your custom names will be typed and suggested to you through autocompletion.
  • Presenter mode. Run your slides and manage them with a keyboard (N - next slide, P - previous slide, Q - quit).

Demo

How to convert an RGB to HEX
demo.ts

Getting Started

All you need is a single dependency - kittik.

npm install kittik

The package provides everything you need to create your own slides - builders. There are builders for shapes, animations, slides and deck. Start with a builder for Deck.

import { DeckBuilder } from "kittik";

DeckBuilder
  .start()
  .end()
  .render();

Every builder has a start() and end() methods. So it is easier to write them down at first place before configuring, that way you will not forget about end(). Although, type check does not allow this situation.

Every deck comprises your slides. To add more slides, just call withSlide() method. It accepts a function where the slide builder will be passed by the deck.

NOTE: the builder is already started in withSlide(), so you need to end it only.

import { DeckBuilder } from "kittik";

DeckBuilder
  .start()
  .withSlide((slide) => slide.end())
  .end()
  .render();

Now, slide builder provides two essential methods withAnimation() and withShape(). withAnimation() accepts a name for your animation (for further references) and the animation that must be built through animation builder. The same applies to withShape(). It accepts a name, and a shape built with shape builder.

That way you can specify animations and shapes for your slide. But kittik does not know in what order to render those shapes and what animations animate what shape. To handle this situation there is withOrder() method. It accepts a name of the shape you defined before and an array of animation names you want to use.

import { DeckBuilder, ShapeBuilder } from "kittik";

DeckBuilder
  .start()
  .withSlide((slide) =>
    slide
      .withShape(
        "Hello, World!",
        ShapeBuilder.start("Text").withText("Hello, World!").end()
      )
      .withOrder("Hello, World!")
      .end()
  )
  .end()
  .render();

Congratulations, you just created a simple Deck with one slide andΒ β€œHello, World” in it. Add more slides, animate them and bring them to live.

More Examples

You can find more examples in examples folder.

FAQ

  • It is too hard to create a presentation even with builders and auto-completion

True, if you want to create a lot of slides, it will be not an exceptional experience in declaring them through builders. That is why there is work in progress (only in my mind) for the concept of themes and parsers for different input, e.g. Markdown.

  • Have questions?

Ask them in issues, I’ll be glad to answer them.

License

MIT

More Repositories

1

type-challenges-solutions

Solutions for the collection of TypeScript type challenges with explanations
HTML
466
star
2

iterm-fish-fisher-osx

Semi-automatic installer for Command Line Tools + Homebrew + iTerm2 + Fish Shell + Fisher + Plugins/Themes
Shell
370
star
3

generator-sails-rest-api

Yeoman generator for scaffolding Sails REST API with predefined features
JavaScript
334
star
4

llvm-kaleidoscope

LLVM Tutorial: Kaleidoscope (Implementing a Language with LLVM)
C++
217
star
5

terminal-canvas

Manipulate the cursor in your terminal via high-performant, low-level, canvas-like API
TypeScript
169
star
6

awesome-internals

A curated list of awesome resources and learning materials in the field of X internals
120
star
7

telegram-bot-github

Allows to you receive GitHub notifications right in the Telegram
JavaScript
116
star
8

ghaiklor-os-gcc

Simple operating system with its own bootloader, drivers for screen and keyboard, libc (for educational purposes)
C
113
star
9

backup-my-github

Clones all your repositories to local machine
Shell
106
star
10

sails-hook-cron

Sails hook for running cron tasks
JavaScript
88
star
11

icecast-parser

Node.js module for getting and parsing metadata from SHOUTcast/Icecast radio streams
TypeScript
69
star
12

nand-2-tetris

Computer built from the ground up on top of own CPU, while compiler and assembler for it implemented in Rust language
Assembly
64
star
13

sails-service-mailer

Service for Sails framework with Mailer features [DEAD]
JavaScript
31
star
14

pascal-interpreter

A simple interpreter for a large subset of Pascal language written for educational purposes
JavaScript
31
star
15

generator-es6-npm-module

Yeoman generator for starting ES6 npm module with Mocha, Istanbul, Travis, Coveralls
JavaScript
28
star
16

passport-google-plus-token

Passport strategy for authenticating with Google Plus via OAuth2 access tokens
JavaScript
23
star
17

flappy-bird

Flappy Bird, a game you can barely play for more than a few seconds without throwing your phone
JavaScript
22
star
18

node-print-message

Node.js module for printing out beautiful messages in console
JavaScript
21
star
19

sails-service-pusher

Service for Sails framework with Pusher features [DEAD]
JavaScript
20
star
20

advent-of-code-2015

Solutions for Advent of Code - a series of small programming puzzles for a variety of skill levels
JavaScript
19
star
21

assetsjsloader

Async loader which loads CSS and JS files
JavaScript
15
star
22

iterum

Interpreter for a subset of ECMA specification implemented on top of recursive descent parser
TypeScript
15
star
23

sails-service-payment

Service for Sails framework with Payment features [DEAD]
JavaScript
15
star
24

passport-instagram-token

Passport strategy for authenticating with Instagram via OAuth2 access tokens
JavaScript
13
star
25

sails-service-sms

Service for Sails framework with SMS features [DEAD]
JavaScript
12
star
26

sails-service-image

Service for Sails framework with Image features [DEAD]
JavaScript
10
star
27

sails-service-storage

Service for Sails framework with Storage features [DEAD]
JavaScript
10
star
28

passport-github-token

Passport strategy for authenticating with GitHub via OAuth2 access tokens
JavaScript
10
star
29

battlecity

The most popular game clone from our childhood
JavaScript
10
star
30

sails-service-social

Service for Sails framework with Social features [DEAD]
JavaScript
8
star
31

tiny-three-pass-compiler-codewars

Three-pass compiler for a simple programming language into a small assembly language
JavaScript
7
star
32

codemirror-mode-jsonata

CodeMirror mode for the JSONata language
JavaScript
6
star
33

polycolors

Yet another command-line coloring library with RGB support
JavaScript
5
star
34

sails-service-cipher

Service for Sails framework with Cipher features [DEAD]
JavaScript
5
star
35

bash-im-terminal

Terminal client for viewing Bash.IM
JavaScript
5
star
36

sails-service-location

Service for Sails framework with Location features [DEAD]
JavaScript
4
star
37

openlayers-tools

OpenLayers wrapper, which simplifies work with it
JavaScript
4
star
38

sails-service-hash

Service for Sails framework with Hash features [DEAD]
JavaScript
4
star
39

arves

Another RISC-V Educational Softcore
VHDL
4
star
40

passport-reddit-token

Passport strategy for authenticating with Reddit via OAuth2 access tokens
JavaScript
3
star
41

passport-soundcloud-token

Passport strategy for authenticating with SoundCloud via OAuth2 access tokens
JavaScript
3
star
42

flood-it

Flood It! is a simple addictive strategy game in which you have to flood the whole game board with one color
JavaScript
3
star
43

sails-hook-acl

Sails hook that implements ACL that don't tight with session or databases and easy configurable [DEAD]
JavaScript
3
star
44

passport-vkontakte-token

Passport strategy for authenticating with Vkontakte via OAuth2 access tokens
JavaScript
2
star
45

passport-yahoo-token

Passport strategy for authenticating with Yahoo via OAuth2 access tokens
JavaScript
2
star
46

cloudflare-multiplex-sw-2016

Technical task for CloudFlare company (Aug 2016)
JavaScript
2
star
47

passport-twitch-token

Passport strategy for authenticating with Twitch via OAuth2 access tokens
JavaScript
2
star
48

passport-yandex-token

Passport strategy for authenticating with Yandex via OAuth2 access tokens
JavaScript
1
star
49

tessel-vesnasoft-2015

Tessel application for demonstrating accel, ambient, camera, climate, servo and leds
JavaScript
1
star
50

ghaiklor-os-rust

Simple operation system created in educational purposes with Rust.
Rust
1
star
51

atmega-2560-hexapod

Arduino sketch for DAGU Spider controller
C++
1
star
52

passport-windows-live-token

Passport strategy for authenticating with Windows Live via OAuth2 access tokens
JavaScript
1
star
53

dimension-shock-poc

A re-imagining of the chess game, where game involves playing in two distinct dimensions simultaneously
JavaScript
1
star
54

passport-amazon-token

Passport strategy for authenticating with Amazon via OAuth2 access tokens
JavaScript
1
star