Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
41bb732
add multi file config
hatemhosny Nov 8, 2025
86dbd99
add multi-file UI
hatemhosny Nov 8, 2025
d48fea1
multi-file result page
hatemhosny Nov 8, 2025
cdc658a
scroll file tabs
hatemhosny Nov 8, 2025
a594166
add file
hatemhosny Nov 8, 2025
9ca7c30
allow `editorId` to have filename
hatemhosny Nov 8, 2025
07fee72
feat(Config): rename `Editor.hideTitle` to `Editor.hidden`
hatemhosny Nov 8, 2025
bc35c7b
add multi-file support in language specs
hatemhosny Nov 8, 2025
f7274d9
add file
hatemhosny Nov 8, 2025
c4b3983
fix types
hatemhosny Nov 9, 2025
2dc05ab
fix types
hatemhosny Nov 9, 2025
888bf05
fix jsx on typescript
hatemhosny Nov 9, 2025
e9efb1b
Merge branch 'develop' into multi-file-support
hatemhosny Dec 10, 2025
c14b948
Merge branch 'develop' into multi-file-support
hatemhosny Dec 30, 2025
3cad427
fix adding new file tab
hatemhosny Dec 31, 2025
cc3358f
Merge branch 'develop' into multi-file-support
hatemhosny Jan 3, 2026
44227d6
add file to config
hatemhosny Jan 3, 2026
49f7c94
validate file name
hatemhosny Jan 3, 2026
92b9d04
fix file types
hatemhosny Jan 3, 2026
2b73456
add responsive styles for multi file tabs
hatemhosny Jan 4, 2026
1b6bc9d
Merge branch 'develop' into multi-file-support
hatemhosny Jan 4, 2026
8570d09
Merge branch 'develop' into multi-file-support
hatemhosny Jan 4, 2026
806f055
improve file tab UI
hatemhosny Jan 5, 2026
a2c9d3a
set saved status for file changes
hatemhosny Jan 5, 2026
3048062
rename file on click outside tab
hatemhosny Jan 6, 2026
9648803
fix adding new file
hatemhosny Jan 8, 2026
7ed515c
set projectDir
hatemhosny Jan 8, 2026
999b937
fix monco formatting
hatemhosny Jan 8, 2026
fa6a278
fix showEditor
hatemhosny Jan 8, 2026
e79cc08
support multi-file in cache
hatemhosny Jan 8, 2026
1614cbf
load types for npm modules in multi-file projects
hatemhosny Jan 8, 2026
0639550
load TS types in codemirror in multi-file
hatemhosny Jan 9, 2026
5282bb5
show compiled code in multi-file projects
hatemhosny Jan 9, 2026
d8bdedf
fix style imports
hatemhosny Jan 9, 2026
f63a4a0
allow exporting multi-file projects
hatemhosny Jan 9, 2026
0def833
add multifile templates
hatemhosny Jan 10, 2026
a6ba81b
improve multifile tab styles
hatemhosny Jan 10, 2026
8c12638
fix undefined activeEditor
hatemhosny Jan 10, 2026
c4de3d9
show loading message in modal when loading templates
hatemhosny Jan 10, 2026
d141e4f
fix multifile stylesheet import
hatemhosny Jan 10, 2026
70477a1
allow importing images
hatemhosny Jan 10, 2026
937674a
handle changing content for new files
hatemhosny Jan 10, 2026
2784553
enable "Go to definition" in monaco
hatemhosny Jan 10, 2026
29a57dd
fix deleting file (remove tab)
hatemhosny Jan 10, 2026
2967e1d
fix undefined language
hatemhosny Jan 10, 2026
3896978
fix jsx
hatemhosny Jan 10, 2026
a43b3a8
fix types
hatemhosny Jan 11, 2026
79eea5b
fix relative imports with directories
hatemhosny Jan 11, 2026
4abe4c2
fix recursive css imports
hatemhosny Jan 11, 2026
a41e37a
hide irrelevant UI elements for multifile
hatemhosny Jan 11, 2026
e520e35
use replaceStyleImports for multifile result
hatemhosny Jan 11, 2026
73b9203
fix css and image imports
hatemhosny Jan 13, 2026
736ac63
add multifile react template
hatemhosny Jan 14, 2026
3b09d16
replace all file imports once
hatemhosny Jan 14, 2026
5d8c1c3
add multifile support for vue and svelte
hatemhosny Jan 14, 2026
6060d62
enable relative svg imports in multifile svelte
hatemhosny Jan 14, 2026
f381eef
add multifile vue and svelte templates
hatemhosny Jan 14, 2026
b058a3c
add multifile templates
hatemhosny Jan 14, 2026
ffa2e2b
fix saved status when loading multifile projects
hatemhosny Jan 16, 2026
898ff8f
feat(Config): add `fileLanguages` config option
hatemhosny Jan 16, 2026
a570e8f
fixed-height modals
hatemhosny Jan 16, 2026
d3edaff
edit templates
hatemhosny Jan 16, 2026
13ddd95
remove editor project dir
hatemhosny Jan 16, 2026
409b18e
add getFileExtension utility
hatemhosny Jan 16, 2026
0224a2b
edit templates
hatemhosny Jan 16, 2026
4c0889d
fix go to definition
hatemhosny Jan 16, 2026
0749d5d
fix multifile relative imports
hatemhosny Jan 16, 2026
08c4393
enable tailwind in multifile projects
hatemhosny Jan 18, 2026
cc36b00
add css modules support in multifile projects
hatemhosny Jan 18, 2026
649f7a5
drag and drop file tabs to re-order
hatemhosny Jan 19, 2026
d14cbf2
load monaco language before creating the model
hatemhosny Jan 20, 2026
8b3a25f
add editor tab scroll buttons
hatemhosny Jan 20, 2026
fa66765
fix multifile tab styles
hatemhosny Jan 21, 2026
39c619a
fixes
hatemhosny Jan 21, 2026
ef13860
feat(Compilers): add support for json/json5
hatemhosny Jan 23, 2026
224c694
fix handleChangeContent
hatemhosny Jan 23, 2026
0350cfc
add `lockFiles` config option
hatemhosny Jan 24, 2026
b58be32
allow running tests in multifile projects
hatemhosny Jan 25, 2026
0d7a343
import as multifile projects
hatemhosny Jan 26, 2026
453a8c4
add support for public folder in multifile projects
hatemhosny Jan 27, 2026
a3874d1
handle common dir
hatemhosny Jan 28, 2026
1adb544
fix importing files from github and gitlab dir
hatemhosny Jan 28, 2026
434fbe4
allow using binary files (e.g. images)
hatemhosny Jan 29, 2026
84c31bd
handle svg <use>
hatemhosny Jan 30, 2026
64cf310
improve loading files with drag and drop
hatemhosny Jan 30, 2026
b514c8d
fix replacing URLs in compiled files
hatemhosny Jan 30, 2026
4baeded
binary file editor
hatemhosny Jan 31, 2026
13b19c4
fix importing binary files
hatemhosny Jan 31, 2026
621c3d5
edit multi file template thumbnail styles
hatemhosny Jan 31, 2026
2bdb953
add basic multifile template
hatemhosny Jan 31, 2026
01ba69f
edit styles
hatemhosny Jan 31, 2026
1371e73
export binary files
hatemhosny Jan 31, 2026
8e50663
copy binary files as data urls
hatemhosny Jan 31, 2026
2b2c341
improve vue support in monaco
hatemhosny Jan 31, 2026
3a24106
load monaco languages from CDN
hatemhosny Jan 31, 2026
707af2a
Merge branch 'develop' into multi-file-support
hatemhosny Jan 31, 2026
5d39151
enable search in multifile templates
hatemhosny Jan 31, 2026
73a4ce8
cache result page output
hatemhosny Jan 31, 2026
108a1b7
fix
hatemhosny Jan 31, 2026
5fe1689
do not fail on docs broken links for now
hatemhosny Jan 31, 2026
a30451f
format
hatemhosny Jan 31, 2026
f7682da
fix img url
hatemhosny Jan 31, 2026
75ca515
do not replaceSFCImports in multifile projects
hatemhosny Feb 1, 2026
a6a6dca
fix svg use
hatemhosny Feb 1, 2026
709290b
fix config with empty files
hatemhosny Feb 1, 2026
fc47415
format
hatemhosny Feb 1, 2026
59bea01
fix tab scrollIntoView
hatemhosny Feb 1, 2026
0868399
select active file in params
hatemhosny Feb 1, 2026
2333604
support multifile projects in broadcast
hatemhosny Feb 3, 2026
390994c
resolve type files for vue compiler
hatemhosny Feb 3, 2026
3822251
get types in compiler
hatemhosny Feb 5, 2026
846e3c4
enable using defineProps<TYPE> in vue
hatemhosny Feb 7, 2026
7d74d1e
fix replaceImports
hatemhosny Feb 8, 2026
40c9de1
Merge branch 'develop' into multi-file-support
hatemhosny Feb 9, 2026
4715d48
truncate long tab titles while keeping filename visible
hatemhosny Feb 10, 2026
239b9b0
fix type
hatemhosny Feb 10, 2026
33ba8d7
fix handling content change
hatemhosny Feb 10, 2026
3361b7d
add `fileLanguages` to `Config.customSettings`
hatemhosny Feb 11, 2026
6b5c2ba
set `files` & `fileLanguages` in params
hatemhosny Feb 11, 2026
7be74f8
enable Vue to defineProps from types in .d.ts files
hatemhosny Feb 11, 2026
8021697
allow using `replaceSFCImports` in multifile projects
hatemhosny Feb 11, 2026
42d5548
fix applyConfig
hatemhosny Feb 12, 2026
a1a0405
hide export to codepen & jsfiddle in multifile projects
hatemhosny Feb 12, 2026
6373f49
update `createIframe` for multifile projects
hatemhosny Feb 12, 2026
c3fca6e
upgrade local typescript to v5.9.3
hatemhosny Feb 12, 2026
dbde43b
update SDK methods to support multifile projects
hatemhosny Feb 12, 2026
e17d92c
Merge branch 'develop' into multi-file-support
hatemhosny Feb 14, 2026
7205bc7
update package-lock
hatemhosny Feb 14, 2026
d59e078
fix styles
hatemhosny Feb 14, 2026
0ad9f57
mark import as asset using querystring (e.g. ?url , ?raw)
hatemhosny Feb 15, 2026
dfb74fb
fix reloading editors hiding active editor
hatemhosny Feb 15, 2026
b6ac5ff
feat(Compilers): add support for YAML
hatemhosny Feb 15, 2026
d3b2c08
feat(Compilers): add .env file support
hatemhosny Feb 16, 2026
36556b8
use env vars in multifile projects
hatemhosny Feb 16, 2026
19f36a4
detect framework during import
hatemhosny Feb 16, 2026
e91e162
fix `svg <use ...` in solid
hatemhosny Feb 16, 2026
626f4db
import from preact playground
hatemhosny Feb 17, 2026
82e1b65
import from solid playground
hatemhosny Feb 17, 2026
98a41d3
use a multifile project when importing from vue playground
hatemhosny Feb 17, 2026
6ab5835
fix importing from typescript playground
hatemhosny Feb 17, 2026
131638e
import from Svelte playground
hatemhosny Feb 17, 2026
f5da407
docs
hatemhosny Feb 17, 2026
618c6b3
use react compiler when importing react projects
hatemhosny Feb 18, 2026
69a468f
remove jsx pragma from preact templates
hatemhosny Feb 18, 2026
043f32d
add support for .svelte.ts files
hatemhosny Feb 18, 2026
f2de3be
monaco editor support for svelte
hatemhosny Feb 18, 2026
1ece66d
Merge branch 'develop' into multi-file-support
hatemhosny Feb 21, 2026
85c3875
Merge branch 'develop' into multi-file-support
hatemhosny Feb 23, 2026
e6693af
Merge branch 'develop' into multi-file-support
hatemhosny Feb 28, 2026
e1a35eb
Merge branch 'develop' into multi-file-support
hatemhosny Mar 1, 2026
875e806
editors mapLanguage
hatemhosny Mar 1, 2026
7ce31d1
add json5 and jsonc as separate languages
hatemhosny Mar 1, 2026
e3af69c
fix
hatemhosny Mar 1, 2026
3c38cac
fix oEmbed & meta tags description for multifile templates
hatemhosny Mar 1, 2026
f006edf
minor fix
hatemhosny Mar 1, 2026
88ad540
Merge branch 'develop' into multi-file-support
hatemhosny Mar 3, 2026
6a797ff
Merge branch 'develop' into multi-file-support
hatemhosny Mar 6, 2026
f7dda87
Merge branch 'develop'
hatemhosny May 16, 2026
e445cb0
Merge branch 'develop'
hatemhosny May 16, 2026
62aa102
fix deps
hatemhosny May 16, 2026
8bb785a
Merge branch 'develop' into multi-file-support
hatemhosny May 16, 2026
68390ab
Merge branch 'develop' into multi-file-support
hatemhosny May 24, 2026
3f598c8
Merge branch 'develop' into multi-file-support
hatemhosny May 28, 2026
63d3061
feat(Editor): add livecodes monaco themes
hatemhosny Jun 1, 2026
4d312e0
sidebar (WIP)
hatemhosny Jun 1, 2026
2ddc887
Merge branch 'develop' into multi-file-support
hatemhosny Jun 2, 2026
7a37612
Merge branch 'develop' into multi-file-support
hatemhosny Jun 4, 2026
92df7c5
Merge branch 'develop' into multi-file-support
hatemhosny Jun 13, 2026
deb6086
Merge branch 'develop' into multi-file-support
hatemhosny Jun 18, 2026
f6b2f28
Merge branch 'develop' into multi-file-support
hatemhosny Jun 19, 2026
ba17b7b
sidebar styles
hatemhosny Jun 20, 2026
9e877cf
Merge branch 'develop' into multi-file-support
hatemhosny Jun 28, 2026
e2197cc
Merge branch 'develop' into multi-file-support
hatemhosny Jul 5, 2026
37f5535
Merge branch 'develop' into multi-file-support
hatemhosny Jul 6, 2026
85d7ac9
Merge branch 'develop' into multi-file-support
hatemhosny Jul 24, 2026
c3d8161
Merge branch 'develop' into multi-file-support
hatemhosny Jul 25, 2026
ef4aa2d
Merge branch 'develop' into multi-file-support
hatemhosny Aug 1, 2026
8414656
adapt php server to multi-files
hatemhosny Aug 1, 2026
297f634
feat(Sidebar): add sidebar
hatemhosny Aug 3, 2026
1bf2e2d
fix(UI): fix split panes in rtl
hatemhosny Aug 8, 2026
4b9600e
feat(Sidebar): add Files section in sidebar
hatemhosny Aug 8, 2026
c6185fd
update files section
hatemhosny Aug 8, 2026
e8a838c
implement sidebar files
hatemhosny Aug 16, 2026
2e1b0a7
drop files to sidebar
hatemhosny Aug 16, 2026
5a7bee7
fixes
hatemhosny Aug 20, 2026
bb4de57
Merge branch 'develop' into multi-file-support
hatemhosny Aug 20, 2026
c4f437b
WIP: multifile console line numbers
hatemhosny Aug 24, 2026
c2ad4ef
WIP: multifile console line numbers
hatemhosny Aug 24, 2026
8ec3506
WIP: multifile console line numbers
hatemhosny Aug 24, 2026
e73e35a
multifile console line numbers
hatemhosny Aug 24, 2026
1cf7220
WIP: multifile console line numbers
hatemhosny Aug 25, 2026
5262b0b
WIP: multifile console line numbers
hatemhosny Aug 25, 2026
c96313b
add sourcemaps docs
hatemhosny Aug 25, 2026
d718cd7
console badge text/title
hatemhosny Aug 25, 2026
03e2463
clean up
hatemhosny Aug 26, 2026
c150f30
close file
hatemhosny Aug 26, 2026
faf6087
Merge branch 'develop' into multi-file-support
hatemhosny Aug 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/_artifacts/domain_map.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# domain_map.yaml
# Generated by skill-domain-discovery
# Library: livecodes
# Version: 0.13.0
# Version: 0.14.1
# Date: 2025-03-28
# Status: reviewed

