adnbn 0.0.55 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.cjs.map +1 -1
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# adnbn
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/adnbn)
|
|
4
|
+
[](https://www.npmjs.com/package/adnbn)
|
|
5
|
+
|
|
6
|
+
## Addon Bone - Cross-Browser Web Extension Framework with shared code base
|
|
7
|
+
|
|
8
|
+
**Cross-browser framework** for developing extensions on a single code base. Enables creating multiple production-grade extensions with different localizations, icons, and designs while maintaining identical core functionality.
|
|
9
|
+
|
|
10
|
+
### Core Concept
|
|
11
|
+
|
|
12
|
+
* **Single code base**: maintain one set of source files for all extensions.
|
|
13
|
+
* **Flexibility**: supports both multi-package setups (multiple extensions in one repository) and standalone projects.
|
|
14
|
+
* **Modern workflow**: automatic merging of styles, scripts, content scripts, and background scripts.
|
|
15
|
+
|
|
16
|
+
### Supported Platforms & Manifests
|
|
17
|
+
|
|
18
|
+
* **Browsers**: Chrome, Firefox, Opera, Safari, Edge.
|
|
19
|
+
* **Manifest Versions**: Manifest V2 and V3.
|
|
20
|
+
|
|
21
|
+
### Entry Points
|
|
22
|
+
|
|
23
|
+
* **Background Page**
|
|
24
|
+
* **Content Scripts**
|
|
25
|
+
* **Commands**
|
|
26
|
+
* **Localization**
|
|
27
|
+
* **Icons**
|
|
28
|
+
* **Messages**
|
|
29
|
+
* **Services**
|
|
30
|
+
* **Relay**
|
|
31
|
+
* **Offscreen**
|
|
32
|
+
* **Popup**
|
|
33
|
+
* **Sidebar**
|
|
34
|
+
|
|
35
|
+
### Plugins
|
|
36
|
+
|
|
37
|
+
* **Extensibility via Plugins**: write modules for background pages, content scripts, and any supported entry points.
|
|
38
|
+
* **Automatic Integration**: plugins are automatically included in the build process and update the manifest.
|
|
39
|
+
|
|
40
|
+
### Services & Relay
|
|
41
|
+
|
|
42
|
+
* **Services**: class-based layer for background interactions without boilerplate. Service methods are available across all extension layers via simple calls.
|
|
43
|
+
* **Relay**: similar mechanism for content pages, bypassing CSP and getUserGesture restrictions by leveraging scripting contexts.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Offscreen
|
|
47
|
+
|
|
48
|
+
* **Manifest V2**: offscreen support via `<iframe>` within the Background Page.
|
|
49
|
+
* **Manifest V3**: native Offscreen API.
|
|
50
|
+
|
|
51
|
+
### Benefits
|
|
52
|
+
|
|
53
|
+
* 🔌 **Plugin Architecture**: easily extend functionality and add features without modifying the core framework.
|
|
54
|
+
* 🔧 **Faster Development**: minimal configuration and boilerplate.
|
|
55
|
+
* 🌐 **Cross-Platform**: write code once; run everywhere regardless of browser or manifest version.
|
|
56
|
+
* 🔄 **Scalable**: seamlessly add new layers and entry points.
|
|
57
|
+
* 🚀 **Modern Design**: cutting-edge architecture following best practices for extension publishing.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
> *This framework is under active development. Detailed documentation and usage examples will be available soon on the official website.*
|
package/dist/cli/index.cjs
CHANGED