{"_id":"frosty@0.0.166","bin":{"frosty":"packages/frosty-cli/bin/frosty.sh"},"bugs":{"url":"https://github.com/o2ter/frosty/issues"},"dist":{"shasum":"8f6bf66adba2c9ba0bd3d70af67e75b3aad361d1","tarball":"http://registry-npm.ywwl.com/frosty/download/frosty-0.0.166.tgz","fileCount":126,"integrity":"sha512-DdbULuzFuhPYbOI2n1nhBZdCTEZ20spVoetny1Eq8DI7Kxc69c1AuPwXJto4kOKn5X5WzeHE5vzuu03VmPRs3Q==","signatures":[{"sig":"MEUCIFsyd9rdOL0T14X80snJdEVO+Y07RPOa0CDwAvkyyA4tAiEAw7W/JneCFLnJ53e3DNC86ko8w67vnvDvsNkdIxppMjE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHuvc8Qigp0tn2afKC0f6kiZWtVHWkU3msFnsES5Yi/CAiB+53SMfewRBFWi6kPRrGTRC2/Wp/zZNDX6CXEdKkcfBQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/frosty@0.0.166","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2157323,"size":341302,"noattachment":false,"key":"/frosty/-/frosty-0.0.166.tgz"},"main":"dist/index","name":"frosty","types":"dist/index","author":{"name":"Susan Cheng","email":"susan.doggie@gmail.com"},"module":"dist/index","exports":{".":{"types":"./dist/index.mjs","default":"./dist/index.js"},"./*":{"types":"./dist/*.mjs","default":"./dist/*.js"}},"gitHead":"eb189f54f34427d1a6041759c0ee2f4df438f4e9","license":"MIT","scripts":{"test":"jest","clean":"rm -rf ./dist/*","start":"npx frosty run -d -w -s ./src tests/server/app.tsx","rollup":"yarn clean && rollup -c","gen-data":"node ./scripts/gen-data.mjs"},"version":"0.0.166","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"6590a2e1-9b85-4064-93d9-d868b7610ff4"}},"homepage":"https://github.com/o2ter/frosty#readme","repository":{"url":"git+https://github.com/o2ter/frosty.git","type":"git"},"_npmVersion":"12.2.1","description":"A fast, flexible, and modern JSX-based UI library.","directories":{},"maintainers":[{"name":"susandoggie","email":"susan.doggie@gmail.com"}],"_nodeVersion":"22.23.4","dependencies":{"jsdom":"^29.1.1","lodash":">=4.18.1","csstype":"^3.2.3","nextick":"^0.0.2","postcss":"^8.5.23","myers.js":"^0.0.22","postcss-js":"^5.1.0","@types/jsdom":"^28.0.3","@types/lodash":"^4.17.24","postcss-nested":"^7.0.2","@o2ter/utils-js":"^0.0.23","@formatjs/intl-localematcher":"^0.8.12"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.1.3","tslib":"^2.8.1","rollup":"^4.59.0","core-js":"^3.49.0","ts-jest":"^29.4.2","ts-node":"^10.9.2","webidl2":"^24.5.0","frosty-cli":"./packages/frosty-cli","typescript":"^5.7.3","@types/jest":"^30.0.0","@webref/css":"^8.7.0","@webref/idl":"^3.81.3","@webref/events":"^1.24.2","dotenv-webpack":"^9.0.0","@webref/elements":"^2.7.1","@types/postcss-js":"^4.1.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-babel":"^6.0.4","svg-element-attributes":"^2.1.0","@rollup/plugin-commonjs":"^28.0.6","html-element-attributes":"^3.5.0","@rollup/plugin-typescript":"^12.1.4","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/frosty_0.0.166_1793239227090_0.37778015832948764"},"readme":"# Frosty\n\nA fast, flexible, and modern JSX-based UI library.\n\n## Features\n\n- ⚡ Fast rendering and reconciliation\n- 🧩 Flexible component model\n- 🎨 Built-in style and CSS support\n- 🪝 Modern hooks API\n- 🌐 SSR-ready (Server-side rendering)\n\n## Installation\n\nInstall Frosty using npm:\n\n```sh\nnpm install frosty\n```\n\n## Quick Start\n\nHere's a simple example to get you started:\n\n```tsx\nimport { useState } from 'frosty';\n\nfunction App() {\n  const [count, setCount] = useState(0);\n  return (\n    <div>\n      <h1>Hello, Frosty!</h1>\n      <p>You clicked {count} times</p>\n      <button onClick={() => setCount(count + 1)}>\n        Count: {count}\n      </button>\n    </div>\n  );\n}\n\nexport default App;\n```\n\nSee the [comprehensive documentation](./docs) for detailed guides, API reference, and advanced usage patterns.\n\n## Application Entry Point\n\nYour application entry point (the main file you pass to Frosty CLI) must export your root component as the **default export**. This is required for Frosty to properly identify and render your application.\n\n```tsx\n// app.tsx or app.js\nimport { useState } from 'frosty';\n\nfunction MyApp() {\n  // Your application logic here\n  return <div>Hello World!</div>;\n}\n\n// Required: Export your root component as default\nexport default MyApp;\n```\n\nThis default export pattern ensures that:\n- Frosty CLI can automatically detect your application component\n- Server-side rendering (SSR) works correctly\n- Client-side hydration functions properly\n- Your app integrates seamlessly with the Frosty build system\n\n## Usage\n\nTo run your app with Frosty CLI using `npx`:\n\n```sh\nnpx frosty run app.js\n```\n\n### Common Options\n\n- `-w, --watch`   Enable watch mode (rebuild on file changes)\n- `-d, --debug`   Enable debug mode (development build)\n- `-p, --port <port>` Specify server port (default: 8080)\n- `-c, --configuration <file>` Use a custom config file (default: server.config.js)\n- `-s, --src <dir>`  Specify source directory\n- `-o, --output <dir>` Specify output directory\n\n### Example Commands\n\nStart your app in development mode with watch:\n\n```sh\nnpx frosty run --watch --debug app.js\n```\n\nRun with a custom port and config:\n\n```sh\nnpx frosty run --port 3000 --configuration my.config.js app.js\n```\n\nSee `npx frosty run --help` for the full list of options.\n\n### Configuration File (Optional)\n\nCustomize build and server behavior with a `server.config.js` file in your project root.\n\n- You may export an object or a function `(env, argv) => config`.\n- All fields are optional.\n\n```js\nmodule.exports = {\n  src: 'src',                // Source directory\n  output: 'dist',            // Output directory\n  serverEntry: 'server.js',  // Server entry file\n  client: {                  // (Optional) Client entry points\n    main: {\n      entry: 'src/app.js',   // Path to client entry file\n      basepath: '/',         // (Optional) URL base path for this entry\n    }\n  },\n  workers: {                 // (Optional) Worker entry points\n    myClientWorker: {\n      entry: 'src/workers/myClientWorker.js', // Path to worker entry file\n      client: true,                           // true = browser worker (bundled into public/workers/)\n    },\n    myServerWorker: {\n      entry: 'src/workers/myServerWorker.js', // Path to worker entry file\n      client: false,                          // false = server worker (bundled into workers/)\n    }\n  },\n  moduleSuffixes: {          // (Optional) Custom module resolution suffixes\n    client: ['.browser', '.web', ''],\n    server: ['.node', '.server', '.web', '']\n  },\n  polyfills: {},             // (Optional) Polyfill options for Babel\n  postcss: {},               // (Optional) PostCSS configuration\n  options: {                 // (Optional) Webpack and build options\n    resolve: {},             // Custom resolve options (e.g., alias)\n    externals: {},           // Webpack externals\n    plugins: [],             // Additional Webpack plugins\n    module: {\n      rules: []              // Additional Webpack module rules\n    },\n    server: {\n      plugins: [],           // Server-specific plugins\n      module: {\n        rules: []            // Server-specific module rules\n      }\n    }\n  }\n};\n```\n\n## TypeScript Setup\n\nTo enable JSX support with Frosty in TypeScript, update your `tsconfig.json`:\n\n```json\n{\n  \"compilerOptions\": {\n    \"jsx\": \"react-jsx\",\n    \"jsxImportSource\": \"frosty\"\n  }\n}\n```\n\nThis configures TypeScript to use Frosty's JSX runtime.\n\n## Babel Setup\n\nTo use Frosty with Babel, add the following to your Babel config:\n\n```json\n{\n  \"presets\": [\n    [\n      \"@babel/preset-react\",\n      {\n        \"runtime\": \"automatic\",\n        \"importSource\": \"frosty\"\n      }\n    ]\n  ]\n}\n```\n\n## Contributing\n\nWe welcome contributions! Please open issues or submit pull requests.\n\n## License\n\nMIT © O2ter Limited\n","publish_time":1793239227286,"_cnpm_publish_time":1793239227286,"dist-tags":{"latest":"0.0.166"}}