Flame is self-hosted startpage for your server. Easily manage your apps and bookmarks with built-in editors.
Find a file
2021-11-01 19:08:30 +03:00
.github github directory name changed 2021-08-03 10:22:55 +02:00
client Fixed bug with custom css not updating 2021-10-28 16:05:21 +02:00
controllers Fixed bug with custom css not updating 2021-10-28 16:05:21 +02:00
db Pushed version 1.7.1 2021-10-22 16:10:38 +02:00
k8s Kubernetes integration (#80) 2021-08-17 10:32:15 +02:00
middleware Changed config api. Split config controllers into separate files. Split bookmarks controllers into separate files 2021-10-22 14:00:38 +02:00
models Database migrations 2021-10-05 12:29:17 +02:00
routes Changed config api. Split config controllers into separate files. Split bookmarks controllers into separate files 2021-10-22 14:00:38 +02:00
utils Fixed bug with weather logging. Fixed bug with search bar shortcuts 2021-10-26 14:37:01 +02:00
.dockerignore Kubernetes integration (#80) 2021-08-17 10:32:15 +02:00
.env Fixed bug with custom css not updating 2021-10-28 16:05:21 +02:00
.gitignore Added changelog. Added curl to Docker image 2021-07-28 12:52:30 +02:00
.prettierignore Pushed version 1.6.2. Small formatting fixes 2021-08-06 10:36:05 +02:00
.prettierrc Added cli tool for adding new search engines/providers 2021-08-06 16:16:13 +02:00
api.js Add and delete custom search provider actions and controllers 2021-10-11 13:03:31 +02:00
CHANGELOG.md Fixed bug with custom css not updating 2021-10-28 16:05:21 +02:00
DEV_GUIDELINES.md Added option to disable search bar autofocus 2021-10-26 13:09:42 +02:00
docker-compose.yml Fix for #96 2021-10-04 16:15:17 +02:00
Dockerfile Update Dockerfile for smaller image 2021-11-01 15:13:06 +01:00
Dockerfile.dev Kubernetes integration (#80) 2021-08-17 10:32:15 +02:00
Dockerfile.multiarch Update Dockerfile.multiarch 2021-11-01 19:08:30 +03:00
LICENSE.md Added License file 2021-06-10 13:44:03 +02:00
package-lock.json Database migrations 2021-10-05 12:29:17 +02:00
package.json Merge branch 'feature' into v1.7.0 2021-10-11 14:31:59 +02:00
README.md Pushed version 1.6.9 2021-10-09 23:12:26 +02:00
server.js Changed initial files creation process 2021-10-06 14:17:31 +02:00
skaffold.yaml Kubernetes integration (#80) 2021-08-17 10:32:15 +02:00
Socket.js Imporved logger 2021-06-22 14:49:00 +02:00
Sockets.js Added WebSockets with funcionality to send messages from any module 2021-05-19 17:17:24 +02:00

Flame

JS Badge TS Badge Node Badge React Badge

Homescreen screenshot

Description

Flame is self-hosted startpage for your server. Its design is inspired (heavily) by SUI. Flame is very easy to setup and use. With built-in editors it allows you to setup your very own appliaction hub in no time - no file editing necessary.

Technology

  • Backend
    • Node.js + Express
    • Sequelize ORM + SQLite
  • Frontend
    • React
    • Redux
    • TypeScript
  • Deployment
    • Docker
    • Kubernetes

Development

# clone repository
git clone https://github.com/pawelmalak/flame
cd flame

# run only once
npm run dev-init

# start backend and frontend development servers
npm run dev

Installation

Docker Hub

Building images

# build image for amd64 only
docker build -t flame .

# build multiarch image for amd64, armv7 and arm64
# building failed multiple times with 2GB memory usage limit so you might want to increase it
docker buildx build \
  --platform linux/arm/v7,linux/arm64,linux/amd64 \
  -f Dockerfile.multiarch \
  -t flame:multiarch .

Deployment

# run container
docker run -p 5005:5005 -v /path/to/data:/app/data flame

Docker-Compose

version: '2.1'
services:
  flame:
    image: pawelmalak/flame:latest
    container_name: flame
    volumes:
      - <host_dir>:/app/data
      - /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration feature
    ports:
      - 5005:5005
    restart: unless-stopped

Skaffold

# use skaffold
skaffold dev

Without Docker

Follow instructions from wiki: Installation without Docker

Functionality

  • Applications
    • Create, update, delete and organize applications using GUI
    • Pin your favourite apps to homescreen

Homescreen screenshot

  • Bookmarks
    • Create, update, delete and organize bookmarks and categories using GUI
    • Pin your favourite categories to homescreen

Homescreen screenshot

  • Weather

    • Get current temperature, cloud coverage and weather status with animated icons
  • Themes

    • Customize your page by choosing from 12 color themes

Homescreen screenshot

Usage

Searching

To use search bar you need to type your search query with selected prefix. For example, to search for "what is docker" using google search you would type: /g what is docker.

You can change where to open search results (same/new tab) in the settings

Supported search engines

Name Prefix Search URL
Disroot /ds http://search.disroot.org/search?q=
DuckDuckGo /d https://duckduckgo.com/?q=
Google /g https://www.google.com/search?q=

Supported services

Name Prefix Search URL
IMDb /im https://www.imdb.com/find?q=
Reddit /r https://www.reddit.com/search?q=
Spotify /sp https://open.spotify.com/search/
The Movie Database /mv https://www.themoviedb.org/search?query=
Youtube /yt https://www.youtube.com/results?search_query=

Setting up weather module

  1. Obtain API Key from Weather API.

    Free plan allows for 1M calls per month. Flame is making less then 3K API calls per month.

  2. Get lat/long for your location. You can get them from latlong.net.
  3. Enter and save data. Weather widget will now update and should be visible on Home page.

Docker integration

In order to use the Docker integration, each container must have the following labels:

labels:
  - flame.type=application # "app" works too
  - flame.name=My container
  - flame.url=https://example.com
  - flame.icon=icon-name # Optional, default is "docker"
# - flame.icon=custom to make changes in app. ie: custom icon upload

And you must have activated the Docker sync option in the settings panel.

You can set up different apps in the same label adding ; between each one.

labels:
  - flame.type=application
  - flame.name=First App;Second App
  - flame.url=https://example1.com;https://example2.com
  - flame.icon=icon-name1;icon-name2

If you want to use a remote docker host follow this instructions in the host:

  • Open the file /lib/systemd/system/docker.service, search for ExecStart and edit the value
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:${PORT} -H unix:///var/run/docker.sock

The above command will bind the docker engine server to the Unix socket as well as TCP port of your choice. “0.0.0.0” means docker-engine accepts connections from all IP addresses.

  • Restart the daemon and Docker service
sudo systemctl daemon-reload
sudo service docker restart
  • Test if it is working
curl http://${IP}:${PORT}/version

Kubernetes integration

In order to use the Kubernetes integration, each ingress must have the following annotations:

metadata:
  annotations:
  - flame.pawelmalak/type=application # "app" works too
  - flame.pawelmalak/name=My container
  - flame.pawelmalak/url=https://example.com
  - flame.pawelmalak/icon=icon-name # Optional, default is "kubernetes"

And you must have activated the Kubernetes sync option in the settings panel.

Custom CSS

This is an experimental feature. Its behaviour might change in the future.

Follow instructions from wiki: Custom CSS