library:
name: 'livecodes'
version: '0.13.0'
version: '0.14.1'
repository: 'https://github.com/live-codes/livecodes'
description: 'A feature-rich, open-source, client-side code playground that supports 90+ languages/frameworks. Runs entirely in the browser with no server required.'
primary_framework: 'framework-agnostic'
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/_artifacts/skill_tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

library:
name: 'livecodes'
version: '0.13.0'
version: '0.14.1'
repository: 'https://github.com/live-codes/livecodes'
description: 'A feature-rich, open-source, client-side code playground supporting 90+ languages/frameworks with SDK for embedding'
generated_from:
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/livecodes/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >-
LiveCodes skills.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
---

# LiveCodes Overview
Expand All @@ -24,7 +24,7 @@ LiveCodes is a feature-rich, open-source, client-side code playground that runs
| Quick start for beginners | [livecodes/getting-started/SKILL.md](./getting-started/SKILL.md) |
| Create embedded playgrounds | [livecodes/sdk-embedding/SKILL.md](./sdk-embedding/SKILL.md) |
| Use SDK methods (run, getCode, setConfig, watch) | [livecodes/sdk-methods/SKILL.md](./sdk-methods/SKILL.md) |
| Compress/decompress config utilities | [livecodes/sdk-embedding/SKILL.md](./sdk-embedding/SKILL.md) |
| Compress/decompress config utilities | [livecodes/sdk-embedding/SKILL.md](./sdk-embedding/SKILL.md) |
| Configure via Config object, query params | [livecodes/configuration/SKILL.md](./configuration/SKILL.md) |
| Choose display mode (full, simple, result, etc.) | [livecodes/display-modes/SKILL.md](./display-modes/SKILL.md) |
| Run playgrounds without visible UI | [livecodes/headless-mode/SKILL.md](./headless-mode/SKILL.md) |
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/configuration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
when setting up project content, configuring CSS processors, or customizing display.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:docs/docs/configuration/configuration-object.mdx
- live-codes/livecodes:docs/docs/configuration/query-params.mdx
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/display-modes/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
embeddings, configuring read-only views, or showing only result or editor.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires:
- configuration
sources:
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/framework-wrappers/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
Load this skill when embedding LiveCodes in a framework application.
type: framework
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires:
- sdk-embedding
- sdk-methods
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/livecodes/getting-started/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
and self-hosting basics. Load this skill for initial setup and basic usage patterns.
type: lifecycle
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:README.md
- live-codes/livecodes:docs/docs/getting-started.mdx
Expand Down Expand Up @@ -132,7 +132,7 @@ createPlayground('#container', {
});

