@oneie/plugin-track 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/LICENSE ADDED
@@ -0,0 +1,86 @@
1
+ # ONE License (Version 1.0)
2
+
3
+ Copyright (c) 2024-2026 one.ie
4
+
5
+ ## Maximum Freedom, One Obligation
6
+
7
+ This license empowers you with complete commercial freedom to use, reuse, modify, sell and resell the software, AI and data, at any price you wish.
8
+
9
+ No usage limits. No royalty fees. Just pure, unrestricted ability to innovate and profit from the software.
10
+
11
+ You are free to run ONE locally, on your own servers, in the cloud and at the edge.
12
+
13
+ ## You Receive
14
+
15
+ ### Unlimited Rights
16
+
17
+ You have unrestricted rights to use, modify, license, sublicense, distribute, sell, resell and monetize the Software without restrictions, subject only to the Brand Requirement below.
18
+
19
+ ### Permitted Actions
20
+
21
+ Including, but not limited to:
22
+
23
+ - Commercial use and integration into any systems
24
+ - Creation and sale of derivative works
25
+ - Providing software as a service
26
+ - AI training and content generation
27
+ - Patenting innovations based on the Software
28
+ - Open source applications and integrations
29
+
30
+ ### License Compatibility
31
+
32
+ This license is compatible with all major open-source licenses, including:
33
+
34
+ - MIT License
35
+ - Apache License
36
+ - GNU General Public License (GPL)
37
+ - BSD Licenses
38
+ - Mozilla Public License
39
+
40
+ ### Perpetual Rights
41
+
42
+ These rights are granted in perpetuity and are irrevocable, provided the Brand Requirement is maintained.
43
+
44
+ ## Intellectual Property
45
+
46
+ - We retain ownership of the original Software and data.
47
+ - You own any modifications you make.
48
+ - You never have to share your code or data.
49
+
50
+ ## Brand Requirement
51
+
52
+ The only obligation is:
53
+
54
+ - Don't remove the ONE brand, logo, and link to https://one.ie/ from the deployed product.
55
+
56
+ To remove the Brand Requirement — white-label, no visible ONE branding — obtain the
57
+ **ONE Enterprise License** (see `LICENSE-ENTERPRISE.md` or contact agent@one.ie).
58
+
59
+ ## Liability and Warranty
60
+
61
+ The Software and data is provided "AS IS". We bear no liability for its use.
62
+
63
+ ## Termination
64
+
65
+ This license terminates if you remove or hide the ONE brand, logo, or link without
66
+ holding a current ONE Enterprise License.
67
+
68
+ ## Governing Law and Disputes
69
+
70
+ This license is governed by the laws of Ireland. The parties will attempt to resolve disputes through good-faith negotiation. If necessary, disputes will proceed to mediation under the Mediators' Institute of Ireland rules, and then to binding arbitration under the Arbitration Act 2010, seated in Dublin, conducted in English.
71
+
72
+ ---
73
+
74
+ This license is designed to maximize freedom to innovate and profit. There is no copyleft requirement to share any code, making it suitable for enterprise use.
75
+
76
+ ## Enterprise Solutions
77
+
78
+ Building something big? We're here to help:
79
+
80
+ - **Free** — use every feature with the ONE brand link in the footer
81
+ - **White-label** — remove the brand requirement (ONE Enterprise License)
82
+ - **Custom** — white-label solutions tailored to your needs
83
+ - **Enterprise** — full support and deployment assistance
84
+ - **Training** — help getting your team started
85
+
86
+ Contact agent@one.ie to share your needs · Learn at https://one.ie/learn · Agents: https://one.ie/llms.txt
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @oneie/plugin-track
2
+
3
+ ONE tracking pixel — served from one.ie, zero bundle cost.
4
+
5
+ ```ts
6
+ import { track } from '@oneie/plugin-track'
7
+
8
+ export default defineOne({
9
+ plugins: [track({ ws: 'my-workspace' })],
10
+ })
11
+ ```
12
+
13
+ Injects a `<script>` tag that loads the tracking pixel from one.ie at runtime. Pageviews, events, and conversions flow into your ONE workspace without any tracking code shipping to your repo.
14
+
15
+ ## Options
16
+
17
+ ```ts
18
+ track({
19
+ ws: string, // workspace slug
20
+ })
21
+ ```
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@oneie/plugin-track",
3
+ "version": "0.1.0",
4
+ "description": "ONE tracking pixel — served from one.ie, zero bundle cost, no source in your repo",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "type": "module",
7
+ "main": "src/index.ts",
8
+ "exports": {
9
+ ".": "./src/index.ts"
10
+ },
11
+ "peerDependencies": {
12
+ "astro": ">=6.0.0",
13
+ "@oneie/frontend": "*"
14
+ },
15
+ "devDependencies": {
16
+ "astro": "^6.2.2",
17
+ "typescript": "^5.7.3"
18
+ },
19
+ "peerDependenciesMeta": {
20
+ "@oneie/frontend": {
21
+ "optional": true
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,15 @@
1
+ ---
2
+ export interface Props {
3
+ ws: string
4
+ agent?: string
5
+ }
6
+
7
+ const { ws, agent } = Astro.props
8
+ ---
9
+
10
+ <script
11
+ async
12
+ src="https://one.ie/p/one.js"
13
+ data-ws={ws}
14
+ data-agent={agent}
15
+ ></script>
package/src/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ import type { OnePluginFactory } from '@oneie/frontend'
2
+
3
+ export interface OneTrackConfig {
4
+ ws: string
5
+ agent?: string
6
+ }
7
+
8
+ export const track: OnePluginFactory<OneTrackConfig> = (config = {} as OneTrackConfig) => ({
9
+ name: 'plugin-track',
10
+ tier: 'connected',
11
+ serves: 'p/one.js',
12
+ config: undefined,
13
+ integration: undefined,
14
+ entitlement: undefined,
15
+ })
16
+
17
+ export type { OneTrackConfig as TrackConfig }