Skip to content
SoDialog 0.3.11 · Zero required dependencies

Modern Dialogs
for Every Web Project

A lightweight, framework-agnostic dialog library built for modern web applications.

npm install sodialogv0.3.11
release-dialog.ts Ready
import { confirmModal } from 'sodialog'

const approved = await confirmModal({
  title: 'Deploy to production?',
  content: 'All checks have passed.',
  confirmText: 'Deploy now',
})
WHY SODIALOG

Everything a dialog library should be.
Nothing it shouldn't.

Focused, predictable interaction infrastructure that keeps your host app in control of its stack.

00

Zero required dependencies

No framework runtime, jQuery, Popper, or Bootstrap required.

TS

TypeScript First

Public APIs are typed from options to return handles.

Promise API

Compose confirm, prompt, and form flows with async/await.

Framework Agnostic

Use the same core in vanilla apps and major frameworks.

A11Y

Accessibility Friendly

Native dialog semantics, keyboard paths, and focus restoration.

M

Mobile Friendly

Responsive sizing and touch-friendly narrow-screen interactions.

~

Lightweight

Focused on dialog interactions without a large UI framework.

EXPRESSIVE BY DEFAULT

Simple API. Serious capability.

From simple alerts to complete product flows, keep code clear, typed, and maintainable.

example.ts
import { openModal } from 'sodialog'

openModal({
  title: 'Deployment ready',
  content: 'Your changes are live.',
  footerButtons: [
    { label: 'Got it', role: 'confirm', action: 'destroy' },
  ],
})
TypeScriptUTF-8
BUILT FOR THE LONG RUN

Choose less complexity.

SoDialog focuses on modern dialog experiences while staying framework-agnostic, lightweight, and maintainable.

SolutionPromise APIFramework agnosticRequired UI runtimeMaintenance
Native AlertNoneBrowser-limited
Bootstrap ModalBootstrap JSFramework coupled
SweetAlert2Package runtimeGeneral-purpose
SoDialog RecommendedNoneFocused & typed
WORKS WHERE YOU WORK

One library. Every modern stack.

Bootstrap is a compatibility target, not a dependency. The SoDialog core belongs to the Web Platform.

JSVanilla JS
TSTypeScript
BBootstrap
TWTailwind
React
VVue
NNext.js
NuNuxt
DOCUMENTATION

Build something thoughtful.

From first install to advanced themes and complete APIs, every entry point is designed for fast answers.

READY WHEN YOU ARE

Your next dialog starts here.

Zero required dependencies. Complete TypeScript types. Ready in minutes.

Built for the open web. Bootstrap compatible, never Bootstrap dependent.

Released under the MIT License.