{"library":"stonyx","title":"Stonyx Framework Core","type":"library","description":"Stonyx is an early-stage, TypeScript-first framework module designed for building modular applications, emphasizing a structured, object-oriented approach. It provides foundational concepts such as an `Application` class, `Context` management, and decorators like `@Component` and `@Service`, hinting at a dependency injection pattern. The package is currently in a pre-release state, with version 0.2.2 being the latest stable release, but development is active with frequent `0.2.3-beta` versions being published. This rapid iteration indicates that the API is subject to change and may not be stable. Stonyx aims to provide a robust core for larger application ecosystems, though specific use cases (e.g., web server, CLI tool) are not explicitly detailed in its current minimal documentation.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install stonyx"],"cli":null},"imports":["import { createApplication } from 'stonyx';","import { Application } from 'stonyx';","import { Service } from 'stonyx';"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/abofs/stonyx","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/stonyx","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { createApplication, Component, Service } from 'stonyx';\n\ninterface MyConfig { message: string; }\n\n@Component()\nclass MyComponent {\n  constructor(private config: MyConfig) {}\n\n  run() {\n    console.log(`Component running with message: ${this.config.message}`);\n  }\n}\n\n@Service()\nclass MyService {\n  constructor(private myComponent: MyComponent) {}\n\n  start() {\n    console.log('Service starting...');\n    this.myComponent.run();\n  }\n}\n\nasync function bootstrap() {\n  const app = createApplication({\n    components: [MyComponent, MyService],\n    providers: [\n      { provide: 'MyConfig', useValue: { message: 'Hello from Stonyx!' } }\n    ]\n  });\n\n  await app.start();\n  const service = app.resolve(MyService);\n  service.start();\n\n  // In a real app, you might listen for termination signals or keep the process alive\n  // app.stop(); // Example of stopping the application\n}\n\nbootstrap().catch(console.error);","lang":"typescript","description":"This quickstart demonstrates how to initialize a Stonyx application, define a basic component and service using decorators, inject a configuration, and run the service.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}