void-stack
v1.0.2
Published
A modern fullstack toolkit providing modular backend, frontend, UI-kit, theming, and authentication generators for rapid application development.
Maintainers
Readme
Void Stack
A modern fullstack toolkit providing modular backend, frontend, UI-kit, theming, and authentication generators for rapid application development.
Features
Modular backend & frontend generators
UI-kit and theming system
Authentication setup
Includes essential utilities:
lodashfor functional programming and collection utilitiesi18nextfor internationalizationaxiosfor HTTP requests
All dependencies are bundled inside
void-stack, so users do not need to installlodash,i18next, oraxiosseparately.
Installation
npm install void-stackUsage Examples
Importing modules
import { SumModule, i18next, axios, ld } from 'void-stack';i18next (Internationalization)
i18next.init({
lng: 'en',
resources: {
en: { translation: { welcome: "Welcome to my app!" } }
}
});
console.log(i18next.t('welcome')); // Output: "Welcome to my app!"Axios (HTTP Requests)
axios.get("https://jsonplaceholder.typicode.com/posts/1")
.then(r => console.log(r.data))
.catch(e => console.error("Request error:", e));Lodash (Utilities)
const numbers = [1, 2, 3, 4, 5];
const doubled = ld.map(numbers, n => n * 2);
console.log("Doubled numbers:", doubled);
const users = [
{ name: "Alice", age: 25 },
{ name: "Bob", age: 30 },
{ name: "Charlie", age: 20 }
];
const sortedByAge = ld.sortBy(users, 'age');
console.log("Sorted users:", sortedByAge);SumModule (Custom Utilities)
import { SumModule } from 'void-stack';
console.log(SumModule.sum(5, 10)); // Example output: 15CLI Usage
npx void-stackRuns the CLI for generating fullstack modules, scaffolding UI components, theming, and auth setups.
Contributing
Contributions are welcome! Please fork the repository and submit pull requests. Make sure to follow code style and run tests.
License
MIT © Alireza Askari
