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

spaik-sdk-material

v0.1.2

Published

Material UI components for Spaik SDK - themeable chat UI for AI agents

Readme

Spaik SDK Material

Material UI components for building AI chat interfaces.

Spaik SDK is an open-source project developed by engineers at Siili Solutions Oyj. This is not an official Siili product.

Installation

npm install spaik-sdk-material

Requires peer dependencies:

npm install spaik-sdk-react react react-dom

Quick Start

import { AgentSdkClientProvider, AgentSdkClient } from 'spaik-sdk-react';
import { AgentChat, AgentThemeProvider } from 'spaik-sdk-material';

const client = new AgentSdkClient({ baseUrl: 'http://localhost:8000' });

function App() {
  return (
    <AgentSdkClientProvider apiClient={client}>
      <AgentThemeProvider>
        <AgentChat />
      </AgentThemeProvider>
    </AgentSdkClientProvider>
  );
}

Components

AgentChat

Full chat interface with sidebar and message area.

import { AgentChat } from 'spaik-sdk-material';

<AgentChat />

ChatPanel

Message list with input, without sidebar.

import { ChatPanel } from 'spaik-sdk-material';

<ChatPanel threadId={selectedThreadId} />

ThreadSidebar

Thread list for navigation.

import { ThreadSidebar } from 'spaik-sdk-material';

<ThreadSidebar
  onThreadSelect={setSelectedThreadId}
  selectedThreadId={selectedThreadId}
/>

MessageCard

Individual message display.

import { MessageCard } from 'spaik-sdk-material';

<MessageCard message={message} />

MessageInput

Chat input with attachments.

import { MessageInput } from 'spaik-sdk-material';

<MessageInput
  onSend={(content, attachments) => sendMessage(threadId, { content, attachments })}
  disabled={isStreaming}
/>

Audio Controls

import { SpeakButton, PushToTalkButton } from 'spaik-sdk-material';

// Text-to-speech for a message
<SpeakButton text={message.blocks.map(b => b.content).join('')} />

// Voice input
<PushToTalkButton onTranscription={handleVoiceInput} />

Theming

Default Theme

import { AgentThemeProvider } from 'spaik-sdk-material';

<AgentThemeProvider>
  <App />
</AgentThemeProvider>

Custom Theme

import { AgentThemeProvider, createAgentTheme } from 'spaik-sdk-material';

const theme = createAgentTheme({
  palette: {
    primary: { main: '#1976d2' },
    background: { default: '#f5f5f5' },
  },
  messageColors: {
    user: '#e3f2fd',
    assistant: '#fff',
  },
});

<AgentThemeProvider theme={theme}>
  <App />
</AgentThemeProvider>

useAgentTheme

Access theme in components:

import { useAgentTheme } from 'spaik-sdk-material';

function MyComponent() {
  const theme = useAgentTheme();
  return <div style={{ color: theme.palette.primary.main }}>...</div>;
}

Message Blocks

Components for different block types:

import {
  TextBlock,
  ReasoningBlock,
  ToolCallBlock,
  ErrorBlock,
} from 'spaik-sdk-material';

// Automatically rendered by MessageCard, or use directly:
<TextBlock content={block.content} streaming={block.streaming} />
<ReasoningBlock content={block.content} />
<ToolCallBlock block={block} />
<ErrorBlock content={block.content} />

Markdown

Built-in markdown rendering with GFM support:

import { MarkdownRenderer } from 'spaik-sdk-material';

<MarkdownRenderer content="# Hello **world**" />

Development

bun install
bun run build
bun run dev        # Watch mode
bun run type-check
bun run lint

License

MIT - Copyright (c) 2026 Siili Solutions Oyj