Skip to content
프로젝트

소개

DemoKit is a Library and Electron app for building product demos and tutorials using web technologies

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

DemoKit is a Library and Electron app for macOS to build product demos and tutorials using web technologies

  • Maintainable Since DemoKit demos are just JavaScript modules, you can commit them to version control, diff them, collaborate with others, iterate and tweak to your heart's content, and simply re-capture the video if your product's UI ever changes. The videos for your product can now receive the same treatment as any other asset for your product instead of going stale.
  • Web Technologies DemoKit uses the web technologies you already know and JSX (without React) to allow to specify the sequence of actions that take place in your demo. Creating professional looking product videos is as easy as using CSS.
  • Component-Based DemoKit has a number of built-in components (or "props" in movie lingo) ready to to use for your demos. Browser windows that can load your site, terminal windows and code editor windows that can play supporting roles, and more. You can create and share custom components as well.

Currently only macOS is supported, but you can help us change that!

Example

<demo>
    <scene width = { 1024 } height = { 768 } />

    <browser    id = "duckduckgo"
                title = "Duck Duck Go"
                contentURL = "https://duckduckgo.com"
                contentRect = { { origin: { x: "center", y: "center" }, size: { width: 900, height: 600 } } } />

    <recording.start filePath = "videos/video" />

    <using window = "duckduckgo">
        <click selector = "input[type=text]" />
        <type>How do I use <paste>JSX</paste>?</type>
        <click selector = "input[type=submit]" />
    </using>

    <recording.stop />

</demo>

This example shows someone how to do a simple search on Duck Duck Go. It sets up the scene's size, creates the browser window with the real duck duck go site loaded, and then proceeds to move the mouse and type in text. Once its completed, the video will be saved to "videos/video - CURRENT DATE". That way you can keep running it without overwriting pre-existing takes.

We've also open sourced the video we made for our homepage at https://runkit.com/, which is available here: https://github.com/runkitdev/runkit-demo.

Installation

npm install demokit -g

Note: DemoKit only works on macOS

Usage

$ demokit new my-demo
$ demokit ./my-demo/index.js

The new command will create a template project for you. Simply edit the index.js, or add more files, and then run using the demokit command.

Documentation

Visit the Wiki for our documentation.

Acknowledgments

This library would not have been possible without the awesome PhotonKit, CodeMirror, Smooth Scroll, Screen Recorder, and although it is no longer a dependency, RobotJS.

License

MIT

관련 프로젝트 살펴보기

불러오는 중…