// SDK version pinning
import { createPlayground } from 'https://cdn.jsdelivr.net/npm/livecodes@0.13.0';
import { createPlayground } from 'https://cdn.jsdelivr.net/npm/livecodes@0.14.1';
```

## Common Patterns by Use Case
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/gh-action/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
for pull request code changes. Automates playground creation and PR comments.
type: composition
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires: []
sources:
- live-codes/preview-in-livecodes:README.md
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/headless-mode/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
output without display.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires:
- sdk-embedding
- sdk-methods
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/import-export/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
when loading projects from external sources or exporting project state.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:docs/docs/features/import.mdx
- live-codes/livecodes:docs/docs/features/export.mdx
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/language-support/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
Python, Ruby, or Go.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:docs/docs/languages/index.mdx
- live-codes/livecodes:docs/docs/languages/_template.mdx
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/markdown-integration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
Docusaurus, Astro, VitePress, Next.js, and Storybook.
type: composition
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires:
- sdk-embedding
sources:
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/module-resolution/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
or resolving import conflicts.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:docs/docs/features/module-resolution.mdx
- live-codes/livecodes:src/livecodes/compiler/import-map.ts
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/sdk-embedding/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
containers, or setting up SDK integration.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:docs/docs/sdk/js-ts.mdx
- live-codes/livecodes:src/sdk/index.ts
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/sdk-methods/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
or retrieving compiled output.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires:
- sdk-embedding
sources:
Expand Down
6 changes: 3 additions & 3 deletions .agents/skills/livecodes/self-hosting/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
when self-hosting LiveCodes or using a custom app URL.
type: composition
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
requires:
- sdk-embedding
sources:
Expand Down Expand Up @@ -152,9 +152,9 @@ createPlayground('#container', {
});

// Pin SDK version
import { createPlayground } from 'livecodes@0.13.0';
import { createPlayground } from 'livecodes@0.14.1';
// or
import { createPlayground } from 'https://cdn.jsdelivr.net/npm/livecodes@0.13.0';
import { createPlayground } from 'https://cdn.jsdelivr.net/npm/livecodes@0.14.1';
```

