Lightweight HTML, CSS, JS web IDE build with PHP. It generates flat files code prototypes that can be shared. https://stolon.raphaelbastide.com
  • JavaScript 99.1%
  • PHP 0.5%
  • CSS 0.2%
  • HTML 0.2%
Find a file
Julien Bidoret 5f147dd378 Merge branch 'main' into 'main'
Live reload was broken

Closes #32

See merge request raphaelbastide/stolon!14
2025-07-24 18:07:14 +02:00
css Fixed bug in screenshot mode (config retrieval hadn’t been changed to json storage) 2025-01-17 08:07:30 +01:00
download Might fix download bug + minor fixes 2020-09-18 17:51:39 +02:00
font Fixes empty json array issue warning + fonts 2021-12-07 14:56:05 +01:00
img Beter stolon diagram + new screenshot 2024-10-02 17:37:31 +02:00
js Fixes #32 : Live reload is broken 2025-07-24 18:05:03 +02:00
templates Homogeneous case in variable names (no more jsPane_size) + fixer 2024-06-10 12:23:26 +02:00
.gitignore Fresh installer 2024-10-02 14:33:05 +02:00
.htaccess How to update 2025-07-24 12:47:31 +02:00
download.php Zip export 2020-08-14 16:56:40 +02:00
functions.php Moved install script out of main index.php 2024-10-02 15:34:23 +02:00
index.php Fixed bug in screenshot mode (config retrieval hadn’t been changed to json storage) 2025-01-17 08:07:30 +01:00
install.php str_starts_with is only php8 2024-10-03 16:43:25 +02:00
json_fixer.php Homogeneous case in variable names (no more jsPane_size) + fixer 2024-06-10 12:23:26 +02:00
LICENSE.txt New name, basic ID for creator, cookies, readme update, fixed misspelling sterm -> stem 2020-07-24 19:35:01 +02:00
list.php Switched remove function from GET to POST (with immediate removal of item) and set auth on remove.php 2024-06-10 09:38:21 +02:00
README.md How to update 2025-07-24 12:47:31 +02:00
remove.php Switched remove function from GET to POST (with immediate removal of item) and set auth on remove.php 2024-06-10 09:38:21 +02:00
screenshot.php Fixed bug in screenshot mode (config retrieval hadn’t been changed to json storage) 2025-01-17 08:08:05 +01:00
write.php Proper authentication check! 2025-07-24 02:33:37 +02:00

Stolon

Lightweight HTML, CSS, JS web code playground build with PHP. It generates flat files code prototypes that can be shared.

Screenshot

Demo

http://stolon.raphaelbastide.com/

Features

  • Flatfile structure (no database)
  • Forkable, trackable parentship
  • Direct access to a custom named stem with /customname
  • Live preview as you type
  • Code can be downloaded and shared easily
  • Gallery view
  • Font size slider

Before you install

This app let users write files on your server. I dont know yet if this app is secure enough for production. Use at your own risks.

Setup

  • You will need PHP 7+
  • Copy or clone this repository on your server
  • Make sure .htaccess is present, and that RewriteBase is heading to your stolon directory
  • Launch the install script by visiting http://localhost/stolon/
  • stems/ and download/ directories will be created

Terminology

  • Stolon: the app
  • Stems: the directories with HTML, CSS, JS codes
  • Fork: copy of a directory (stem) that can be derivated

Plant

“In biology, stolons (from Latin stolō "branch"), also known as runners, are horizontal connections between organisms. They may be part of the organism, or of its skeleton; typically, animal stolons are external skeletons.” Wikipedia

Update your instance

  • Before starting, a backup is always a good idea
  • Keep your stems/ directory
  • Keep your templates/ directory if you made any changes in it
  • Keep your config.json file
  • The logs/ and download/ directories are dynamically generated, keeping them is at your discretion
  • You may replace everything else

Stolon Screenshots

Stolon screenshots is a node.js script to generate screenshots for each stem of your stolon instance, it might be helpful if you want a fancy gallery with previews.

Inspirations

License

GNU GPL v3