Skip to content

Commit 81d07fd

Browse files
author
Exoridus
committed
chore(package): rename package to exojs
1 parent ac23033 commit 81d07fd

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
ExoJS is a TypeScript-first browser multimedia and rendering framework built around a clean `Application` entrypoint, a scene-driven runtime model, and explicit advanced backend surfaces when you need them.
44

5-
The normal user path is package-based ESM usage through `exo-js-core`.
5+
The normal user path is package-based ESM usage through `exojs`.
66
Advanced backend-specific access lives under dedicated subpaths.
77

88
## Package Surface
99

10-
- Core package: `exo-js-core`
11-
- Advanced WebGL2 surface: `exo-js-core/webgl2`
12-
- Advanced WebGPU surface: `exo-js-core/webgpu`
10+
- Core package: `exojs`
11+
- Advanced WebGL2 surface: `exojs/webgl2`
12+
- Advanced WebGPU surface: `exojs/webgpu`
1313

1414
## Current Built-In Runtime Features
1515

@@ -34,15 +34,15 @@ ExoJS now treats WebGPU as the preferred built-in backend when available, with a
3434
Normal users typically do not need to choose a backend explicitly:
3535

3636
```ts
37-
import { Application } from 'exo-js-core';
37+
import { Application } from 'exojs';
3838

3939
const app = new Application();
4040
```
4141

4242
If you need to force a backend:
4343

4444
```ts
45-
import { Application } from 'exo-js-core';
45+
import { Application } from 'exojs';
4646

4747
const webGpuApp = new Application({ backend: { type: 'webgpu' } });
4848
const webGlApp = new Application({ backend: { type: 'webgl2' } });
@@ -54,21 +54,21 @@ const autoApp = new Application({ backend: { type: 'auto' } });
5454
Install:
5555

5656
```bash
57-
npm install exo-js-core
57+
npm install exojs
5858
```
5959

6060
Minimal example:
6161

6262
```ts
63-
import { Application, Color, Graphics, Scene } from 'exo-js-core';
63+
import { Application, Color, Graphics, Scene } from 'exojs';
6464

6565
class DemoScene extends Scene {
6666
private readonly graphics = new Graphics()
6767
.beginFill(Color.white)
6868
.drawRect(-64, -64, 128, 128)
6969
.endFill();
7070

71-
public override draw(renderBackend: import('exo-js-core').RenderBackend): void {
71+
public override draw(renderBackend: import('exojs').RenderBackend): void {
7272
this.graphics.rotation += 0.01;
7373
this.graphics.render(renderBackend);
7474
}
@@ -113,13 +113,13 @@ Use advanced backend-specific APIs only when you actually need them.
113113
WebGL2 advanced surface:
114114

115115
```ts
116-
import { RenderManager, SpriteRenderer } from 'exo-js-core/webgl2';
116+
import { RenderManager, SpriteRenderer } from 'exojs/webgl2';
117117
```
118118

119119
WebGPU advanced surface:
120120

121121
```ts
122-
import { WebGpuRenderManager, type WebGpuRenderAccess } from 'exo-js-core/webgpu';
122+
import { WebGpuRenderManager, type WebGpuRenderAccess } from 'exojs/webgpu';
123123
```
124124

125125
These subpaths exist for custom renderers and backend-specific systems. They are not required for normal `Application`-centric usage.

docs/ai/repo-map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Last updated: 2026-03-09 (Codex initialization pass)
44

55
## 1) Package and build surface
6-
- Package: `exo-js-core` (`package.json`)
6+
- Package: `exojs` (`package.json`)
77
- Published files: `dist`, `README.md`
88
- Main artifacts:
99
- `main`: `dist/exo.js` (CJS)

docs/api/Application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ new Application({ backend: { type: 'auto' } })
2929
## Typical usage
3030

3131
```ts
32-
import { Application } from 'exo-js-core'
32+
import { Application } from 'exojs'
3333

3434
const app = new Application()
3535
await app.start(scene)

docs/api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Use these pages as the source of truth for examples and application code:
1919

2020
Advanced backend-specific access remains under the package subpaths:
2121

22-
- `exo-js-core/webgl2`
23-
- `exo-js-core/webgpu`
22+
- `exojs/webgl2`
23+
- `exojs/webgpu`

docs/api/Renderer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Normal code should work through drawables and scenes:
2929

3030
Backend-specific renderer/runtime work lives under:
3131

32-
- `exo-js-core/webgl2`
33-
- `exo-js-core/webgpu`
32+
- `exojs/webgl2`
33+
- `exojs/webgpu`

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "exo-js-core",
2+
"name": "exojs",
33
"description": "A lightweight, flexibile and powerful multimedia framework.",
44
"version": "1.1.0",
55
"files": [

0 commit comments

Comments
 (0)