
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
sprintify-ui
Advanced tools
Sprintify UI is a Vue 3 components library for Vite projects using a Laravel backend.
Storybook Documentation https://sprintify-ui.witify.io
npm i sprintify-ui --save
sprintify-ui is highly opinionated and requires multiple dependencies :
@vueuse/core
axios
ckeditor5
@ckeditor/ckeditor5-vue
lodash
luxon
pinia
qs
tailwindcss
vue
vue-router
By default, if you don't have these dependencies installed, you will get a warning message in the console.
npm i @vueuse/core axios [...] --save
import { createApp } from 'vue';
import axios from "axios";
import { createPinia } from "pinia";
import { createRouter, createWebHistory } from "vue-router";
import SprintifyUI from "sprintify-ui";
import { messages as SprintifyUIMessages } from "sprintify-ui";
import App from './App.vue';
// Import your TailwindCSS *before* importing Sprintify UI CSS
import "./assets/tailwind.css";
// Import Sprintify UI CSS
import "sprintify-ui/dist/style.css";
/** Axios */
const http = axios.create({
useCredentials: true,
});
/** Vue Router */
const router = createRouter({
routes: [],
history: createWebHistory("admin"),
});
const app = createApp(App);
/** Vue Plugins */
app.use(router);
app.use(createPinia());
// Import Sprintify UI plugin
app.use(SprintifyUI, {
http, // Default axios instance for <BaseAutocompleteFetch>, <BaseDataIterator>, etc...
upload_url: "/api/files/upload", // Default upload URL for <BaseFileUploader>
});
app.mount("#app");
Make sure you have all the required tailwindCSS plugins installed:
npm i tailwindcss @tailwindcss/forms @tailwindcss/typography @tailwindcss/aspect-ratio -D
Update your content list :
{
content: [
//...,
"./node_modules/sprintify-ui/src/**/*.ts",
"./node_modules/sprintify-ui/src/**/*.js",
"./node_modules/sprintify-ui/src/**/*.vue",
],
}
Update your plugin list :
plugins: [
//...,
require("sprintify-ui/tailwindcss"),
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
Add a custom resolver
Components({
resolvers: [
(componentName) => {
if (componentName.startsWith("Base"))
return { name: componentName, from: "sprintify-ui" };
},
],
}),
To use notifications and dialogs, your main layout must contain the <BaseAppSnackbars> and <BaseAppDialogs> components.
These components will observe the Pinia store and render dialogs and notifications.
<template>
<RouterView></RouterView>
<BaseAppSnackbars />
<BaseAppDialogs />
</template>
<script lang="ts" setup>
</script>
You may 100% customize the look and feel of dialogs and snackbars by removing <BaseApp> and instead creating your own render logic. Here's a simple example to render snackbars:
<template>
<Teleport to="body">
<div class="pointer-events-none fixed inset-0 flex items-end justify-end p-6 md:p-8">
<div class="w-full max-w-sm">
<div v-for="snackbar in snackbars" :key="snackbar.id">
<h2>{{ snackbar.title }}</h2>
<p>{{ snackbar.text }}</p>
</div>
</div>
</div>
</Teleport>
</template>
<script lang="ts" setup>
import { useSnackbarsStore } from 'sprintify-ui';
const snackbarsStore = useSnackbarsStore();
const snackbars = computed(() => {
return snackbarsStore.snackbars;
});
</script>
In order to make BaseAddressForm work correctly, you must import countries and regions to Sprintify UI.
Each country must adhere to the following interface:
Each region must adhere to the following interface:
app.use(SprintifyUI, {
http,
// Import while initializing Sprintify UI
countries: window.yourCountryList,
regions: window.yourRegionList,
});
Add this snippet to your HTML <head>. Replace YOUR_API_KEY with you API key.
<script defer async src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"></script>
All components are globally available, you can use them without importation:
<template>
<BaseAlert title="Test" color="danger"></BaseAlert>
</template>
<script lang="ts" setup>
</script>
git add .
For your commit you must run the following code:
npm run commit
To release (only from main after review)
npm run release
git push --follow-tags origin main
npm publish
FAQs
Unknown package
The npm package sprintify-ui receives a total of 1,862 weekly downloads. As such, sprintify-ui popularity was classified as popular.
We found that sprintify-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.