Autypo 1.1.0

dotnet add package Autypo --version 1.1.0
                    
NuGet\Install-Package Autypo -Version 1.1.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="Autypo" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Autypo" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Autypo" />
                    
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 Autypo --version 1.1.0
                    
#r "nuget: Autypo, 1.1.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 Autypo@1.1.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=Autypo&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Autypo&version=1.1.0
                    
Install as a Cake Tool

⚑ Autypo

Downloads Build License: MIT

Typo-tolerant, in-memory autocomplete for .NET

string[] recipes = [
        "Easy chicken broth soup base recipe",
        "Vegetable noodle soup (chicken optional)",
        "Chicken noodle soup (classic homemade recipe)",
        "Beef noodle soup recipe (Chinese Lanzhou style)"
    ];

var found = recipes.Search("Chicen So"); // πŸ‘ˆ user types this

Console.WriteLine(found.FirstOrDefault());

// β†’ "Chicken noodle soup (classic homemade recipe)"

✨ Getting Started

Autypo works out-of-the-box using a LINQ-style Search extension method without any configuration. The sensible defaults can be overridden.

βœ… Pre-Indexed Setup β€” In 5 Seconds

To make repeated queries against the same data, you'll want to index your collection ahead of time. This is how to get intelligent completions in such a case.

string[] movies = [
    "The Lord of the Rings: The Return of the King",
    "Star Wars: Return of the Jedi",
    "Batman Returns"
];

var index = movies.ToAutypoComplete();

IEnumerable<string> suggestions = index.Complete("retur of the");
// β†’ "Star Wars: Return of the Jedi"
// + "The Lord of the Rings: The Return of the King"

suggestions = index.Complete("bamman rets");
// β†’ "Batman Returns"

No tokenization setup. No fuzzy matching config. Just smart results.

βœ… ASP.NET Core Setup with Background Indexing

For real-world apps, Autypo integrates seamlessly with ASP.NET Core and supports background indexing, multi-field search, and dependency-injected data sources.

using Autypo;
using Autypo.AspNetCore;
using Autypo.Configuration;

builder.Services.AddScoped<ProductsLoader>();

builder.Services.AddAutypoSearch<Product>(config => config
    .WithDataSource(serviceProvider => serviceProvider.GetRequiredService<ProductsLoader>())
    .WithBackgroundLoading(UninitializedBehavior.ReturnEmpty)

    .WithIndex(product => product.Name, index => index
        .WithAdditionalKeys(product => [product.Description]) // Index name + description
        .WithUnorderedTokenOrdering() // Order of words doesn't matter
        .WithPartialTokenMatching() // Partial queries still match
        // ... and many more configuration options!
    ));

Define a search endpoint using dependency-injected Autypo:

app.MapGet("/products/search", async (
    [FromQuery] string query,
    [FromServices] IAutypoSearch<Product> search) =>
{
    var results = await search.SearchAsync(query);
    return results.Select(r => r.Value);
});

Example Query:

GET /products/search?query=fngerprint usb recogn

Example Result:

[
 {
   "code": "A1067",
   "name": "Fingerprint USB",
   "description": "Secure USB flash drive with fingerprint encryption"
 },
]

πŸ“š Table of Contents


πŸ“¦ Installation

Autypo Autypo.AspNetCore

Autypo is available on NuGet.

For ASP.NET Core integration (includes the core engine):

dotnet add package Autypo.AspNetCore

For standalone or non-web scenarios (e.g., console apps, background jobs):

dotnet add package Autypo

πŸ’‘ Features

Autypo gives you fast, typo-tolerant search with modern developer ergonomics β€” zero config to start, but extreme tuning if you need it.

🧠 Intelligent Matching

  • Typo-tolerant by default β€” fuzzy, partial, and out-of-order input
  • Token-level matching control (prefix, fuzziness)
  • Opt-in partial matching and out-of-order input
  • Built to rank β€œreal world” input
  • Multi-index support with priority-based short-circuiting

πŸ”§ Deeply Configurable

  • Index multiple fields (e.g. name + description)
  • Plug in custom scorers, filters, and match policies
  • Add tokenizers and analyzers (N-grams, stemming, etc)
  • Per-query tuning for fuzziness, partial match, max results

