hookery 0.0.1

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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mohamed Shaban
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Hookery 🪝
2
+
3
+ A collection of high-quality, performant React hooks.
4
+
5
+ > ⚠️ **Coming Soon** - This package is under active development.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install hookery
11
+ ```
12
+
13
+ ## Features (Planned)
14
+
15
+ - 🚀 **High Performance** - Zero unnecessary re-renders
16
+ - 📦 **Tree-shakeable** - Only import what you need
17
+ - 🔒 **TypeScript First** - Full type safety
18
+ - ⚡ **SSR Ready** - Works with Next.js, Remix, and more
19
+ - 🎯 **React 18/19** - Built for modern React
20
+
21
+ ## License
22
+
23
+ MIT © Mohamed Shaban
@@ -0,0 +1,14 @@
1
+ /**
2
+ * HookForge - A collection of high-quality React hooks
3
+ * @version 0.0.1
4
+ */
5
+ /**
6
+ * A simple hook that returns the library version
7
+ * This is a placeholder for the initial npm reservation
8
+ */
9
+ declare function useVersion(): string;
10
+ declare const _default: {
11
+ version: string;
12
+ };
13
+
14
+ export { _default as default, useVersion };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * HookForge - A collection of high-quality React hooks
3
+ * @version 0.0.1
4
+ */
5
+ /**
6
+ * A simple hook that returns the library version
7
+ * This is a placeholder for the initial npm reservation
8
+ */
9
+ declare function useVersion(): string;
10
+ declare const _default: {
11
+ version: string;
12
+ };
13
+
14
+ export { _default as default, useVersion };
package/dist/index.js ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ default: () => index_default,
24
+ useVersion: () => useVersion
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+ function useVersion() {
28
+ return "0.0.1";
29
+ }
30
+ var index_default = {
31
+ version: "0.0.1"
32
+ };
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ useVersion
36
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,11 @@
1
+ // src/index.ts
2
+ function useVersion() {
3
+ return "0.0.1";
4
+ }
5
+ var index_default = {
6
+ version: "0.0.1"
7
+ };
8
+ export {
9
+ index_default as default,
10
+ useVersion
11
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "hookery",
3
+ "version": "0.0.1",
4
+ "description": "A collection of high-quality, performant React hooks",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "sideEffects": false,
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsup src/index.ts --format cjs,esm --dts",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "keywords": [
24
+ "react",
25
+ "hooks",
26
+ "react-hooks",
27
+ "typescript",
28
+ "performance"
29
+ ],
30
+ "author": "Mohamed Shaban",
31
+ "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/mohamedshaban/hookery"
35
+ },
36
+ "homepage": "https://github.com/mohamedshaban/hookery#readme",
37
+ "peerDependencies": {
38
+ "react": ">=18.0.0"
39
+ },
40
+ "devDependencies": {
41
+ "tsup": "^8.0.0",
42
+ "typescript": "^5.0.0",
43
+ "react": "^18.0.0",
44
+ "@types/react": "^18.0.0"
45
+ }
46
+ }