Permanent URLs format: `https://v{VERSION}.livecodes.io`
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/livecodes/testing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
Load this skill when writing tests for playground code or running tests via SDK.
type: core
library: livecodes
library_version: 0.13.0
library_version: 0.14.1
sources:
- live-codes/livecodes:docs/docs/features/tests.mdx
---
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"services",
"CommandMenu",
"Accessibility",
"self-hosting"
"self-hosting",
"Sidebar"
],
"html.customData": ["./.vscode/html.html-data.json"]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A [feature-rich](https://livecodes.io/docs/features/), open-source, **client-sid
[![LiveCodes: npm version](https://img.shields.io/npm/v/livecodes)](https://www.npmjs.com/package/livecodes)
[![LiveCodes: npm downloads](https://img.shields.io/npm/dm/livecodes)](https://www.npmjs.com/package/livecodes)
[![LiveCodes: jsdelivr downloads](https://data.jsdelivr.com/v1/package/npm/livecodes/badge?style=rounded)](https://www.jsdelivr.com/package/npm/livecodes)
[![LiveCodes: languages](https://img.shields.io/badge/languages-98-blue)](https://livecodes.io/docs/languages/)
[![LiveCodes: languages](https://img.shields.io/badge/languages-100-blue)](https://livecodes.io/docs/languages/)
[![LiveCodes: docs](https://img.shields.io/badge/Documentation-575757?logo=gitbook&logoColor=white)](https://livecodes.io/docs/)
[![LiveCodes: llms.txt](https://img.shields.io/badge/llms.txt-575757?logo=googledocs&logoColor=white)](https://livecodes.io/docs/llms.txt)
[![LiveCodes: llms-full.txt](https://img.shields.io/badge/llms--full.txt-575757?logo=googledocs&logoColor=white)](https://livecodes.io/docs/llms-full.txt)
Expand Down
20 changes: 13 additions & 7 deletions docs/docs/configuration/configuration-object.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ An object that configures the language and content of the markup editor. This ca
A URL to load `content` from. It has to be a valid URL that is CORS-enabled.
The URL is only fetched if `content` property had no value.

- `hidden`:
Type: [`boolean | undefined`](../api/interfaces/Config.md#hidden)
Default: `""`
If `true`, the title of the code editor is hidden, however its code is still evaluated.
This can be useful in embedded playgrounds (e.g. for hiding unnecessary code).

- `hiddenContent`:
Type: [`string | undefined`](../api/interfaces/Config.md#hiddencontent)
Default: `undefined`
Expand All @@ -153,18 +159,12 @@ An object that configures the language and content of the markup editor. This ca
A URL to load `hiddenContent` from. It has to be a valid URL that is CORS-enabled.
The URL is only fetched if `hiddenContent` property had no value.

- `foldedLines`:
Type: [`Array<{ from: number; to: number }> | undefined`](../api/interfaces/Config.md#foldedlines)
Default: `undefined`
Lines that get folded when the editor loads. The code can be unfolded by clicking on arrow beside the line.
This can be useful for less relevant code in embedded playgrounds.

- `title`:
Type: [`string | undefined`](../api/interfaces/Config.md#title)
Default: `""`
If set, this is used as the title of the editor in the UI, overriding the default title set to the language name (e.g. "Python" can be used instead of "Py (Wasm)").

- `hideTitle`:
- `hideTitle` (**deprecated**, use `hidden` instead):
Type: [`boolean | undefined`](../api/interfaces/Config.md#hidetitle)
Default: `""`
If `true`, the title of the code editor is hidden, however its code is still evaluated.
Expand All @@ -186,6 +186,12 @@ An object that configures the language and content of the markup editor. This ca
The initial position of the cursor in the code editor.
Example: `{lineNumber: 5, column: 10}`

- `foldedLines`:
Type: [`Array<{ from: number; to: number }> | undefined`](../api/interfaces/Config.md#foldedlines)
Default: `undefined`
Lines that get folded when the editor loads. The code can be unfolded by clicking on arrow beside the line.
This can be useful for less relevant code in embedded playgrounds.

### `style`

Type: [`Editor`](../api/interfaces/Config.md#style)
Expand Down
27 changes: 14 additions & 13 deletions docs/docs/contribution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ This directory contains comprehensive documentation for contributors working on

### Editor & UI

| Document | Description |
| ---------------------------------------------------- | ------------------------------------------------------------- |
| [editor-system.mdx](./editor-system.mdx) | Multi-editor support (Monaco, CodeMirror, CodeJar) and themes |
| [ui-design-system.mdx](./ui-design-system.mdx) | UI components, styling, theming, and responsive design |
| [tools-pane-system.mdx](./tools-pane-system.mdx) | Console, compiled code viewer, and test runner |
| Document | Description |
| ----------------------------------------------------- | ------------------------------------------------------------- |
| [editor-system.mdx](./editor-system.mdx) | Multi-editor support (Monaco, CodeMirror, CodeJar) and themes |
| [ui-design-system.mdx](./ui-design-system.mdx) | UI components, styling, theming, and responsive design |
| [tools-pane-system.mdx](./tools-pane-system.mdx) | Console, compiled code viewer, and test runner |
| [notifications-system.md](./notifications-system.mdx) | Toast notification system |

### Language Support
Expand All @@ -40,12 +40,13 @@ This directory contains comprehensive documentation for contributors working on

### Features

| Document | Description |
| ---------------------------------------------------------- | --------------------------------------------------------- |
| [import-system.mdx](./import-system.mdx) | Import from GitHub, GitLab, files, URLs, and more |
| [export-system.mdx](./export-system.mdx) | Export to JSON, ZIP, HTML, CodePen, JSFiddle, GitHub Gist |
| [result-page.mdx](./result-page.mdx) | Result iframe generation and sandbox creation |
| [code-formatting-system.mdx](./code-formatting-system.mdx) | Prettier integration and custom formatters |
| Document | Description |
| ---------------------------------------------------------------------------- | --------------------------------------------------------- |
| [import-system.mdx](./import-system.mdx) | Import from GitHub, GitLab, files, URLs, and more |
| [export-system.mdx](./export-system.mdx) | Export to JSON, ZIP, HTML, CodePen, JSFiddle, GitHub Gist |
| [result-page.mdx](./result-page.mdx) | Result iframe generation and sandbox creation |
| [sourcemaps-console-line-numbers.mdx](./sourcemaps-console-line-numbers.mdx) | Console log/error line mapping via source maps |
| [code-formatting-system.mdx](./code-formatting-system.mdx) | Prettier integration and custom formatters |

### Services & Infrastructure

Expand Down Expand Up @@ -80,8 +81,8 @@ This directory contains comprehensive documentation for contributors working on

### Deployment

| Document | Description |
| ---------------------------------- | --------------------------------------------- |
| Document | Description |
| ---------------------------------- | ---------------------------------------------- |
| [deployment.mdx](./deployment.mdx) | GitHub Actions deployment workflows and guards |

## Code Style
Expand Down
13 changes: 9 additions & 4 deletions docs/docs/contribution/compiler-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ graph TD
A --> L[compiler-utils.ts]
A --> M[utils.ts]
end

B["Type definitions"]
C["Main compiler factory"]
D["Compiler instance getter"]
Expand Down Expand Up @@ -158,9 +158,14 @@ interface CompileInfo {
importedContent?: string;
imports?: Record<string, string>;
errors?: string[];
sourceMaps?: Record<string, string>;
}
```

Compiled languages can populate `sourceMaps` (a record keyed by filename) used to map
runtime console logs/errors back to source lines; see
[Source Maps & Console Line Numbers](./sourcemaps-console-line-numbers.mdx).

## Compilation Flow

### Main Thread Flow
Expand Down Expand Up @@ -314,13 +319,13 @@ Workers and main thread communicate via typed messages:
sequenceDiagram
participant Main as Main Thread
participant Worker as Worker

Main->>Worker: init (config)
Worker->>Main: init-success

Main->>Worker: load (typescript)
Worker->>Main: loaded (typescript)

Main->>Worker: compile (code, language)
Worker->>Main: compiled (result)
```
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/contribution/result-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ handleResize()
handleScrollPosition()
```

`proxyConsole()` computes the caller's source and line before forwarding each message; see
[Source Maps & Console Line Numbers](./sourcemaps-console-line-numbers.mdx) for how logs and
errors are mapped back to the source file and line.

---

## Import Resolution Flow
Expand Down
Loading
Loading