New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

prault

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prault

A TypeScript library for managing and templating prompts from files.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Prault

Prompt Vault | A simple, typesafe, file router based prompt management tool.

CI/CD JSR npm

Keep prompts organized in files. Get full TypeScript support. Replace messy strings with easy auto completion.

Quick Start

> npx prault
Generated prompts.gen.ts

// main.ts
import { initPrault } from 'prault';

const prompts = initPrault()

prompts.test()
// I am a test prompt!

prompts.hello({NAME: "adam"})
// Hello adam

Features

  • Type-safe prompt access - Auto-completion for all your prompts
  • Router Based File Detection - No configuration needed
  • Template Variables - Replace {{{KEY}}} placeholders at runtime
  • Cross-platform - Works in Deno and Node.js
  • Synchronous - No async/await headaches for file reading

Installation

# NPM
npm install -g prault

# Deno
deno add jsr:@adavisdev/prault

Generate promt.gen.ts

# cli
prault

# npx
npx prault

# deno
deno run -R -W jsr:@adavisdev/prault

Usage

  • Create a prompts directory with .md or .txt files
    prompts/
    ├── greeting.md
    ├── code-review.md
    └── chat/
        └── welcome-message.md
    
  • Run npx prault to generate prompts.gen.ts
  • Use the generated code in your project
import { initPrault } from "./prompts.gen.ts";

const prompts = initPrault();

// Get prompts
const greeting = prompts.greeting();
const personalized = prompts.greeting({ NAME: "Alice" });

File Structure

  • prompts/greeting.mdprompts.greeting()
  • prompts/code/review.mdprompts.codeReview()
  • Use {{{KEY}}} for template variables

License

MIT

FAQs

Package last updated on 14 Dec 2025

Did you know?

Socket

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.

Install

Related posts