Framework For Chromium-Based Browser Extensions
npm install ionthrust!ionthrust — Framework For Chromium-Based Browser Extensions
> THIS PROJECT IS STILL IN THE DESIGN PHASE
>
> IDEAS & CONTRIBUTIONS ARE WELCOME
>
> An Open Source Universe Project
---
- ionthrust
- Contents
- Features ✨
- Install 🛠
- Usage 🔭
- Documentation 🛰
- Contributing 🌎
- License ⚖️
- Create Chrome Extensions with Svelte Planned
- Unified State Management via fysics Planned
- Annotate Functions as Background or Content-Script Planned
- Automatic Code Splitting between Background & Content Scripts Planned
- Typescript Support Planned
``sh`
npm install ionthrust
Read more about the Design behind ionthrust here.
`typescript
// @ion-thrust background
const backgroundFunction = async (data) => {
await chrome.storage.local.set({ data });
}
// @ion-thrust content-script
const contentScriptFunction = async () => {
const element = document.querySelector('div > div > .class > a');
await backgroundFunction({ text: element.innerText });
}
// Ion Thrust Automatically Creates a Messaging Channel between both functions to support RPC.
`
ionthrust is under active development, documentation will be added once an initial release is ready.
We would love for you to contribute your ideas, code, & fixes to ionthrust`.
We encourage everyone to read our Design Document to learn more about the thought process behind ionthrust.
Also check out the rewards offered for contributing to the Open Source Universe.
MIT