I'm looking for people to build small add-ons for Ampere, my open-source Chrome new tab page. An add-on is one JavaScript file, so it's a good first open-source contribution.
What an add-on looks like:
export default {
id: 'hello',
init(api) {
const panel = api.createPanel('hello');
const btn = api.addButton({ title: 'Hello', icon: 'M5 12h14', onClick: () => panel.toggle() });
panel.onOpen = () => panel.card.replaceChildren(api.el('p', null, 'Hello ' + api.storage.get('name', 'friend')));
return { dispose() { panel.close(); btn.remove(); panel.card.remove(); } };
}
};
You get a small API for cards, buttons, settings, styles, saved data and the background. Saved data is automatically included in the user's backup.
Ideas that would be great:
- World clocks
- Countdowns to exams, trips or birthdays
- Currency rates
- A developer toolbox (JSON formatter, Base64, hashes)
- Hijri calendar and holidays
- Hacker News or dev.to feed
How it works:
- Fork the repo and add your file to Projects/NewTab/addons/ plus one entry in addons.json.
- Run node .github/scripts/check-ampere.js (no installs needed).
- Open a pull request and tick the safety, privacy and security checklist, and tell me how to reach you.
- I review the code by hand and reply in the pull request: accepted, changes needed, or rejected, with reasons.
Using AI is welcome. CONTRIBUTING.md has a ready-made prompt that gives the model the API and the rules. You are responsible for reading and testing what it writes.
Rules in short: single readable file, https only, no tracking, no eval or innerHTML, keep data in the browser, and list every website it contacts.
Contributing guide: https://github.com/ProElectricCoder/proelectriccoder.github.io/blob/main/Projects/NewTab/CONTRIBUTING.md
Repo: https://github.com/ProElectricCoder/proelectriccoder.github.io
Questions or ideas? proelectriccoder@gmail.com or open a Discussion.
Top comments (0)