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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fileverse-dev/dsheet

v1.2.73-cond-patch-4

Published

DSheet

Readme

Fileverse DSheet

NPM TypeScript

dsheets.new is your decentralised alternative to google sheets & excel. Use it to read, manipulate, and even write onchain data, in real-time. Built on the same middleware as ddocs.new, the app is privacy-first, self-sovereign, and gives you full control over your data <3

👩‍🏭 Features:

  • End-to-end encryption
  • Local & peer-to-peer storage
  • Query live data from APIs & smart contracts
  • Write onchain: simulate + submit transactions (V0.3)
  • Use a familiar spreadsheets interface & functions (VLOOKUP, INDEX, MATCH…)
  • Granular access permissions (email, wallet, ENS)

Try Live Demo →

image

Installation

Install via npm to get started:

npm install @fileverse-dev/dsheet

Setup

1. Import

Add the following imports

import DsheetEditor from '@fileverse-dev/dsheet';
import '@fileverse-dev/dsheet/styles';

2. Configure Tailwind

Add to your tailwind.config.js:

module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
    "./node_modules/@fileverse-dev/dsheet/dist/index.es.js"
  ]
}

3. Basic Usage

function App() {
  const [data, setData] = useState({});

  return (
    <DsheetEditor
      isAuthorized={true}
      dsheetId="my-sheet-id"
      onChange={(updateData) => setData(updateData)}
    />
  );
}

Props Reference

Required Props

| Prop | Type | Description | |------|------|-------------| | isAuthorized | boolean | Authorization status for the user | | dsheetId | string | Unique identifier for collaboration room |

Optional Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | onChange | (data: SheetUpdateData, encodedUpdate?: string) => void | - | Callback when sheet data changes | | portalContent | string | - | Encoded initial sheet data | | isReadOnly | boolean | false | Enable read-only mode | | allowComments | boolean | false | Enable comments (requires isReadOnly=true) | | username | string | - | Username for collaboration | | isCollaborative | boolean | false | Enable collaborative features | | enableWebrtc | boolean | true | Enable WebRTC for P2P collaboration | | enableIndexeddbSync | boolean | true | Enable local IndexedDB persistence | | isTemplateOpen | boolean | - | Template sidebar state | | selectedTemplate | string | - | Selected template identifier | | onboardingComplete | boolean | - | Onboarding completion status | | sheetEditorRef | RefObject<WorkbookInstance> | - | External ref to editor instance |

Advanced Props

| Prop | Type | Description | |------|------|-------------| | renderNavbar | (editorValues?: EditorValues) => JSX.Element | Custom navbar renderer | | onboardingHandler | OnboardingHandlerType | Custom onboarding logic | | dataBlockApiKeyHandler | DataBlockApiKeyHandlerType | API key handler for data blocks | | getCommentCellUI | (row: number, column: number, dragHandler: CommentUIDragFn) => void | Custom comment UI handler | | commentData | Object | Comment data for cells | | toggleTemplateSidebar | () => void | Template sidebar toggle handler | | storeApiKey | (apiKeyName: string) => void | API key storage handler | | onDataBlockApiResponse | (dataBlockName: string) => void | Data block API response handler | | onDuneChartEmbed | () => void | Dune chart embed handler | | onSheetCountChange | (sheetCount: number) => void | Sheet count change handler |

UI State Props

| Prop | Type | Description | |------|------|-------------| | setShowFetchURLModal | Dispatch<SetStateAction<boolean>> | URL fetch modal state setter | | setFetchingURLData | (fetching: boolean) => void | URL fetching state setter | | setInputFetchURLDataBlock | Dispatch<SetStateAction<string>> | URL input state setter | | setForceSheetRender | Dispatch<SetStateAction<number>> | Force re-render trigger |

Examples

Read-Only Viewer

<DsheetEditor
  isAuthorized={true}
  dsheetId="viewer-sheet"
  isReadOnly={true}
  allowComments={true}
  portalContent={encodedData}
  onChange={() => {}}
/>

Collaborative Editor

<DsheetEditor
  isAuthorized={true}
  dsheetId="collab-sheet"
  username="john-doe"
  isCollaborative={true}
  enableWebrtc={true}
  onChange={(data) => console.log('Sheet updated:', data)}
/>

Custom Navbar

<DsheetEditor
  isAuthorized={true}
  dsheetId="custom-sheet"
  renderNavbar={(editorValues) => (
    <div className="flex items-center gap-4">
      <h1>My Custom Sheet</h1>
      <button onClick={() => editorValues?.sheetEditorRef.current?.exportToExcel()}>
        Export
      </button>
    </div>
  )}
/>

With Templates

<DsheetEditor
  isAuthorized={true}
  dsheetId="template-sheet"
  selectedTemplate="financial-budget"
  isTemplateOpen={true}
  toggleTemplateSidebar={() => setTemplateOpen(!templateOpen)}
/>

Development

Run Demo

cd demo
npm install
npm run dev

Build Package

npm run build

TypeScript

All props are fully typed. Import types:

import { DsheetProps, SheetUpdateData, EditorValues } from '@fileverse-dev/dsheet/types';

License

MIT