Skip to content
 
 

Repository files navigation

1sec-present

Tool that:

  • Creates presentation using HTML-templates

Getting started

Using Docker

docker compose up -d --build

Then just run container as bash:

docker compose exec 1sec-present bash

And execute commands inside container.

Using local environment (Linux, MacOS, WSL)

  1. Run this setup script in terminal (use WSL on Windows):
#!/bin/bash

set -euo pipefail

PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BASHRC="$HOME/.bashrc"

sudo apt update -y
sudo apt install -y curl wget unzip software-properties-common apt-transport-https ca-certificates gnupg

if ! command -v node &> /dev/null; then
    echo "📦 Node.js LTS"
    curl -fsSL https://nodesource.com | sudo -E bash -
    sudo apt install -y nodejs
else
    echo "✅ Node.js: $(node -v)"
fi

CHROME_PATH=""
if command -v chromium-browser &> /dev/null; then
    CHROME_PATH=$(which chromium-browser)
elif command -v chromium &> /dev/null; then
    CHROME_PATH=$(which chromium)
elif command -v google-chrome &> /dev/null; then
    CHROME_PATH=$(which google-chrome)
fi

if [ -z "$CHROME_PATH" ]; then
    echo "📦 Chromium..."
    sudo apt install -y chromium-browser  sudo apt install -y chromium
    CHROME_PATH=$(which chromium-browser  which chromium)
fi

echo "✅ Chrome/Chromium: $CHROME_PATH"

echo "📦 puppeteer-core..."
if ! npm list -g puppeteer-core &> /dev/null; then
    sudo npm install -g puppeteer-core --unsafe-perm=true
else
    echo "✅ puppeteer-core"
fi

echo "📝 $BASHRC..."

START_MARKER="# === 1sec-present CONFIG START ==="
END_MARKER="# === 1sec-present CONFIG END ==="

if grep -q "$START_MARKER" "$BASHRC"; then
    sed -i "/$START_MARKER/,/$END_MARKER/d" "$BASHRC"
fi

cat << EOF >> "$BASHRC"
$START_MARKER
export PUPPETEER_EXECUTABLE_PATH="$CHROME_PATH"
export ONESEC_PRESENT_DIR="$PROJECT_DIR"
export PATH="\$PATH:\$ONESEC_PRESENT_DIR"
$END_MARKER
EOF

export PUPPETEER_EXECUTABLE_PATH="$CHROME_PATH"
export ONESEC_PRESENT_DIR="$PROJECT_DIR"
export PATH="$PATH:$ONESEC_PRESENT_DIR"

echo ""
echo "🎉🎉🎉"
echo "----------------------------------------"
echo "   🟢 Node.js:  $(node -v)"
echo "   🟢 npm:      $(npm -v)"
echo "   🟢 Chrome:   $PUPPETEER_EXECUTABLE_PATH"
echo "   🟢 project:  $ONESEC_PRESENT_DIR"
echo "----------------------------------------"
echo "🚀 Ready"

Usage

Chat AI's

1. Get all context and files content using repomix:

repomix

2. Add this file into chat

3. Type next prompt

Bash mode. <Describe presentation as much as possible>

4. Insert code into terminal

5. Fix or add images and check result

About

Vibecode presentation on any ai. in seconds Templates included

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages