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

@0xkobold/pi-obsidian-bridge

v0.1.0

Published

Obsidian vault integration for pi-coding-agent

Downloads

93

Readme

📓 Pi Obsidian Bridge

Obsidian vault integration for pi-coding-agent.

Provides bidirectional sync between Obsidian vault tasks and your agent.

Features

  • 🏷️ Tag-based discovery - Finds tasks tagged #kobold
  • 🔁 Bidirectional sync - Marks tasks complete back to Obsidian
  • 📁 Auto-vault creation - Creates vault structure if not exists
  • 🎯 Standalone - Works without 0xKobold framework
  • 🔌 Integrable - Exposes bridge for scheduler integration

Installation

# Via pi CLI
pi install npm:@0xkobold/pi-obsidian-bridge

# Or in pi-config.ts
extensions: ['npm:@0xkobold/pi-obsidian-bridge']

Configuration

Environment Variables:

PI_OBSIDIAN_VAULT=~/.0xkobold/obsidian_vault  # Vault path (auto-created if not exists)
PI_OBSIDIAN_STORAGE=~/.0xkobold              # State storage
PI_OBSIDIAN_ENABLED=true                     # Enable/disable
PI_OBSIDIAN_TASKS_FILE=10-Action/Tasks.md  # Tasks file path

Usage

Standalone

import { ObsidianBridge } from '@0xkobold/pi-obsidian-bridge';

const bridge = new ObsidianBridge({
  enabled: true,
  vaultPath: './my-vault',
  tasksFilePath: '10-Action/Tasks.md',
  storagePath: './.bridge-state',
});

await bridge.init();

// Poll for tasks
const tasks = await bridge.pollForTasks();
console.log(`Found ${tasks.length} tasks`);

// Get pending tasks
const pending = await bridge.getPendingTasks();

// Complete a task
await bridge.completeTask(tasks[0].id);

With pi-coding-agent

// Extension auto-registers tools:
// /obsidian_poll  - Poll for #kobold tasks
// /obsidian_tasks - List pending tasks  
// /obsidian_done  - Mark task complete
// /obsidian_status - Show bridge status

// Access bridge programmatically:
const bridge = (pi as any).obsidianBridge;

// Integrate with your scheduler
myScheduler.on('tick', () => {
  bridge.pollForTasks();
});

With 0xKobold Heartbeat

In your Heartbeat.md, add:

## Obsidian Integration

The Obsidian Bridge is available at runtime:

```typescript
const bridge = (pi as any).obsidianBridge;
if (bridge) {
  await bridge.pollForTasks();
}

## Vault Structure

Auto-created at `PI_OBSIDIAN_VAULT`:

obsidian_vault/ ├── .obsidian/ # Config ├── 00-Inbox/ # New notes ├── 01-Projects/ # Projects ├── 10-Action/ │ └── Tasks.md # #kobold tasks here └── 90-Archive/ # Completed


## Task Format

In `10-Action/Tasks.md`:
```markdown
## Active

- [ ] Review code #kobold
- [ ] Deploy feature #kobold #urgent

## Archive

API

ObsidianBridge

| Method | Description | |--------|-------------| | init() | Initialize vault | | pollForTasks() | Scan for #kobold tasks | | getPendingTasks() | Get pending list | | markInProgress(id) | Mark task active | | completeTask(id) | Mark complete in Obsidian | | getStatus() | Get bridge status |

Standalone Example

// minimal.ts - No pi-coding-agent needed
import { ObsidianBridge } from '@0xkobold/pi-obsidian-bridge';

const bridge = new ObsidianBridge({
  enabled: true,
  vaultPath: './vault',
  tasksFilePath: 'Tasks.md',
  storagePath: './.state',
});

await bridge.init();
setInterval(() => bridge.pollForTasks(), 60000);

Links

License

MIT