
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@strav/view
Advanced tools
Strav view engine — .strav template language. Tokenizer + compiler + ViewEngine, Vue 3 hydration islands + buildIslands, pages auto-router, console commands, disk cache, asset versioning.
The .strav template engine for Strav 1.0. Full frozen directive set + Vue 3 hydration islands via @island. Tokenizer + compiler + ViewEngine + ViewProvider + programmatic buildIslands bundler.
Status: Feature-complete for 1.0 — engine + islands + pages auto-router + console commands (
view:cache/view:clear/view:build) + disk cache + asset versioning all shipped.
bun add @strav/view
Peers: @strav/kernel, vue ^3.5, @vue/compiler-sfc ^3.5.
// config/view.ts
import type { ViewConfig } from '@strav/view'
export default {
directory: 'resources/views',
cache: process.env.NODE_ENV !== 'development',
} satisfies ViewConfig
// In a controller / service:
@inject()
class DashboardController {
constructor(private readonly view: ViewEngine) {}
async show(): Promise<string> {
return this.view.render('pages.dashboard', { user, items })
}
}
{{-- resources/views/pages/dashboard.strav --}}
@extends('layouts.app')
@set('title', 'Dashboard')
@section('content')
<h1>Hi {{ user.name }}</h1>
@each(item in items)
<li>{{ item.title }}</li>
@empty
<li>No items.</li>
@endeach
@endsection
Render:
const html = await view.render('pages.dashboard', { user, items })
@island('Palette')
@island('Canvas', { blocks })
// resources/ts/islands/setup.ts — runs once on the shared app
import { createPinia } from 'pinia'
export default (app) => { app.use(createPinia()) }
import { buildIslands } from '@strav/view'
await buildIslands({
inputDir: 'resources/ts/islands',
outputDir: 'public/assets/islands',
})
Outputs ONE islands.js containing every island + setup hook. Apps include the script in their layout:
<script type="module" src="@asset('islands/islands.js')" defer></script>
All islands run inside the same createApp(Root) — Pinia stores shared, plugins applied once. See docs/view/api.md for the bundler contract + shared-state walkthrough.
storage/cache/views/, configurable via config.view.diskCache). The disk hash is over template source, so edits auto-invalidate. bun strav view:clear wipes both layers.@asset(path) resolves through an AssetManifest: reads a Strav-flat or Vite manifest.json if present (under config.view.assets.publicDir, default public/), falls back to mtime query strings in dev. Set config.view.assets = false for pure pass-through.@csrf / @route wiring (stubs today — wires when @strav/http's session middleware and named-route map are accessible to the engine).Full reference: docs/view/api.md.
FAQs
Strav view engine — .strav template language. Tokenizer + compiler + ViewEngine, Vue 3 hydration islands + buildIslands, pages auto-router, console commands, disk cache, asset versioning.
The npm package @strav/view receives a total of 377 weekly downloads. As such, @strav/view popularity was classified as not popular.
We found that @strav/view demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.