βš™οΈ Production-Ready

  • Blazing-fast in-memory autocomplete via IAutypoComplete
  • Full-featured, multi-index search engine via IAutypoSearch<T>
  • Eager, background, or lazy indexing β€” your choice
  • Refresh indexes at runtime with AutypoRefreshToken
  • Async-first, thread-safe, allocation-conscious

🌐 Framework-Friendly

  • ASP.NET Core integration with full DI support
  • Blazor Server–ready (ideal for typeahead inputs)
  • Fully .NET-native β€” no native bindings, no hosted servers

⚠️ Limitations

Autypo is intentionally designed for short-text and autocomplete scenarios β€” not full-text search.

  • Documents are limited to 64 tokens max (e.g., product names, commands, short descriptions)
  • In-memory indexing is fast and efficient, but may not suit massive corpora or multi-megabyte documents
  • Autypo is not intended for long-form text search β€” for that, consider other tools.

This tradeoff is deliberate: it keeps Autypo incredibly fast, predictable, and ideal for UX-critical search.


🎯 Perfect For

  • E-commerce product & SKU search
  • Admin panel filtering and form helpers
  • Smart command palettes
  • CLI "Did You Mean?" suggestions
  • Blazor autocomplete inputs
  • Live-search over reference data (countries, tags, part numbers)
  • Fuzzy full-text matching over short documents

πŸ“š Learning Resources

πŸ“– Guides

Guide Description
ASP.NET Core Integration End-to-end setup with dependency injection and hosted services
Indexing & Data Loading Data sources, refresh tokens
Search & Matching Customize fuzzy logic, token ordering and more
Text Analysis & Tokenization Configure tokenizers, transformers, and analyzers
Custom Scoring & Filtering Enrich matches with metadata and business logic

πŸ’» Samples

Sample What it demonstrates
"Did You Mean?" Console Demo Interactive CLI Helper – Suggests valid commands with fuzzy matching
ASP.NET Core Search API Product Search – REST API with background indexing and multi-field matching
Blazor City Autocomplete Real-Time Search UI – Typeahead with typo tolerance and reindexing

πŸ“Š Benchmarks

For short-string autocomplete, Lucene is overkill β€” heavy setup, broad scope, and tuned for documents you don't have. Autypo matches its fuzzy quality on this workload with a single NuGet install and zero configuration.

Library Multi-Token Index Time Search Time Avg/Search
Autypo βœ… Yes 163 ms 3.34 s 1.33 ms
Lucene (Fuzzy) βœ… Yes 776 ms 2.91 s 1.16 ms
Lucene (Suggest) ❌ No 1.12 s 503 ms 0.20 ms
Levenshtypo* ❌ No 25 ms 312 ms 0.12 ms
FuzzyWuzzy ❌ No 1 ms 4m 49s 92.56 ms

* Levenshtypo is the fuzzy string search library that powers Autypo’s low-level approximate matching engine. It supports typo-tolerant single-token search using optimized Tries and Levenshtein Automata.

⚠️ See full benchmark repo and disclaimer β†’


πŸ“ Project Structure

/src
  └── Autypo/                   # Core library
  └── Autypo.AspNetCore/        # ASP.NET Core integration
  └── Autypo.Benchmarks/        # Microbenchmarks
  └── Autypo.IntegrationTests/
  └── Autypo.UnitTests/
  └── Autypo.Aot/               # Ensures that Autypo works in AOT scenarios
  
/samples
  └── ApiSearchProducts/        # REST API example
  └── BlazorCities/             # Blazor Server autocomplete
  └── ConsoleDidYouMean/        # CLI demo

πŸ’¬ Support and Feedback

🧠 Have a question?
πŸ’‘ Got feedback?
πŸ› Found a bug?

Open an issue or start a discussion. We'd love to hear from you.


βš–οΈ License

Autypo is released under the MIT License.


πŸ™‹β€β™‚οΈ What's in a Name?

Autocomplete + Typo-tolerance = Autypo.

Simple name, serious power.

Try it: dotnet add package Autypo

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 (1)

Showing the top 1 NuGet packages that depend on Autypo:

Package Downloads
Autypo.AspNetCore

Autypo is a blazing-fast .NET library for fuzzy autocomplete, typo correction, and short-string search. Designed for structured data and autocomplete-first experiences, it supports per-token configuration, background indexing, and full ASP.NET Core integration out of the box.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 1,094 4/28/2026
1.0.0 36,170 7/5/2025