npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iankibetsh/vue-streamline

v1.3.7

Published

Vue library for streamlining laravel backend services with @iankibet/streamline composer package

Downloads

606

Readme

Streamline Vue Plugin

A robust Vue 3 plugin designed for seamless integration with Streamline backend services. It delivers reactive state management, intelligent caching, and dynamic action invocation.

🚀 Key Features

  • Zero-Config Actions: Invoke backend methods directly via a JavaScript Proxy.
  • Stateful Streams: Initial arguments are persisted across all subsequent action calls.
  • Object Argument Mapping: Pass objects that automatically populate backend request() data and map to method parameters.
  • Reactive State: Automatically syncs public properties from your backend Stream classes.
  • Smart Caching: IndexedDB caching for instant data availability (enabled by default).
  • Security & Privacy: Automatically filters out internal methods and properties from the response payload.

📦 Installation

npm install @iankibetsh/vue-streamline

⚙️ Setup

1. Register the Plugin

import { createApp } from "vue";
import { streamline } from "@iankibetsh/vue-streamline";
import App from "./App.vue";

const app = createApp(App);

app.use(streamline, {
  streamlineUrl: "https://your-api.com/api/streamline",
  enableCache: true, // Enabled by default, set to false to disable
});

app.mount("#app");

[!NOTE] Caching uses IndexedDB (streamline_cache database) for persistence, offering higher storage limits and better performance than standard local storage.

2. Use in Components

<script setup>
import { useStreamline } from "@iankibetsh/vue-streamline";

// Pass initial arguments (e.g., ID 42)
// These are PERSISTED for all future actions on this service
const { service, loading, props } = useStreamline("project", 42);

const update = async () => {
  // Backend receives taskId=42 in constructor automatically
  await service.updateStatus("active");
};
</script>

📖 API Reference

useStreamline(stream, ...initialArgs)

Primary composable for interfacing with Streamline services.

Parameters

  • stream (string): Name of the target stream class on the backend.
  • ...initialArgs (any): Arguments passed to the backend constructor. These are persisted for every subsequent action call.

Returns

| Property | Type | Description | | --------------- | -------------- | -------------------------------------------------------------- | | service | Reactive Proxy | Proxy for invoking backend methods. | | loading | ref<boolean> | true when a request is in flight. | | props | Reactive Proxy | Holds public properties fetched from the backend. | | getActionUrl | Function | Generates URLs for actions (downloads, exports). | | confirmAction | Function | Wrapper for triggering a confirmation dialog before an action. |


🧙 Advanced Features

1. Persistent State

Unlike traditional APIs where you send the ID every time, Streamline remembers:

const { service } = useStreamline("user", 123);

// Backend runs: new UserStream(123)->changePassword('secret')
await service.changePassword("secret");

// Backend still runs: new UserStream(123)->getLogs()
await service.getLogs();

2. Method Object Mapping

You can pass objects to methods. Streamline will:

  1. Merge the object into the backend request() data.
  2. Automatically map object keys to specific method parameters if they match by name.
// Frontend
service.updateProfile(123, { bio: 'New bio', age: 30 });

// Backend
public function updateProfile($userId, $bio) {
    // $userId = 123
    // $bio = 'New bio' (auto-mapped from object)
    // request('age') = 30
}

3. Confirmation Dialogs

Prompt users before destructive actions:

await service.confirm("Delete this user?").delete();

4. Cross-Stream Actions

Execute actions on different streams using colon notation:

await service["logs:clear"]();

5. Manual Refresh

Force reload of stream properties:

await service.refresh(); // or service.reload()

📄 License

MIT