Tiki.Net 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tiki.Net --version 1.0.0
                    
NuGet\Install-Package Tiki.Net -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tiki.Net" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tiki.Net" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Tiki.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tiki.Net --version 1.0.0
                    
#r "nuget: Tiki.Net, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tiki.Net@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tiki.Net&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Tiki.Net&version=1.0.0
                    
Install as a Cake Tool

Build and TestNuGet

Logo

Tiki.Net

A lightweight .NET library for content detection and text extraction, loosely inspired by Apache Tika. Tiki.Net is a native C# implementation — no IKVM, no Java, no bloat. It covers the most common file formats with strongly-typed results and a modern async API.

Screenshot

Why Tiki.Net?

  • Native .NET — pure C#, no Java bridge, no 23 MB IKVM blob
  • Strongly-typed results — get TikiDocument, TikiPhoto, TikiMusic objects with real properties, not string dictionaries
  • Lightweight — core library is 57 KB; install only the parser packages you need
  • Modern — async/await, CancellationToken, nullable reference types, net8.0+
  • Modular — split NuGet packages keep your dependency footprint small

Installation

# Core (includes text, XML, CSV, JSON parsing and MIME detection)
dotnet add package Tiki.Net

# Parser packages (install only what you need)
dotnet add package Tiki.Net.Parsers.Pdf       # PDF (via PdfPig)
dotnet add package Tiki.Net.Parsers.Office    # DOCX, XLSX, PPTX, ODT (via OpenXml SDK)
dotnet add package Tiki.Net.Parsers.Html      # HTML (via AngleSharp)
dotnet add package Tiki.Net.Parsers.Media     # MP3, FLAC, WAV, MP4, AVI, MKV, WMV (via TagLibSharp)
dotnet add package Tiki.Net.Parsers.Email     # EML (zero dependencies)
dotnet add package Tiki.Net.Parsers.Image     # JPEG, PNG, TIFF EXIF metadata (via MetadataExtractor)
dotnet add package Tiki.Net.Parsers.Rtf       # RTF (via RtfPipe)

Usage

Basic text extraction

using Tiki;

var tiki = new Tiki.Tiki();

string text = await tiki.ParseToStringAsync("document.pdf");

Strongly-typed parsing

using Tiki;
using Tiki.Documents;

var tiki = new TikiEngine();
var result = await tiki.ParseAsync("report.docx");

if (result is TikiDocument doc)
{
    Console.WriteLine($"Title: {doc.Title}");
    Console.WriteLine($"Author: {doc.Authors?.FirstOrDefault()}");
    Console.WriteLine($"Pages: {doc.PageCount}");
    Console.WriteLine($"Company: {doc.Company}");
    Console.WriteLine($"Content: {doc.Content[..200]}...");
}

Image metadata

var result = await tiki.ParseAsync("photo.jpg");

if (result is TikiPhoto photo)
{
    Console.WriteLine($"Camera: {photo.CameraManufacturer} {photo.CameraModel}");
    Console.WriteLine($"Date Taken: {photo.DateTaken}");
    Console.WriteLine($"ISO: {photo.IsoSpeed}, f/{photo.FNumber}");
    Console.WriteLine($"GPS: {photo.Latitude}, {photo.Longitude}");
}

Music metadata

var result = await tiki.ParseAsync("song.mp3");

if (result is TikiMusic music)
{
    Console.WriteLine($"Artist: {music.Artist}");
    Console.WriteLine($"Album: {music.Album}");
    Console.WriteLine($"Track: {music.TrackNumber}");
    Console.WriteLine($"Duration: {music.Duration}");
}

Video metadata

var result = await tiki.ParseAsync("movie.mp4");

if (result is TikiVideo video)
{
    Console.WriteLine($"Resolution: {video.Width}x{video.Height}");
    Console.WriteLine($"Duration: {video.Duration}");
    Console.WriteLine($"Codec: {video.VideoCodec}");
}

Email parsing

var result = await tiki.ParseAsync("message.eml");

if (result is TikiMessage msg)
{
    Console.WriteLine($"From: {msg.FromName} <{msg.FromAddress}>");
    Console.WriteLine($"To: {string.Join(", ", msg.ToAddresses ?? [])}");
    Console.WriteLine($"Subject: {msg.Subject}");
    Console.WriteLine($"Body: {msg.Content}");
}

MIME type detection

var mediaType = await tiki.DetectAsync("unknown-file.bin");
Console.WriteLine(mediaType); // e.g. "application/pdf"

Custom configuration

using Tiki;
using Tiki.Parsers.Pdf;
using Tiki.Parsers.Html;
using Tiki.Parsers.Media;

var config = TikiConfig.CreateBuilder()
    .AddPdfParser()
    .AddHtmlParser()
    .AddMediaParser()
    .Build();

var tiki = new Tiki.Tiki(config);

Streaming and cancellation

using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30));
using var stream = File.OpenRead("large-document.pdf");

var result = await tiki.ParseAsync(stream, cts.Token);

Result Type Hierarchy

TikiFile                         Plain text, source code, markdown
├── TikiData                     JSON, XML, XAML, YAML, TOML, CSV, INI
├── TikiOfficeDocument (abstract)
│   ├── TikiDocument             PDF, DOCX, DOC, RTF, ODT
│   ├── TikiSpreadsheet          XLSX
│   └── TikiPresentation         PPTX
├── TikiMedia (abstract)
│   ├── TikiAudio
│   │   └── TikiMusic            MP3, FLAC, WAV, OGG
│   └── TikiVideo                MP4, AVI, MKV, MOV, WMV
├── TikiPhoto                    JPEG, PNG, TIFF, GIF, BMP, WebP
├── TikiMessage                  EML
└── TikiWebPage                  HTML

Common properties on TikiFile: Content, MediaType, Title, Authors, DateCreated, DateModified, Description, Keywords, ContentLength

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Tiki.Net:

Package Downloads
LottaDB.Tiki

Tiki.Net integration for LottaDB — auto-extract rich metadata from blobs on upload.

Tiki.Net.Parsers.Media

Package Description

Tiki.Net.Parsers.Office

Office document parser for Tiki.Net (DOCX, XLSX, PPTX, ODT)

Tiki.Net.Parsers.Rtf

RTF parser for Tiki.Net

Tiki.Net.Parsers.Html

HTML parser for Tiki.Net using AngleSharp

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 143 5/3/2026
1.0.0 211 5/3/2026